Anatolij Gustschin 73737b8787 drivers/rtc/rtc-r9701.c: fix crash in r9701_remove()
If probing the RTC didn't succeed due to failed RTC register access, the
RTC device will be unregistered.  Then, when removing the module
r9701_remove() causes a kernel crash while trying to unregister a not
registered RTC device.  Fix this by doing RTC register access test before
RTC device registration.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-03-05 15:49:43 -08:00
..
2012-02-06 14:37:52 -05:00
2012-01-26 18:36:48 +00:00
2012-02-02 14:00:43 +05:30
2012-02-09 15:41:29 -05:00
2012-02-08 19:06:30 -08:00
2012-02-01 19:35:21 +01:00
2012-02-27 07:54:27 -08:00
2012-02-01 15:26:00 -05:00
2012-01-13 10:12:23 -08:00
2012-03-02 15:21:15 -08:00
2012-01-02 13:04:55 +01:00
2012-01-11 23:58:47 -05:00