rtc: add devm_rtc_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 23:18:27 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:21 +0000 (18:28 -0700)
commit3e217b660281bbdf2db7e58725a4934b5635cb46
treeb9e9d6d2cb27e947d2fe3f56c7b04685b7311d68
parent51b38c62aa89c8747c350dac2515b8899ff8f4d7
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/class.c
include/linux/rtc.h