]> git.baikalelectronics.ru Git - kernel.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)
commitb85868bb82ce14a06d0d4579aa0efeacb40baa9c
tree5c8160db187fcb7e41ed986ca25c5491b00f58cb
parent691ea12f46a14e1ab28cb3e43c52dc7a385707fd
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