rtc: rtc-palmas: use devm_rtc_device_register() and devm_request_threaded_irq()
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 23:19:10 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:26 +0000 (18:28 -0700)
commit27971335ce666feb08344ca7c5fdd25f13985f62
treee789a53ed590b941b44dfe61700cf43d352cb2cc
parent033ca3ad243611c85f83f150d27d8bdf322218f4
rtc: rtc-palmas: use devm_rtc_device_register() and devm_request_threaded_irq()

devm_rtc_device_register() is device managed and makes cleanup
paths simpler.

Also, use devm_request_threaded_irq() to make cleanup paths more simple.

Signed-off-by: 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-palmas.c