soc: imx: imx8m-blk-ctrl: Use dev_pm_domain_attach_by_name
authorJindong Yue <jindong.yue@nxp.com>
Wed, 1 Mar 2023 13:05:54 +0000 (21:05 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 14 Mar 2023 03:36:34 +0000 (11:36 +0800)
commit31ef51a4ae5e6e6745aae119a2836d7386652a2b
treee33f9ad5f8910eb74f5db4bb7c07dba03b21e316
parent56c017f64d76e3c7fd525014f811349092e1c022
soc: imx: imx8m-blk-ctrl: Use dev_pm_domain_attach_by_name

The genpd_dev_pm_attach_by_name() is not exported, following error
occurs when building imx8m-blk-ctrl as a module:

ERROR: modpost: "genpd_dev_pm_attach_by_name" [drivers/soc/imx/imx8m-blk-ctrl.ko] undefined!

Fix this by using dev_pm_domain_attach_by_name() instead.

Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/imx8m-blk-ctrl.c