]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sun6i: Allow probing without an early clock provider
authorSamuel Holland <samuel@sholland.org>
Tue, 28 Sep 2021 08:03:32 +0000 (03:03 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 23 Oct 2021 21:50:27 +0000 (23:50 +0200)
commit67dd1028debdaed77bacb9119c16eff482be5326
tree2f1459862203d20f4db9b73e3b22676e5188da53
parent52f63a771401cf1adbeab0a3bd537aba22adf53d
rtc: sun6i: Allow probing without an early clock provider

Some SoCs have an RTC supported by this RTC driver, but do not have an
early clock provider declared here. Currently, this prevents the RTC
driver from probing, because it expects a global struct to already be
allocated. Fix probing the driver by copying the missing pieces from the
clock provider setup function, replacing them with the devm variants.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210928080335.36706-7-samuel@sholland.org
drivers/rtc/rtc-sun6i.c