]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tegra.c: use managed rtc_device_register()
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 20 Mar 2013 04:08:11 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:17 +0000 (16:34 +1100)
commite908fd1b075630d3045f200a8272772d4ad91efb
treebad6ff53711701f1f07fa262803c5b3902139e71
parentaed6894a9ab202e029a4b5aaf8619eba344918b0
drivers/rtc/rtc-tegra.c: use managed rtc_device_register()

Use devm_rtc_device_register() for registering RTC device.  This will
reduce the code for unregistering RTC device in cleanup path and remove
the implementation of remove callback of platform driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-tegra.c