From: Lucas Stach Date: Wed, 6 Apr 2022 15:33:52 +0000 (+0200) Subject: soc: imx: imx8m-blk-ctrl: set power device name X-Git-Tag: v5.19-rc1~143^2~3^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8239d67f59cf522dd4f7135392a2f9a3a25f9cff;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Shawn Guo --- diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 122f9c884b38b..3071a8eca8ef7 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;