soc: imx: gpcv2: move domain mapping to domain driver probe
authorLucas Stach <l.stach@pengutronix.de>
Mon, 10 May 2021 04:00:34 +0000 (12:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 02:57:39 +0000 (10:57 +0800)
commit4ac6317a3701007df4837dcd8036b21d6a049327
treeae4d50b45be3b04c9d87fd1dad84e23c6cf61db8
parent4ed57c97b414a2e285ce46e41e8387b51961cd64
soc: imx: gpcv2: move domain mapping to domain driver probe

As long as the power domain driver is active we want power control
over the domain (which is what the mapping bit requests), so there
is no point in whacking it for every power control action, simply
set the bit in driver probe and clear it when the driver is removed.

Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c