aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/clk-814x.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-03-01 10:51:42 -0800
committerMichael Turquette <mturquette@baylibre.com>2016-03-01 16:21:25 -0800
commit8a8b6eb7a87f12804f44128d6e4c59b19f224308 (patch)
tree34f5b3370d236fc28bb6c14228fb91839ecaaa12 /drivers/clk/ti/clk-814x.c
parentclk: ti: Allow COMPILE_TEST to build selected drivers (diff)
downloadlinux-dev-8a8b6eb7a87f12804f44128d6e4c59b19f224308.tar.xz
linux-dev-8a8b6eb7a87f12804f44128d6e4c59b19f224308.zip
clk: ti: Fix some errors found by static checkers
drivers/clk/ti/clk-814x.c:34:12: warning: symbol 'dm814x_adpll_early_init' was not declared. Should it be static? drivers/clk/ti/clk-814x.c:58:12: warning: symbol 'dm814x_adpll_enable_init_clocks' was not declared. Should it be static? drivers/clk/ti/adpll.c:465 ti_adpll_recalc_rate() warn: should '__readw(d->regs + 20) << 18' be a 64 bit type? drivers/clk/ti/adpll.c:945 ti_adpll_probe() error: we previously assumed 'd->clocks' could be null (see line 921) The last one looks like a real bug because we don't return an error on allocation failure. Cc: Tero Kristo <t-kristo@ti.com> Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/ti/clk-814x.c')
-rw-r--r--drivers/clk/ti/clk-814x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ti/clk-814x.c b/drivers/clk/ti/clk-814x.c
index 2323643fb731..52c6efc53731 100644
--- a/drivers/clk/ti/clk-814x.c
+++ b/drivers/clk/ti/clk-814x.c
@@ -31,7 +31,7 @@ static struct ti_dt_clk dm814_clks[] = {
static bool timer_clocks_initialized;
-int __init dm814x_adpll_early_init(void)
+static int __init dm814x_adpll_early_init(void)
{
struct device_node *np;
@@ -55,7 +55,7 @@ static const char * const init_clocks[] = {
"pll290clkout", /* DDR 481c5290.adpll.clkout */
};
-int __init dm814x_adpll_enable_init_clocks(void)
+static int __init dm814x_adpll_enable_init_clocks(void)
{
int i, err;