rtc: tx4939: fix possible race condition
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:58 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:35 +0000 (10:49 +0100)
commita2fa9b8e5abc7d16d5617996638f796fbd61cbb2
tree03683ba79b7311b6bdd6e92ee77722b9302d5422
parent68981fd1515de16f8effdd39e81f9a6084a895f7
rtc: tx4939: fix possible race condition

The probe function is not allowed to fail after registering the RTC. Call
rtc_register_device() at the end.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tx4939.c