7aba4f5201
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 |
||
---|---|---|
.. | ||
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 | ||
Makefile | ||
mux.c |