soc: bcm: bcm2835-pm: Fix error paths of initialization.
authorEric Anholt <eric@anholt.net>
Sat, 12 Jan 2019 16:07:43 +0000 (08:07 -0800)
committerpopcornmix <popcornmix@gmail.com>
Thu, 13 Jun 2019 10:45:17 +0000 (11:45 +0100)
commit3c369e68d729714343f2bc322eda0e36ce963607
tree8f4a9b56ce3de9e9e5be48b8b850ed6e62266bf7
parent332fd3975fec374d1b84b3523f610d70c674d120
soc: bcm: bcm2835-pm: Fix error paths of initialization.

The clock driver may probe after ours and so we need to pass the
-EPROBE_DEFER out.  Fix the other error path while we're here.

v2: Use dom->name instead of dom->gov as the flag for initialized
    domains, since we aren't setting up a governor.  Make sure to
    clear ->clk when no clk is present in the DT.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.")
drivers/soc/bcm/bcm2835-power.c