soc: imx: imx8m-blk-ctrl: set power device name
authorLucas Stach <l.stach@pengutronix.de>
Wed, 6 Apr 2022 15:33:52 +0000 (17:33 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 5 May 2022 01:07:56 +0000 (09:07 +0800)
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>
drivers/soc/imx/imx8m-blk-ctrl.c

index 122f9c8..3071a8e 100644 (file)
@@ -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;