Commit 8239d67f authored by Lucas Stach's avatar Lucas Stach Committed by Shawn Guo

soc: imx: imx8m-blk-ctrl: set power device name

Set the name for the virtual power device to the name of the attached
blk-ctrl domain. Makes the debug output for the power domains a lot
more pleasant to read.
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a8a2c274
...@@ -241,6 +241,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) ...@@ -241,6 +241,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev)
ret = PTR_ERR(domain->power_dev); ret = PTR_ERR(domain->power_dev);
goto cleanup_pds; goto cleanup_pds;
} }
dev_set_name(domain->power_dev, "%s", data->name);
domain->genpd.name = data->name; domain->genpd.name = data->name;
domain->genpd.power_on = imx8m_blk_ctrl_power_on; domain->genpd.power_on = imx8m_blk_ctrl_power_on;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment