]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: bcm: bcm2835-pm: Fix error paths of initialization.
authorEric Anholt <eric@anholt.net>
Wed, 20 Feb 2019 18:19:51 +0000 (10:19 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 4 Mar 2019 23:33:14 +0000 (15:33 -0800)
commit4deabfae643d8852c643664d9088a647abfaa5d0
treef4664e7c2b35df513a3019745bd6c23aff606ce7
parent7f3d6c8e8f5f041c86c0a9f64e4b4ab7c6373ac2
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