]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mc13xxx: request IRQs after RTC registration
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 3 Apr 2014 21:49:57 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:20 +0000 (16:21 -0700)
commit3f4726efb0f4eaee2a90e5398cc9e1f9ded71f91
treeaa56c1a2b0fbc1528497d4d08e1aedd52667a92a
parent8d06904f7883a5451d2f7e19cb08f9a5f73bf608
rtc: mc13xxx: request IRQs after RTC registration

Interrupts can appear after request_irq and interrupt handlers can use
the RTC device, but currently we register RTC after IRQs.  This patch
changes this order and simplify error path a bit.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-mc13xxx.c