From patchwork Fri May 24 01:11:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2609381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 89EE940077 for ; Fri, 24 May 2013 01:12:23 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfgYK-0001Wb-Kl; Fri, 24 May 2013 01:12:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfgYH-0002br-Dz; Fri, 24 May 2013 01:12:13 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UfgYD-0002bW-Gk for linux-arm-kernel@lists.infradead.org; Fri, 24 May 2013 01:12:11 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MNA00MPF3BIUI20@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 24 May 2013 10:11:46 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id A1.75.08825.25EBE915; Fri, 24 May 2013 10:11:46 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-0a-519ebe52639d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 70.5D.28381.25EBE915; Fri, 24 May 2013 10:11:46 +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 <0MNA00K9U3BMEB60@mmp1.samsung.com>; Fri, 24 May 2013 10:11:46 +0900 (KST) From: Jingoo Han To: 'Mike Turquette' Subject: [PATCH] clk: use platform_{get,set}_drvdata() Date: Fri, 24 May 2013 10:11:46 +0900 Message-id: <000401ce581b$a9224600$fb66d200$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5YG3nw+FtezkT9TvyE10J1kZYPRA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zY92gffMCDY7t0bX4N/sUm8XlhZdY LTY9vsZq8XTCRTYHFo871/aweWxeUu/xcuJvNo++LasYA1iiuGxSUnMyy1KL9O0SuDJaWzQL tnJXzN/2lL2B8RxnFyMnh4SAiUTzihssELaYxIV769m6GLk4hASWMUocP7yYDabob9NGdojE IkaJ+5PvMUI4vxgl2jf1gFWxCahJfPlymB3EFhHQkXj8ZzErSBGzQAOjRO/Fe6wgCWEBM4lX q/YwdTFycLAIqEo036oFCfMKWErMP7aLBcIWlPgx+R6YzSygJbF+53EmCFteYvOat8wQFylI 7Dj7mhFil57Exrt/WSFqRCT2vXgHdpyEwDZ2iUlP/4MlWAQEJL5NPsQCsldCQFZi0wGoOZIS B4Hen8AoNgvJ6llIVs9CsnoWkhULGFlWMYqmFiQXFCelFxnpFSfmFpfmpesl5+duYoTEWd8O xpsHrA8xJgOtn8gsJZqcD4zTvJJ4Q2MzIwtTE1NjI3NLM9KElcR51VqsA4UE0hNLUrNTUwtS i+KLSnNSiw8xMnFwSjUwVjyX+6T+W29b2pPt/rdvbH4yX+fq0SerGg9tYz3/79WWC21aUVZ+ sxr+Vz112Go3Ryak5SWDiMORuz9cA7Ld2Jvqf3clrGFK21XdzVixYebViM4A/aQs/9qcL2tq VrJU/3SubDVfpx2942p2ysuI00fWs3xbdm7R8T8nWvKerl+deyzOr+h8qBJLcUaioRZzUXEi AGoGf5/JAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jAd2gffMCDfqOaVr8m32KzeLywkus FpseX2O1eDrhIpsDi8eda3vYPDYvqfd4OfE3m0ffllWMASxRDYw2GamJKalFCql5yfkpmXnp tkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUA7lRTKEnNKgUIBicXFSvp2mCaEhrjp WsA0Ruj6hgTB9RgZoIGEdYwZrS2aBVu5K+Zve8rewHiOs4uRk0NCwETib9NGdghbTOLCvfVs XYxcHEICixgl7k++xwjh/GKUaN/UwwZSxSagJvHly2GwDhEBHYnHfxazghQxCzQwSvRevMcK khAWMJN4tWoPUxcjBweLgKpE861akDCvgKXE/GO7WCBsQYkfk++B2cwCWhLrdx5ngrDlJTav ecsMcZGCxI6zrxkhdulJbLz7lxWiRkRi34t3jBMYBWYhGTULyahZSEbNQtKygJFlFaNoakFy QXFSeq6hXnFibnFpXrpecn7uJkZwFD+T2sG4ssHiEKMAB6MSD+8MnXmBQqyJZcWVuYcYJTiY lUR4C8OAQrwpiZVVqUX58UWlOanFhxiTgR6dyCwlmpwPTDB5JfGGxiZmRpZGZhZGJubmpAkr ifMeaLUOFBJITyxJzU5NLUgtgtnCxMEp1cCYI7rq4lLO6B/qS4w+7eBh+2ZR+DFre+kv1d/8 U+Z96YqQOV13KvHfjm1F7qxVlz+cbVx7eJvstawTTmqiJ99mXs4Pk77dzvT9lvzPwpPHnQ/s ui+7YaLAWccvnxauunrHKe7txrV33H/LSmluUbv5UW7Wc62QfduZyk4WtCeFlyubez3Qj49i U2Ipzkg01GIuKk4EAAjT5QYmAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130523_211209_816115_2BF6805F X-CRM114-Status: GOOD ( 10.12 ) X-Spam-Score: -7.9 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers Cc: Jingoo Han , Mark Brown , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han Acked-by: Mark Brown --- drivers/clk/clk-twl6040.c | 4 ++-- drivers/clk/clk-wm831x.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c index 3af729b..1ada79a 100644 --- a/drivers/clk/clk-twl6040.c +++ b/drivers/clk/clk-twl6040.c @@ -95,14 +95,14 @@ static int twl6040_clk_probe(struct platform_device *pdev) if (IS_ERR(clkdata->clk)) return PTR_ERR(clkdata->clk); - dev_set_drvdata(&pdev->dev, clkdata); + platform_set_drvdata(pdev, clkdata); return 0; } static int twl6040_clk_remove(struct platform_device *pdev) { - struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev); + struct twl6040_clk *clkdata = platform_get_drvdata(pdev); clk_unregister(clkdata->clk); diff --git a/drivers/clk/clk-wm831x.c b/drivers/clk/clk-wm831x.c index 16ed068..0d3c04e 100644 --- a/drivers/clk/clk-wm831x.c +++ b/drivers/clk/clk-wm831x.c @@ -384,7 +384,7 @@ static int wm831x_clk_probe(struct platform_device *pdev) if (IS_ERR(clkdata->clkout)) return PTR_ERR(clkdata->clkout); - dev_set_drvdata(&pdev->dev, clkdata); + platform_set_drvdata(pdev, clkdata); return 0; }