OMAP: HWMOD: Adding clockdomain check.
Subsystems (4)
PATCH 1/1 OMAP: HWMOD: Adding clockdomain check.
This patch adds check for presence of clockdomain structure in the API omap_hwmod_get_pwrdm before trying to access the powerdomain structure. This will prevent unnecessary crashing of the system in case of a clock node with out an associated clockdomian.
Signed-off-by Thara Gopinath <[email protected]>
Cc Paul Walmsley <[email protected]>
--- arch/arm/mach-omap2/omap_hwmod.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/omap_hwmod.c +2 -0
@@ -1440,6 +1440,8 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh) c = oh->slaves[oh->_mpu_port_index]->_clk; } +if (!c->clkdm) +return NULL ;return c->clkdm->pwrdm.ptr; }
Signature · 1 line
1.5.4.7
Paul Walmsley
maintainerQuoted 7 lines · Thara Gopinath
This patch adds check for presence of clockdomain structure in the API
omap_hwmod_get_pwrdmbefore trying to access the powerdomain structure. This will prevent unnecessary crashing of the system in case of a clock node with out an associated clockdomian.Signed-off-by Thara Gopinath <[email protected]>Cc Paul Walmsley <[email protected]>
Thanks, queued for .34-rcX.
- Paul