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 clk: ti: Fix some errors found by static checkers 2016-03-01 16:21:25 -08:00
apll.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
autoidle.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clk-2xxx.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-3xxx-legacy.c clk: ti: Include clk.h 2015-07-20 11:11:28 -07:00
clk-3xxx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clk-7xx.c clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message 2016-12-08 15:09:12 -08:00
clk-33xx.c clk: ti: am335x/am4372: Add tbclk to pwm node 2016-06-10 03:25:04 -07:00
clk-43xx.c ARM: DT updates for v4.8 2016-08-01 18:37:45 -04:00
clk-44xx.c clk: ti: omap4: cleanup unnecessary clock aliases 2017-03-08 13:00:57 +02:00
clk-54xx.c clk: ti: dra7: fix kernel boot with arg 'clocksource=gp_timer' 2016-04-15 17:30:07 -07:00
clk-814x.c clk: ti: Fix some errors found by static checkers 2016-03-01 16:21:25 -08:00
clk-816x.c clk: ti816x: Add missing dmtimer clkdev entries 2015-11-24 11:30:27 +02:00
clk-dra7-atl.c clk: ti: use automatic clock alias generation framework 2017-03-08 12:58:18 +02:00
clk.c clk: ti: fix building without legacy omap3 2017-04-21 19:01:39 -07:00
clkt_dflt.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_dpll.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_iclk.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clock.h clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clockdomain.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
composite.c clk: ti: enforce const types on string arrays 2017-03-08 13:00:25 +02:00
divider.c clk: ti: divider: try to fix ti_clk_register_divider 2017-04-28 11:07:09 -07:00
dpll3xxx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
dpll44xx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
dpll.c clk: ti: fix linker error with !SOC_OMAP4 2017-04-21 19:01:18 -07:00
fapll.c clk: ti: fapll: fix wrong do_div() usage 2015-11-24 11:30:27 +02:00
fixed-factor.c clk: ti: use automatic clock alias generation framework 2017-03-08 12:58:18 +02:00
gate.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
interface.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
Kconfig clk: ti: Add support for dm814x ADPLL 2016-03-01 16:21:25 -08:00
Makefile clk: ti: Allow COMPILE_TEST to build selected drivers 2016-03-01 16:21:25 -08:00
mux.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00