ARM: OMAP3: hwmod: initialize clkdm from clkdm_name
authorTero Kristo <t-kristo@ti.com>
Wed, 17 Jul 2013 15:03:25 +0000 (18:03 +0300)
committerMike Turquette <mturquette@linaro.org>
Fri, 17 Jan 2014 20:37:07 +0000 (12:37 -0800)
commit0385c58207771efed179670549573fb779c15dc9
treedc3ff05644e8b8fed19e65d1ad13ba3407d1fccc
parent924f9498acb004d8cb704a008f1060fad604ccca
ARM: OMAP3: hwmod: initialize clkdm from clkdm_name

DT clocks are mostly missing clkdm info now, and this causes an issue with
counter32k which makes its slave idlemode wrong and prevents core idle.

Fixed by initializing the hwmod clkdm pointers for omap3 also which makes
sure the clkdm flag matching logic works properly.

This patch also changes the return value for _init_clkdm to 0 for
incorrect clkdm_name, as this a warning, not a fatal error.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
arch/arm/mach-omap2/omap_hwmod.c