]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-mpc5121.c: use platform_{get,set}_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 19 Jun 2013 00:08:06 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:33 +0000 (17:27 +1000)
commit4bca05b4f8b3fc44882ab92144c3c21c1b7c79f6
tree048de237a6b66afb7c6b3b6cf829d07df49de193
parentcfd03be6e2cdd4584c725aea6459dbd4c9494f4b
drivers/rtc/rtc-mpc5121.c: 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>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-mpc5121.c