Commit e1c2f989 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3a02893f
...@@ -273,7 +273,7 @@ static int rc5t583_rtc_probe(struct platform_device *pdev) ...@@ -273,7 +273,7 @@ static int rc5t583_rtc_probe(struct platform_device *pdev)
*/ */
static int rc5t583_rtc_remove(struct platform_device *pdev) static int rc5t583_rtc_remove(struct platform_device *pdev)
{ {
struct rc5t583_rtc *rc5t583_rtc = dev_get_drvdata(&pdev->dev); struct rc5t583_rtc *rc5t583_rtc = platform_get_drvdata(pdev);
rc5t583_rtc_alarm_irq_enable(&rc5t583_rtc->rtc->dev, 0); rc5t583_rtc_alarm_irq_enable(&rc5t583_rtc->rtc->dev, 0);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment