]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: sun6i: Add default clock name for LOSC
authorChen-Yu Tsai <wens@csie.org>
Mon, 3 Dec 2018 14:58:16 +0000 (22:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Dec 2018 17:13:41 +0000 (18:13 +0100)
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>
drivers/rtc/rtc-sun6i.c

index fe07310952dfa20c3f15e738b74ca8c19dc3c744..8edd9e1ec007b07b714278ba9252d4e0db514f06 100644 (file)
@@ -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];