linux/drivers/clk/ti
Arnd Bergmann 3417f3528a clk: ti: divider: try to fix ti_clk_register_divider
Commit 6c0afb5039 ("clk: ti: convert to use proper register
definition for all accesses") converted all register accesses in
the TI clk driver to use a proper struct instead of a void
pointer casted struct that fits into a u32. Unfortunately, it
missed a conversion here in the didivder code, leading to a
compiler warning like so:

drivers/clk/ti/divider.c: In function 'ti_clk_register_divider':
drivers/clk/ti/divider.c:460:8: error: 'reg' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Treating a 'u32' variable as a structure leads to a stack
overflow here, and the register address we pass down is never
initialized. Convert this part of the code as well so things
work properly.

Fixes: 6c0afb5039 ("clk: ti: convert to use proper register definition for all accesses")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[sboyd@codeaurora.org: Fixed fixes tag, rewrote commit message,
s/reg_setup/reg/]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2017-04-28 11:07:09 -07:00
..
adpll.c
apll.c
autoidle.c
clk-2xxx.c
clk-3xxx-legacy.c
clk-3xxx.c
clk-7xx.c
clk-33xx.c
clk-43xx.c
clk-44xx.c
clk-54xx.c
clk-814x.c
clk-816x.c
clk-dra7-atl.c
clk.c
clkt_dflt.c
clkt_dpll.c
clkt_iclk.c
clock.h
clockdomain.c
composite.c
divider.c
dpll3xxx.c
dpll44xx.c
dpll.c
fapll.c
fixed-factor.c
gate.c
interface.c
Kconfig
Makefile
mux.c