mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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>
This commit is contained in:
parent
56c017f64d
commit
31ef51a4ae
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user