commit | 3e217b660281bbdf2db7e58725a4934b5635cb46 | [log] [tgz] |
---|---|---|
author | Jingoo Han <jg1.han@samsung.com> | Mon Apr 29 16:18:27 2013 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Apr 29 18:28:21 2013 -0700 |
tree | b9e9d6d2cb27e947d2fe3f56c7b04685b7311d68 | |
parent | 51b38c62aa89c8747c350dac2515b8899ff8f4d7 [diff] |
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>