Message ID | 002201ce5cd6$6cd46a60$467d3f20$@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBLO3TKGQKGQEZ4CKNYQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pb0-x23d.google.com (mail-pb0-x23d.google.com [IPv6:2607:f8b0:400e:c01::23d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id F13A42C0085 for <incoming@patchwork.ozlabs.org>; Thu, 30 May 2013 11:38:59 +1000 (EST) Received: by mail-pb0-f61.google.com with SMTP id jt11sf3122231pbb.16 for <incoming@patchwork.ozlabs.org>; Wed, 29 May 2013 18:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:x-auditid:from:to:cc:subject:date:message-id :mime-version:x-mailer:thread-index:x-brightmail-tracker :x-brightmail-tracker:dlp-filter:x-mtr:x-cfilter-loop :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-language; bh=blBnI3RvGoeDrb9oLg1Me3kIFqCMP5aIEckZKTiF+EM=; b=KPWlDwekUKDGdunQ3Ke+OYES4n2tRLRtxjwFvaABL+k/tmsDkspl/EcCpW2MPeLNWc L4aPzGTFZEyF/m7LX6kHhVrukT+iPbTb4eYITMfaBgAvNzWPvLZmJ2V3v6XX1wp2XOvd wDenMU7fQW8HwKz0rY7sM5tBLMwx+y89OStg3oFhcS60Bt4FJydJY28pW3lqhynMRxMP w3HhDpTY/789n+kMEWJBq9ee3RvmyY4mKbnpwtBWb54sOecWE2evfEygwNj5Jz7S7RXk RWoIHr9JcdD1fCsoCXqwf3DKVXMCUo2Oc1h0JZBQScWrXUdwkdF3GvR1Y/LTU874HnDd WtOQ== X-Received: by 10.50.102.71 with SMTP id fm7mr825544igb.7.1369877934453; Wed, 29 May 2013 18:38:54 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.3.10 with SMTP id 10ls3959125igy.0.canary; Wed, 29 May 2013 18:38:53 -0700 (PDT) X-Received: by 10.66.252.170 with SMTP id zt10mr918399pac.45.1369877933858; Wed, 29 May 2013 18:38:53 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by gmr-mx.google.com with ESMTP id cw1si5654706pbb.0.2013.05.29.18.38.53 for <rtc-linux@googlegroups.com>; Wed, 29 May 2013 18:38:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MNL006L88KDNF70@mailout4.samsung.com> for rtc-linux@googlegroups.com; Thu, 30 May 2013 10:38:46 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 47.D3.03969.6ADA6A15; Thu, 30 May 2013 10:38:46 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-9e-51a6ada60eb8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C5.63.28381.5ADA6A15; Thu, 30 May 2013 10:38: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 <0MNL00MI48KLT460@mmp1.samsung.com>; Thu, 30 May 2013 10:38:45 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Andrew Morton' <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' <a.zummo@towertech.it>, rtc-linux@googlegroups.com, Jingoo Han <jg1.han@samsung.com> Subject: [rtc-linux] [PATCH V2] rtc: rtc-mpc5121: use platform_{get, set}_drvdata() Date: Thu, 30 May 2013 10:38:45 +0900 Message-id: <002201ce5cd6$6cd46a60$467d3f20$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5c1mQfwiqEdSiURqixsvdx5ITquA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zQ91la5cFGkx6wWax5OJVdos569ew WVxeeInV4vKuOWwW+zs7GB1YPfZMPMnmcWLGbxaPvi2rGD2mz/vJ5PF5k1wAaxSXTUpqTmZZ apG+XQJXxuaWRtaCN5wVc5vXMDUwLuHoYuTkkBAwkXi/ZgoThC0mceHeerYuRi4OIYFljBL7 194ESnCAFR1dFAoRX8QosfJEEzuE84tR4s+0bhaQbjYBNYkvXw6zgzSICOhLtLVogNQwC3Qz SjxqnssMUiMs4CYx89wmdhCbRUBV4lXvXDYQm1fAUuJow0EWCFtQ4sfke2A2s4CWxPqdx5kg bHmJzWveMkNcqiCx4+xrRhBbREBP4viLK1D1IhL7XrxjBFksIXCMXeL8zBOsEMsEJL5NPsQC 8Y2sxKYDUHMkJQ6uuMEygVFsFpLVs5CsnoVk9SwkKxYwsqxiFE0tSC4oTkovMtYrTswtLs1L 10vOz93ECIm9/h2Mdw9YH2JMBlo/kVlKNDkfGLt5JfGGxmZGFqYmpsZG5pZmpAkrifOqtVgH CgmkJ5akZqemFqQWxReV5qQWH2Jk4uCUamBsME9bxrW9d++duR1Op7at5u786eRjsUpJvS3t RK7i7SMx/KvX//6Qk180+Yik2v1+7riiozN+33XapOFoOCW3e+fHJWHM2XMkwufsn3z93KEN z64HdO+QaHKd9uAJs3BdUPGesrV1G3VszhbvEvgeEpH19sv0DYxnutkqDGZdn7FsZ2LInGx+ JZbijERDLeai4kQADPyR1dMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jAd1la5cFGlydwWyx5OJVdos569ew WVxeeInV4vKuOWwW+zs7GB1YPfZMPMnmcWLGbxaPvi2rGD2mz/vJ5PF5k1wAa1QDo01GamJK apFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0HYlhbLEnFKgUEBi cbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGEdY8bmlkbWgjecFXOb1zA1MC7h6GLk4JAQMJE4 uii0i5ETyBSTuHBvPVsXIxeHkMAiRomVJ5rYIZxfjBJ/pnWzgFSxCahJfPlymB2kWURAX6Kt RQOkhlmgm1HiUfNcZpAaYQE3iZnnNrGD2CwCqhKveueygdi8ApYSRxsOskDYghI/Jt8Ds5kF tCTW7zzOBGHLS2xe85YZ4iIFiR1nXzOC2CICehLHX1yBqheR2PfiHeMERoFZSEbNQjJqFpJR s5C0LGBkWcUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRHNnPpHYwrmywOMQowMGoxMO7QWtZ oBBrYllxZe4hRgkOZiUR3jXaQCHelMTKqtSi/Pii0pzU4kOMyUCfTmSWEk3OByadvJJ4Q2MT MyNLIzMLIxNzc9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLglGpgDDkW+jCkNZ4vcqtKWd2l Sz0n2FPl2MuUlPQVthYeFe2Z67hBaM8S/uc/ixK1HnIv/WPIf27fiv67K4XlE4odbZ5ma/1R 9MkreiOo1RI/5dC/tralnJflDb/us+Z+HCwuNCdrR4Hxkoz/5aZ2sStuecT/drSf18nO+369 /Mm8/poHCWZTZjoosRRnJBpqMRcVJwIA6lJ7RTADAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Original-Sender: jg1.han@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=jg1.han@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-type: text/plain; charset=ISO-8859-1 Content-language: ko |
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c index 4c02497..9c8f609 100644 --- a/drivers/rtc/rtc-mpc5121.c +++ b/drivers/rtc/rtc-mpc5121.c @@ -324,7 +324,7 @@ static int mpc5121_rtc_probe(struct platform_device *op) device_init_wakeup(&op->dev, 1); - dev_set_drvdata(&op->dev, rtc); + platform_set_drvdata(op, rtc); rtc->irq = irq_of_parse_and_map(op->dev.of_node, 1); err = request_irq(rtc->irq, mpc5121_rtc_handler, 0, @@ -382,7 +382,7 @@ out_dispose: static int mpc5121_rtc_remove(struct platform_device *op) { - struct mpc5121_rtc_data *rtc = dev_get_drvdata(&op->dev); + struct mpc5121_rtc_data *rtc = platform_get_drvdata(op); struct mpc5121_rtc_regs __iomem *regs = rtc->regs; /* disable interrupt, so there are no nasty surprises */
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 <jg1.han@samsung.com> --- Changes since v1: - fixed conflicts with rtc-rtc-mpc5121-use-devm_-functions.patch drivers/rtc/rtc-mpc5121.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)