]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc: imx: gpc: de-register power domains only if initialized
authorStefan Agner <stefan@agner.ch>
Sun, 7 Jan 2018 13:49:05 +0000 (14:49 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit1d25a7ead21df6d2f173172c78f5014690929d7b
treebbd3ac810c8d04ea6a0624a92454df760663cb1f
parent86215687ffce550249b82be0f62dce220cc7fdd0
soc: imx: gpc: de-register power domains only if initialized

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 7801c545e706674aeed40256eb806ad37b18ad71 ]

If power domain information are missing in the device tree, no
power domains get initialized. However, imx_gpc_remove tries to
remove power domains always in the old DT binding case. Only
remove power domains when imx_gpc_probe initialized them in
first place.

Fixes: 721cabf6c660 ("soc: imx: move PGC handling to a new GPC driver")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/soc/imx/gpc.c