linux/drivers/clk/ti
Suman Anna 7aba4f5201 clk: ti: dflt: fix enable_reg validity check
The default clock enabling functions for TI clocks -
omap2_dflt_clk_enable() and omap2_dflt_clk_disable() perform a
NULL check for the enable_reg field of the clk_hw_omap structure.
This enable_reg field however is merely a combination of the index
of the master IP module, and the offset from the master IP module's
base address. A value of 0 is perfectly valid, and the current error
checking will fail in these cases. The issue was found when trying
to enable the iva2_ck clock on OMAP3 platforms.

So, switch the check to use IS_ERR. This correction is similar to the
logic used in commit c807dbedb5 ("clk: ti: fix ti_clk_get_reg_addr
error handling").

Fixes: 9f37e90efa ("clk: ti: dflt: move support for default gate clock..")
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
2015-10-02 09:24:28 +03:00
..
apll.c clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) 2015-08-24 16:49:12 -07:00
autoidle.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clk-2xxx.c
clk-3xxx-legacy.c
clk-3xxx.c clk: ti: fix dual-registration of uart4_ick 2015-10-02 09:24:28 +03:00
clk-7xx.c clk: ti: clk-7xx: Remove hardwired ABE clock configuration 2015-10-02 09:24:28 +03:00
clk-33xx.c
clk-43xx.c ARM: DT updates for v4.3 2015-09-01 13:09:20 -07:00
clk-44xx.c
clk-54xx.c
clk-814x.c
clk-816x.c ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
clk-dra7-atl.c
clk.c
clkt_dflt.c clk: ti: dflt: fix enable_reg validity check 2015-10-02 09:24:28 +03:00
clkt_dpll.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clkt_iclk.c
clock.h clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
clockdomain.c clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) 2015-08-24 16:49:12 -07:00
composite.c
divider.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll3xxx.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll44xx.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
dpll.c
fapll.c
fixed-factor.c
gate.c clk: ti: Convert to clk_hw based provider APIs 2015-08-24 16:48:58 -07:00
interface.c
Makefile ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
mux.c