summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sun6i.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2018-12-03 22:58:16 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-12-06 18:13:41 +0100
commit459b6ea00acccaac9cd25ba12d55b5fe7d8583df (patch)
tree4e73348b98b492fef6589103cfc6e33a0bbb8b84 /drivers/rtc/rtc-sun6i.c
parent9cd3558678385329709b6d52f639d1f918e04aae (diff)
downloadlinux-459b6ea00acccaac9cd25ba12d55b5fe7d8583df.tar.bz2
rtc: sun6i: Add default clock name for LOSC
The RTC's main clock, used internally and exported to the rest of the SoC, is called "LOSC" (low speed oscillator) through the hardware documentation. This patch adds a default name for this clock, in case the device tree does not provide one. This shouldn't happen, but lets play it safe. Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-sun6i.c')
-rw-r--r--drivers/rtc/rtc-sun6i.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
index fe07310952df..8edd9e1ec007 100644
--- a/drivers/rtc/rtc-sun6i.c
+++ b/drivers/rtc/rtc-sun6i.c
@@ -191,6 +191,7 @@ static void __init sun6i_rtc_clk_init(struct device_node *node)
struct sun6i_rtc_dev *rtc;
struct clk_init_data init = {
.ops = &sun6i_rtc_osc_ops,
+ .name = "losc",
};
const char *clkout_name = "osc32k-out";
const char *parents[2];