diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-03 18:07:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:55 -0400 |
commit | 3a02893f4e70725089b838053e916cc026ed93af (patch) | |
tree | 6a9313a8faf9d7092f2425805032ed5efb6e6453 /drivers/rtc | |
parent | 0209affa6eefb4bb8288f8a0e678b1b36facabd5 (diff) |
rtc: rtc-coh901331: use platform_{get,set}_drvdata()
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-coh901331.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c index c05b2021d25b..73f157519dff 100644 --- a/drivers/rtc/rtc-coh901331.c +++ b/drivers/rtc/rtc-coh901331.c | |||
@@ -152,7 +152,7 @@ static struct rtc_class_ops coh901331_ops = { | |||
152 | 152 | ||
153 | static int __exit coh901331_remove(struct platform_device *pdev) | 153 | static int __exit coh901331_remove(struct platform_device *pdev) |
154 | { | 154 | { |
155 | struct coh901331_port *rtap = dev_get_drvdata(&pdev->dev); | 155 | struct coh901331_port *rtap = platform_get_drvdata(pdev); |
156 | 156 | ||
157 | if (rtap) | 157 | if (rtap) |
158 | clk_unprepare(rtap->clk); | 158 | clk_unprepare(rtap->clk); |
@@ -264,7 +264,7 @@ static SIMPLE_DEV_PM_OPS(coh901331_pm_ops, coh901331_suspend, coh901331_resume); | |||
264 | 264 | ||
265 | static void coh901331_shutdown(struct platform_device *pdev) | 265 | static void coh901331_shutdown(struct platform_device *pdev) |
266 | { | 266 | { |
267 | struct coh901331_port *rtap = dev_get_drvdata(&pdev->dev); | 267 | struct coh901331_port *rtap = platform_get_drvdata(pdev); |
268 | 268 | ||
269 | clk_enable(rtap->clk); | 269 | clk_enable(rtap->clk); |
270 | writel(0, rtap->virtbase + COH901331_IRQ_MASK); | 270 | writel(0, rtap->virtbase + COH901331_IRQ_MASK); |