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

This reverts commit 8239d67f59.

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

Fixes: 8239d67f59 ("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>
This commit is contained in:
Marco Felsch 2022-07-08 11:08:53 +02:00 committed by Shawn Guo
parent 568035b01c
commit b64b46fbaa
1 changed files with 0 additions and 1 deletions

View File

@ -243,7 +243,6 @@ 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;