From patchwork Wed Aug 21 09:33:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2847622 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C30F29F239 for ; Wed, 21 Aug 2013 09:34:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D9B4204CD for ; Wed, 21 Aug 2013 09:34:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A0C5204B2 for ; Wed, 21 Aug 2013 09:34:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548Ab3HUJeA (ORCPT ); Wed, 21 Aug 2013 05:34:00 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:38200 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751532Ab3HUJd7 (ORCPT ); Wed, 21 Aug 2013 05:33:59 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRV00DHEJWM5MY0@mailout4.samsung.com> for linux-pm@vger.kernel.org; Wed, 21 Aug 2013 18:33:58 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 0E.CF.08825.58984125; Wed, 21 Aug 2013 18:33:57 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-a3-52148985a40a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0D.B6.31505.48984125; Wed, 21 Aug 2013 18:33:57 +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 <0MRV00EBYJWK0130@mmp2.samsung.com>; Wed, 21 Aug 2013 18:33:56 +0900 (KST) From: Jingoo Han To: 'MyungJoo Ham' Cc: 'Kyungmin Park' , linux-pm@vger.kernel.org, 'Abhilash Kesavan' , 'Jingoo Han' Subject: [PATCH] PM / devfreq: exynos: remove unnecessary platform_set_drvdata() Date: Wed, 21 Aug 2013 18:33:56 +0900 Message-id: <002701ce9e51$8f008a80$ad019f80$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6eUY6HeFohhHZcQf2O7rnyOPAZlA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsVy+t8zfd3WTpEgg2OT2S0er1nMZHF54SVW i7NNb9gtPvceYbS43biCzYHVo2/LKkaPz5vkApiiuGxSUnMyy1KL9O0SuDI2nL3OWPCfveLH uffsDYxP2boYOTkkBEwkVl7/zgRhi0lcuLceKM7FISSwjFGifc06JpiiJ8famSES0xklpr36 AuX8YpS4ffExC0gVm4CaxJcvh9lBbBEBXYmXV2+DFTELzGaU2HD6AVhCWCBAYv79LWC7WQRU JS78WMPYxcjBwStgK/H+SRBImFdAUOLH5HtgM5kFtCTW7zzOBGHLS2xe85YZpFxCQF3i0V9d iFV6Ens+fWeHKBGR2PfiHSPIWgmBdewSiyb8Z4dYJSDxbfIhFoheWYlNB5ghHpOUOLjiBssE RrFZSDbPQrJ5FpLNs5CsWMDIsopRNLUguaA4Kb3ISK84Mbe4NC9dLzk/dxMjJLr6djDePGB9 iDEZaP1EZinR5HxgdOaVxBsamxlZmJqYGhuZW5qRJqwkzqvWYh0oJ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Iks4Bz0T8bglL4VkYc3/vCu7xypsi2K0osxRmJ hlrMRcWJAAUxE7khAwAA 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 X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han --- drivers/devfreq/exynos/exynos5_bus.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c index 574b16b..65b3fa9 100644 --- a/drivers/devfreq/exynos/exynos5_bus.c +++ b/drivers/devfreq/exynos/exynos5_bus.c @@ -419,7 +419,6 @@ static int exynos5_busfreq_int_probe(struct platform_device *pdev) err_devfreq_add: devfreq_remove_device(data->devfreq); - platform_set_drvdata(pdev, NULL); err_opp_add: clk_put(data->int_clk); err_clock: @@ -437,7 +436,6 @@ static int exynos5_busfreq_int_remove(struct platform_device *pdev) devfreq_remove_device(data->devfreq); regulator_put(data->vdd_int); clk_put(data->int_clk); - platform_set_drvdata(pdev, NULL); return 0; }