Commit e1c2f989e691e8e124b57fd7ba4e15e7873b91e5
Committed by
Linus Torvalds
1 parent
3a02893f4e
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
rtc: rtc-rc5t583: 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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/rtc/rtc-rc5t583.c
... | ... | @@ -273,7 +273,7 @@ |
273 | 273 | */ |
274 | 274 | static int rc5t583_rtc_remove(struct platform_device *pdev) |
275 | 275 | { |
276 | - struct rc5t583_rtc *rc5t583_rtc = dev_get_drvdata(&pdev->dev); | |
276 | + struct rc5t583_rtc *rc5t583_rtc = platform_get_drvdata(pdev); | |
277 | 277 | |
278 | 278 | rc5t583_rtc_alarm_irq_enable(&rc5t583_rtc->rtc->dev, 0); |
279 | 279 | return 0; |