Skip to content

Commit 31ef51a

Browse files
JDYueShawn Guo
authored andcommitted
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>
1 parent 56c017f commit 31ef51a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/imx/imx8m-blk-ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev)
210210
if (!bc->onecell_data.domains)
211211
return -ENOMEM;
212212

213-
bc->bus_power_dev = genpd_dev_pm_attach_by_name(dev, "bus");
213+
bc->bus_power_dev = dev_pm_domain_attach_by_name(dev, "bus");
214214
if (IS_ERR(bc->bus_power_dev)) {
215215
if (PTR_ERR(bc->bus_power_dev) == -ENODEV)
216216
return dev_err_probe(dev, -EPROBE_DEFER,

0 commit comments

Comments
 (0)