diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-22 17:37:08 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-03-23 00:59:32 +0300 |
commit | d18a7408d7be0f34a120d99051ed5187d9727728 (patch) | |
tree | ac8fb4ce5b87cb629a9b0f0bcecf1ce81df5cdce /drivers | |
parent | e8750053d64a3317cbc15f8341f0f11ca751bfeb (diff) | |
download | linux-d18a7408d7be0f34a120d99051ed5187d9727728.tar.xz |
clocksource/drivers/clps711x: Make clps711x_clksrc_init() static
Fix sparse warning:
drivers/clocksource/clps711x-timer.c:96:13: warning:
symbol 'clps711x_clksrc_init' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <daniel.lezcano@linaro.org>
Cc: <shc_work@mail.ru>
Cc: <linux-arm-kernel@lists.infradead.org>
Link: https://lkml.kernel.org/r/20190322143708.12716-1-yuehaibing@huawei.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clocksource/clps711x-timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c index a8dd80576c95..cdc251524f5e 100644 --- a/drivers/clocksource/clps711x-timer.c +++ b/drivers/clocksource/clps711x-timer.c @@ -93,8 +93,9 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, "clps711x-timer", clkevt); } -void __init clps711x_clksrc_init(void __iomem *tc1_base, void __iomem *tc2_base, - unsigned int irq) +static void __init clps711x_clksrc_init(void __iomem *tc1_base, + void __iomem *tc2_base, + unsigned int irq) { struct clk *tc1 = clk_get_sys("clps711x-timer.0", NULL); struct clk *tc2 = clk_get_sys("clps711x-timer.1", NULL); |