From patchwork Mon May 6 04:27:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522241 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 33039DF230 for ; Mon, 6 May 2013 04:27:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665Ab3EFE1Q (ORCPT ); Mon, 6 May 2013 00:27:16 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:45535 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab3EFE1Q (ORCPT ); Mon, 6 May 2013 00:27:16 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD004Q40DEK2E0@mailout4.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:27:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 6E.21.19350.22137815; Mon, 06 May 2013 13:27:14 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-ef-5187312280e0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E4.7C.08957.22137815; Mon, 06 May 2013 13:27:14 +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 <0MMD00A9A0DEVQE0@mmp2.samsung.com>; Mon, 06 May 2013 13:27:14 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , Andrew Lunn Subject: [PATCH 2/6] thermal: dove: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:27:14 +0900 Message-id: <003f01ce4a11$fc1b9a90$f452cfb0$@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: Ac5KEez78eco3nJCRsuzpvD9rzzWJw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t8zA10lw/ZAgymzTC3O3z3EbLFm/08m i8sLL7FafO49wmjx5GEfmwOrx+I9L5k8du74zOTRt2UVo8fxG9uZPD5vkgtgjeKySUnNySxL LdK3S+DKmLpfueAmW8XEtvWMDYwXWbsYOTkkBEwkdk1rZ4GwxSQu3FvP1sXIxSEksIxRou33 HiaYoheLGxghEtMZJdZNn8MO4fxilDi5sokZpIpNQE3iy5fD7CC2iICqxK3TPUwgRcwCPYwS +5+1MoIkhAV8JXovfgTbxwJU1LTsJhuIzStgKfFxzhF2CFtQ4sfke2A1zAJaEut3HmeCsOUl Nq95ywxxkoLEjrOvGSGW6Umc7P/OCFEjIrHvxTuwUyUEDrFLPNzeBLVMQOLb5ENANgdQQlZi 0wGoOZISB1fcYJnAKDYLyepZSFbPQrJ6FpIVCxhZVjGKphYkFxQnpReZ6hUn5haX5qXrJefn bmKERN/EHYz3D1gfYkwGWj+RWUo0OR8YvXkl8YbGZkYWpiamxkbmlmakCSuJ86q3WAcKCaQn lqRmp6YWpBbFF5XmpBYfYmTi4JRqYJw11TVl+2q/sCvCNuazLY7eUpmyLXKdsmXH5jgPR6mj 65vspvxTm3w8yuDQGpV7V9eu2MHEcPDMA/dlMftPMGntKdkUtfCYuHH69gOnHv3+lfejfYMe g6XmpFJLxu/Zi/evZYp4rh95ZX1Q8QwjISNbjkX/ZnN9//W3+uE832WP+G9W30pn/OmpxFKc kWioxVxUnAgA5qQ2odQCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jQV0lw/ZAgzN7DC3O3z3EbLFm/08m i8sLL7FafO49wmjx5GEfmwOrx+I9L5k8du74zOTRt2UVo8fxG9uZPD5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxjzJi6X7ngJlvFxLb1jA2MF1m7GDk5JARMJF4s bmCEsMUkLtxbz9bFyMUhJDCdUWLd9DnsEM4vRomTK5uYQarYBNQkvnw5zA5iiwioStw63cME UsQs0MMosf9ZK9goYQFfid6LH1lAbBagoqZlN9lAbF4BS4mPc46wQ9iCEj8m3wOrYRbQkli/ 8zgThC0vsXnNW2aIkxQkdpx9zQixTE/iZP93RogaEYl9L94xTmAUmIVk1Cwko2YhGTULScsC RpZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMGx/UxqB+PKBotDjAIcjEo8vAVP2gKFWBPL iitzDzFKcDArifD67AUK8aYkVlalFuXHF5XmpBYfYkwG+nQis5Rocj4w7eSVxBsam5gZWRqZ WRiZmJuTJqwkznug1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA6PEJt3IxfkNYr/vb9sp8+EJ54WI 1cwL5hnelvi07+SE5/+r5jFcSRApUXudON3pSOrpPW/bsrbXVC2YKsVy7ma8XcOZMOnjGk8S vKR5LCMN2Bf/Tlj88Mnqo56Kfh6WFhfKqnhjmG2aVQ67h8u4lPPts4qpFLq8Ree4Wnyt2oR9 rFunmUodf6fEUpyRaKjFXFScCADXZnyDMQMAAA== 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: Andrew Lunn --- drivers/thermal/dove_thermal.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c index 4b15a5f..900479e 100644 --- a/drivers/thermal/dove_thermal.c +++ b/drivers/thermal/dove_thermal.c @@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev) platform_get_drvdata(pdev); thermal_zone_device_unregister(dove_thermal); - platform_set_drvdata(pdev, NULL); return 0; }