]> rtime.felk.cvut.cz Git - linux-imx.git/commit
rtc: rtc-coh901331: use platform_{get,set}_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 3 Jul 2013 22:07:12 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:55 +0000 (16:07 -0700)
commit3a02893f4e70725089b838053e916cc026ed93af
tree6a9313a8faf9d7092f2425805032ed5efb6e6453
parent0209affa6eefb4bb8288f8a0e678b1b36facabd5
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>
drivers/rtc/rtc-coh901331.c