]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ingenic: Enable clock in probe
authorPaul Cercueil <paul@crapouillou.net>
Tue, 5 May 2020 22:13:32 +0000 (00:13 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 May 2020 14:34:58 +0000 (16:34 +0200)
commitbdedaf3ab927c15f2a32ddd87cd4237b47c2958a
tree523f82d06f8d9000445024725c8f6e764fb9a604
parenta5c85b8a0ee982170fb81810dfb2e177195c732e
rtc: ingenic: Enable clock in probe

It makes no sense to request a clock and not enable it even though the
hardware is being used. So the driver now enables the clock in the
probe. Besides, now we can properly handle errors.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200505221336.222313-3-paul@crapouillou.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-jz4740.c