diff options
author | Jindong Yue <jindong.yue@nxp.com> | 2023-03-01 21:05:54 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-03-14 11:36:34 +0800 |
commit | 31ef51a4ae5e6e6745aae119a2836d7386652a2b (patch) | |
tree | e33f9ad5f8910eb74f5db4bb7c07dba03b21e316 | |
parent | 56c017f64d76e3c7fd525014f811349092e1c022 (diff) | |
download | lwn-31ef51a4ae5e6e6745aae119a2836d7386652a2b.tar.gz lwn-31ef51a4ae5e6e6745aae119a2836d7386652a2b.zip |
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>
-rw-r--r-- | drivers/soc/imx/imx8m-blk-ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 8bee7280303c..c8cf57337bbe 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -210,7 +210,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) if (!bc->onecell_data.domains) return -ENOMEM; - bc->bus_power_dev = genpd_dev_pm_attach_by_name(dev, "bus"); + bc->bus_power_dev = dev_pm_domain_attach_by_name(dev, "bus"); if (IS_ERR(bc->bus_power_dev)) { if (PTR_ERR(bc->bus_power_dev) == -ENODEV) return dev_err_probe(dev, -EPROBE_DEFER, |