Skip to content

Commit

Permalink
soc: imx: imx8mp-blk-ctrl: don't set power device name
Browse files Browse the repository at this point in the history
[ Upstream commit 21b84eb ]

Setting the device name after it has been registered confuses the sysfs
cleanup paths. This has already been fixed for the imx8m-blk-ctrl driver in
b64b46f ("Revert "soc: imx: imx8m-blk-ctrl: set power device name""),
but the same problem exists in imx8mp-blk-ctrl.

Fixes: 556f5cf ("soc: imx: add i.MX8MP HSIO blk-ctrl")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
lynxeye-dev authored and gregkh committed Feb 1, 2023
1 parent e92f205 commit 2876069
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/soc/imx/imx8mp-blk-ctrl.c
Expand Up @@ -592,7 +592,6 @@ static int imx8mp_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 = imx8mp_blk_ctrl_power_on;
Expand Down

0 comments on commit 2876069

Please sign in to comment.