]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite839ce44ae2665af8d64ff260a2b1dd58b4b3abc
tree03683ba79b7311b6bdd6e92ee77722b9302d5422
parent790e2f368a5dc34779136f4009abd0ec8d8d2c56
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