From patchwork Mon May 6 04:26:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522231 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E7775DF230 for ; Mon, 6 May 2013 04:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659Ab3EFE0f (ORCPT ); Mon, 6 May 2013 00:26:35 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:32764 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab3EFE0e (ORCPT ); Mon, 6 May 2013 00:26:34 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD00KUF0C3UXJ0@mailout1.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:26:29 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F7.50.04074.5F037815; Mon, 06 May 2013 13:26:29 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-d8-518730f5fc0b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8B.0C.08957.5F037815; Mon, 06 May 2013 13:26:29 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00EDV0C51210@mmp2.samsung.com>; Mon, 06 May 2013 13:26:29 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , 'Ezequiel Garcia' Subject: [PATCH 1/6] thermal: armada: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:26:29 +0900 Message-id: <003e01ce4a11$e1134900$a339db00$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5KEc+Ca7aXe+W9R3af35KTQiEMzA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t8zI92vBu2BBu9vK1qs2f+TyeL0qQWs FpcXXmK1+Nx7hNHiycM+NgdWjyebLjJ6LN7zksmjb8sqRo/jN7YzeXzeJBfAGsVlk5Kak1mW WqRvl8CVceHdfZaC52wV5490sjcw3mftYuTkkBAwkTg1ZSobhC0mceHeeiCbi0NIYBmjxIkL Rxhhimbvms8MkZjOKPH08lKoql+MErvenmMGqWITUJP48uUwO4gtIqAqcet0DxNIEbPACkaJ FT/PgO0QFvCX+HphF9hYFqCi7Vdawe7gFbCUmP/jAhuELSjxY/I9FhCbWUBLYv3O40wQtrzE 5jVvmSFOUpDYcfY1I8QyPYk1l5czQ9SISOx78Y4RZLGEwD52id19s6GWCUh8m3wIaCgHUEJW YtMBqDmSEgdX3GCZwCg2C8nqWUhWz0KyehaSFQsYWVYxiqYWJBcUJ6UXmegVJ+YWl+al6yXn 525ihMTfhB2M9w5YH2JMBlo/kVlKNDkfGL95JfGGxmZGFqYmpsZG5pZmpAkrifOqt1gHCgmk J5akZqemFqQWxReV5qQWH2Jk4uCUamBsO10aauQ3y0/ZJsBFKv3GhplNmZNCZ4isaNM6HHZC XejG/fve+a0SKi7Kj18dnRfjt/2LapL6LGcl8anb675fXT9pxtTdu1jZedNkOrTkC6ap2b3+ zXEu5KxcRcqu55pRC5scki0MGtrcvWz3qPSsVfrSa+i2Qi7cY0vx32MxEZHn7nkdU1ViKc5I NNRiLipOBACnbfd+1QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPKsWRmVeSWpSXmKPExsVy+t9jQd2vBu2BBs+/y1qs2f+TyeL0qQWs FpcXXmK1+Nx7hNHiycM+NgdWjyebLjJ6LN7zksmjb8sqRo/jN7YzeXzeJBfAGtXAaJORmpiS WqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDtF1JoSwxpxQoFJBY XKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjHmHHh3X2WgudsFeePdLI3MN5n7WLk5JAQMJGY vWs+M4QtJnHh3nq2LkYuDiGB6YwSTy8vhXJ+MUrsensOrIpNQE3iy5fD7CC2iICqxK3TPUwg RcwCKxglVvw8wwaSEBbwl/h6YRcjiM0CVLT9SivYOl4BS4n5Py6wQdiCEj8m32MBsZkFtCTW 7zzOBGHLS2xe8xbqJAWJHWdfM0Is05NYc3k5M0SNiMS+F+8YJzAKzEIyahaSUbOQjJqFpGUB I8sqRtHUguSC4qT0XEO94sTc4tK8dL3k/NxNjODofia1g3Flg8UhRgEORiUe3oInbYFCrIll xZW5hxglOJiVRHh99gKFeFMSK6tSi/Lji0pzUosPMSYDfTqRWUo0OR+YePJK4g2NTcyMLI3M LIxMzM1JE1YS5z3Qah0oJJCeWJKanZpakFoEs4WJg1OqgfFCQPCZBUkvf1fVi2pZWb8wPJzj uO7atDfSwTYxRh+kG9+zLVxppb1MjHvuBpvpToqaGs+sZWeYzajqbfU3ftGyX+Uuo+jyiY++ Z3VIWd0V3LCdo+Gu13R/jZ1GLxpO2CROjjtt7+82QZivl9Wg/UaDpCFz+PKy3aeur9ke0abr 2TwtJmLCdiWW4oxEQy3mouJEAPq/JIEyAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han --- drivers/thermal/armada_thermal.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index 5b4d75f..0d02d4e 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -210,7 +210,6 @@ static int armada_thermal_exit(struct platform_device *pdev) platform_get_drvdata(pdev); thermal_zone_device_unregister(armada_thermal); - platform_set_drvdata(pdev, NULL); return 0; }