From patchwork Mon May 6 04:30:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522271 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 D25DDDF230 for ; Mon, 6 May 2013 04:31:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752749Ab3EFEbH (ORCPT ); Mon, 6 May 2013 00:31:07 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:33414 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab3EFEbF (ORCPT ); Mon, 6 May 2013 00:31:05 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD0042B0J3HSL0@mailout1.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:30:58 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id B7.33.19350.20237815; Mon, 06 May 2013 13:30:58 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-27-51873202d46d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 20.BD.08957.20237815; Mon, 06 May 2013 13:30:58 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00AQF0JMWP40@mmp1.samsung.com>; Mon, 06 May 2013 13:30:58 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , 'Kuninori Morimoto' Subject: [PATCH 5/6] thermal: rcar: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:30:58 +0900 Message-id: <004201ce4a12$816b9060$8442b120$@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: Ac5KEm7hiR5gyl5sS6iWQXehn1FAlA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zY10mo/ZAg5/vxC3W7P/JZHF54SVW i1eHdzFafO49wmjx5GEfmwOrx+I9L5k8vp2ZyOLRt2UVo8fxG9uZPD5vkgtgjeKySUnNySxL LdK3S+DK2P3zImvBA7aK5t+PWBsYr7J2MXJySAiYSPyfe5EFwhaTuHBvPVsXIxeHkMAyRomn O54BORxgRft7ciHiixglPnSeZYZwfjFKzJz3jwmkm01ATeLLl8PsILaIgKrErdM9TCBFzAIr gDqePAJbJyzgK3HkxT1GEJsFqKj1yhVmEJtXwFJi4ZRrLBC2oMSPyffAbGYBLYn1O48zQdjy EpvXvGWGOFVBYsfZ14wg14kI6Em0Ho2HKBGR2PfiHSPIXgmBY+wSK7ZMZ4bYJSDxbfIhFohv ZCU2HYAaIylxcMUNlgmMYrOQbJ6FZPMsJJtnIVmxgJFlFaNoakFyQXFSepGpXnFibnFpXrpe cn7uJkZI7E3cwXj/gPUhxmSg9ROZpUST84Gxm1cSb2hsZmRhamJqbGRuaUaasJI4r3qLdaCQ QHpiSWp2ampBalF8UWlOavEhRiYOTqkGxq23jkd+lGrrWRxb7vTdouu4UdN7K4NPJ97sZTh4 beHzJ4FPo327eyee9rnrcf7AxOuBmT3HVq4wYru58+6K3gt+Wvx3PqgFf41RLlSe0iB8fO+D rftfnbFwbdnSfXhLqOOHBwvnnJIzYHWZvLmu4WoSb691nqPyz2cJqnIMHwoqlU/8afeSP6HE UpyRaKjFXFScCAClmLcs0wIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jAV0mo/ZAg52LRCzW7P/JZHF54SVW i1eHdzFafO49wmjx5GEfmwOrx+I9L5k8vp2ZyOLRt2UVo8fxG9uZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzNj98yJrwQO2iubfj1gbGK+ydjFycEgImEjs 78ntYuQEMsUkLtxbz9bFyMUhJLCIUeJD51lmCOcXo8TMef+YQKrYBNQkvnw5zA5iiwioStw6 3cMEUsQssAKo48kjVpCEsICvxJEX9xhBbBagotYrV5hBbF4BS4mFU66xQNiCEj8m3wOzmQW0 JNbvPM4EYctLbF7zlhniJAWJHWdfM4JcKiKgJ9F6NB6iRERi34t3jBMYBWYhmTQLyaRZSCbN QtKygJFlFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkZwZD+T2sG4ssHiEKMAB6MSD2/Bk7ZA IdbEsuLK3EOMEhzMSiK8PnuBQrwpiZVVqUX58UWlOanFhxiTgR6dyCwlmpwPTDp5JfGGxiZm RpZGZhZGJubmpAkrifMeaLUOFBJITyxJzU5NLUgtgtnCxMEp1cCo5nt1rsXDtBM7Ra5GZPXH 2sS+jvN9/fbR2RNRzJOvd9VduKey99Qajwf/v623N7i/rNxswYN1k46W8K2tsOzeylFXqPHo XUGh4HObBNH6ZTFbgxU/+Ex8Y7VVZbP0Vc5Zj3rCL3JmSL9Zxel18yCP90MO9fQDJn9b6k5E zgva0Kr+/5b5wVoFJZbijERDLeai4kQAulbsoDADAAA= 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 Acked-by: Kuninori Morimoto --- drivers/thermal/rcar_thermal.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 8d7edd4..63c7c13 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -487,8 +487,6 @@ static int rcar_thermal_remove(struct platform_device *pdev) rcar_thermal_irq_disable(priv); } - platform_set_drvdata(pdev, NULL); - pm_runtime_put_sync(dev); pm_runtime_disable(dev);