clk: ti: Fix some errors found by static checkers
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 1 Mar 2016 18:51:42 +0000 (10:51 -0800)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 2 Mar 2016 00:21:25 +0000 (16:21 -0800)
commit8a8b6eb7a87f12804f44128d6e4c59b19f224308
tree34f5b3370d236fc28bb6c14228fb91839ecaaa12
parentc2ee9bdc852dcd1f2f3a6adaa986f14441a673f3
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>
drivers/clk/ti/adpll.c
drivers/clk/ti/clk-814x.c