]> git.baikalelectronics.ru Git - kernel.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)
commit52cf9cc0af48abc60d6e1652181ec8199f3d0888
treef4664e7c2b35df513a3019745bd6c23aff606ce7
parentde921737a45033885df4e842f367b55d0e507f92
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: b96992c56cff ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.")
drivers/soc/bcm/bcm2835-power.c