]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tegra.c: use managed rtc_device_register()
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 29 Apr 2013 23:19:25 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:28 +0000 (18:28 -0700)
commit68567112ee3fa3c4eec0c525c39929564809dbb4
tree5c8160db187fcb7e41ed986ca25c5491b00f58cb
parent57bff981f7ebc9b4617f84d425081dbddcf9f963
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-tegra.c