diff options
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index b6031e468def..2fff39ff4080 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -404,21 +404,20 @@ static int _del_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh) | |||
404 | */ | 404 | */ |
405 | static int _init_main_clk(struct omap_hwmod *oh) | 405 | static int _init_main_clk(struct omap_hwmod *oh) |
406 | { | 406 | { |
407 | struct clk *c; | ||
408 | int ret = 0; | 407 | int ret = 0; |
409 | 408 | ||
410 | if (!oh->main_clk) | 409 | if (!oh->main_clk) |
411 | return 0; | 410 | return 0; |
412 | 411 | ||
413 | c = omap_clk_get_by_name(oh->main_clk); | 412 | oh->_clk = omap_clk_get_by_name(oh->main_clk); |
414 | if (!c) | 413 | if (!oh->_clk) |
415 | pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", | 414 | pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", |
416 | oh->name, oh->main_clk); | 415 | oh->name, oh->main_clk); |
417 | ret = -EINVAL; | 416 | return -EINVAL; |
418 | oh->_clk = c; | ||
419 | 417 | ||
420 | WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n", | 418 | if (!oh->_clk->clkdm) |
421 | oh->main_clk, c->name); | 419 | pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n", |
420 | oh->main_clk, oh->_clk->name); | ||
422 | 421 | ||
423 | return ret; | 422 | return ret; |
424 | } | 423 | } |