From patchwork Mon May 6 04:28:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522251 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 A43D9DF230 for ; Mon, 6 May 2013 04:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657Ab3EFE22 (ORCPT ); Mon, 6 May 2013 00:28:28 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:33029 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab3EFE21 (ORCPT ); Mon, 6 May 2013 00:28:27 -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 <0MMD00KXM0FDUXJ0@mailout1.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:28:26 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id E8.51.04074.A6137815; Mon, 06 May 2013 13:28:26 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-b3-5187316a867c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 51.DC.08957.A6137815; Mon, 06 May 2013 13:28:26 +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 <0MMD00EX70FE1210@mmp2.samsung.com>; Mon, 06 May 2013 13:28:26 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , 'Amit Daniel Kachhap' Subject: [PATCH 3/6] thermal: exynos: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:28:26 +0900 Message-id: <004001ce4a12$26eaec80$74c0c580$@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: Ac5KEgUhKRky/j1tQ8C4GxR3wQ1bQA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsVy+t8zI90sw/ZAg8bDihYNV0Ms1uz/yWRx eeElVovPvUcYLZ487GNzYPVYvOclk0ffllWMHsdvbGfy+LxJLoAlissmJTUnsyy1SN8ugSvj 6aJuloJf7BVPZ09lbGA8y9bFyMkhIWAi8ffoL3YIW0ziwr31QHEuDiGBZYwS5x6/Y4Qp2njl JjtEYjqjxI+3/5khnF+MEttmL2AFqWITUJP48uUw2CgRAVWJW6d7mEBsZoGFjBJXjiaC2MIC /hKHT50Dq2cBqll0bAsziM0rYClxdddPJghbUOLH5HssEL1aEut3HoeaIy+xec1bZoiLFCR2 nH3NCLFLT2LDjn9QNSIS+16AXM0FVLOJXeLfn3NsEMsEJL5NPgQ0lAMoISux6QDUHEmJgytu sExgFJuFZPUsJKtnIVk9C8mKBYwsqxhFUwuSC4qT0otM9IoTc4tL89L1kvNzNzFCIm7CDsZ7 B6wPMSYDrZ/ILCWanA+M2LySeENjMyMLUxNTYyNzSzPShJXEedVbrAOFBNITS1KzU1MLUovi i0pzUosPMTJxcEo1MOrx2GT9Wbeh2LV6BfO3ZWdXHbN/3ZLzZ9taSdkw4aLUpdx7/Q56HOMu 9q2ZLr390PSNhf4Fc1PcA7SbtkR5lfw+scL9S7BsxLJj3w92+zC8EKn2sjqq2Dv7yzH5a3N8 zx9nX/85fMZrzxk1+wzSIsSa5rz0TZu4cpnpjJA9oUdjD7bUrki7eF+JpTgj0VCLuag4EQCH +/bUzgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBKsWRmVeSWpSXmKPExsVy+t9jQd0sw/ZAg9ZVshYNV0Ms1uz/yWRx eeElVovPvUcYLZ487GNzYPVYvOclk0ffllWMHsdvbGfy+LxJLoAlqoHRJiM1MSW1SCE1Lzk/ JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdor5JCWWJOKVAoILG4WEnfDtOE 0BA3XQuYxghd35AguB4jAzSQsI4x4+mibpaCX+wVT2dPZWxgPMvWxcjJISFgIrHxyk12CFtM 4sK99UBxLg4hgemMEj/e/meGcH4xSmybvYAVpIpNQE3iy5fDYB0iAqoSt073MIHYzAILGSWu HE0EsYUF/CUOnzoHVs8CVLPo2BZmEJtXwFLi6q6fTBC2oMSPyfdYIHq1JNbvPA41R15i85q3 zBAXKUjsOPuaEWKXnsSGHf+gakQk9r14xziBUWAWklGzkIyahWTULCQtCxhZVjGKphYkFxQn peca6hUn5haX5qXrJefnbmIEx/MzqR2MKxssDjEKcDAq8fAWPGkLFGJNLCuuzD3EKMHBrCTC 67MXKMSbklhZlVqUH19UmpNafIgxGejTicxSosn5wFSTVxJvaGxiZmRpZGZhZGJuTpqwkjjv gVbrQCGB9MSS1OzU1ILUIpgtTBycUg2Mh/dov+K4Ki92gm+C17o3wmks+09MkaztefDk28lZ NmJbTGwP13tbpiok1KT+vRK7uPT/PwOWGY/EM4yFHDc/uX1d6PLd3HjV5rtPRDxYr/Jpe8dq Bq9y2frdsl7ygZbqIuPdeyWDLpabhbGdvs0vdO6xtrmLUErxqqnBSQXlD55e5Zw3pzFZiaU4 I9FQi7moOBEASJokNCsDAAA= 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/exynos_thermal.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c index d20ce9e..992ae6e 100644 --- a/drivers/thermal/exynos_thermal.c +++ b/drivers/thermal/exynos_thermal.c @@ -1001,7 +1001,6 @@ static int exynos_tmu_probe(struct platform_device *pdev) return 0; err_clk: - platform_set_drvdata(pdev, NULL); clk_unprepare(data->clk); return ret; } @@ -1016,8 +1015,6 @@ static int exynos_tmu_remove(struct platform_device *pdev) clk_unprepare(data->clk); - platform_set_drvdata(pdev, NULL); - return 0; }