OSDN Git Service

Revert "soc: imx: imx8m-blk-ctrl: set power device name"
authorMarco Felsch <m.felsch@pengutronix.de>
Fri, 8 Jul 2022 09:08:53 +0000 (11:08 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 17 Aug 2022 08:35:44 +0000 (16:35 +0800)
This reverts commit 8239d67f59cf522dd4f7135392a2f9a3a25f9cff.

This change confuses the sysfs cleanup path since the rename is done
after the device registration.

Fixes: 8239d67f59cf ("soc: imx: imx8m-blk-ctrl: set power device name")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/imx8m-blk-ctrl.c

index dff7529..972f289 100644 (file)
@@ -243,7 +243,6 @@ 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;