]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx6: gpc: don't register power domain if DT data is missing
authorLucas Stach <l.stach@pengutronix.de>
Wed, 27 May 2015 08:10:26 +0000 (10:10 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 27 May 2015 08:33:46 +0000 (16:33 +0800)
commit2f3220bb17cd5901af5d9a513b64e5006c28ffe2
tree034dfde037c325883abdcb3bd93c0aaaf0bacdd7
parent9ca546b985c1a4a77d738d6963dfe21693bd6132
ARM: imx6: gpc: don't register power domain if DT data is missing

If the devicetree is too old and does not provide the regulator and clocks
for the power domain, we need to avoid registering the power domain.
Otherwise runtime PM will try to control the domain, which will lead to
machine hangs without the proper DT configuration data.

This restores functionality to the kernel 4.0 level if an old DT is
detected, where the power domain is constantly powered on.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/gpc.c