Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Linus Torvalds
e1c2f989 3a02893f

+1 -1
+1 -1
drivers/rtc/rtc-rc5t583.c
··· 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;