]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: add devm_rtc_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Tue, 26 Mar 2013 23:25:13 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:33 +0000 (17:12 +1100)
commit0a1229455856f0ebc4de5d0985a049d002ab8dcf
treeddd0f75e711f38ddc8a6ace9cdcd9fbde5025a26
parent2acfa80000970e387b55016cb16625fe259a0b06
rtc: add devm_rtc_device_{register,unregister}()

These functions allow the driver core to automatically clean up any
allocation made by rtc drivers.  Thus it simplifies the error paths.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/class.c
include/linux/rtc.h