summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2022-04-06 17:33:52 +0200
committerShawn Guo <shawnguo@kernel.org>2022-05-05 09:07:56 +0800
commit8239d67f59cf522dd4f7135392a2f9a3a25f9cff (patch)
treec9780120ed17d8f93b15940cf17a43f79e8c34df /drivers/soc
parenta8a2c274dda4ae0d63ffbe9812e67dc2cf5dcdd9 (diff)
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: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/imx8m-blk-ctrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c
index 122f9c884b38..3071a8eca8ef 100644
--- a/drivers/soc/imx/imx8m-blk-ctrl.c
+++ b/drivers/soc/imx/imx8m-blk-ctrl.c
@@ -241,6 +241,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev)
ret = PTR_ERR(domain->power_dev);
goto cleanup_pds;
}
+ dev_set_name(domain->power_dev, "%s", data->name);
domain->genpd.name = data->name;
domain->genpd.power_on = imx8m_blk_ctrl_power_on;