ARM: OMAP2+: Check also the first dts child for hwmod flags
authorTony Lindgren <tony@atomide.com>
Mon, 10 Dec 2018 22:11:10 +0000 (14:11 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 10 Dec 2018 22:11:10 +0000 (14:11 -0800)
commit4f2122473363b569db652dc09029715ad808e1a6
tree4647e9a51547e580a789c890e1f8a7ca32946995
parentf01067005ec3dc03d49e430ec91243111ce518c2
ARM: OMAP2+: Check also the first dts child for hwmod flags

Until the board specific dts files are updated to have hwmod
flags at the interconnect target module level, we want to keep
things working both for old and new dts files.

So let's also check the first child for hwmod flags. The module
flags are for the whole module, so only the first child should
ever have them.

Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c