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)
commit796be8b59dec3efe840a251e2ecc0734408c5ff3
tree523f82d06f8d9000445024725c8f6e764fb9a604
parentc61293f147738b4438639ef81124d5ea6246e610
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