[1/1] media: amphion: Fix VPU core alias name

Message ID 20231107071521.953318-1-alexander.stein@ew.tq-group.com (mailing list archive)
State Accepted
Delegated to: Hans Verkuil
Headers
Series [1/1] media: amphion: Fix VPU core alias name |

Commit Message

Alexander Stein Nov. 7, 2023, 7:15 a.m. UTC
  Starting with commit f6038de293f28 ("arm64: dts: imx8qm: Fix VPU core
alias name") the alias for VPU cores uses dashes instead of underscores.
Adjust the alias stem accordingly. Fixes the errors:
amphion-vpu-core 2d040000.vpu-core: can't get vpu core id
amphion-vpu-core 2d050000.vpu-core: can't get vpu core id

Fixes: f6038de293f28 ("arm64: dts: imx8qm: Fix VPU core alias name")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This is technically not a fix, but needs to be applied together with together
referenced commit in the fixes tag.

 drivers/media/platform/amphion/vpu_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ming Qian Nov. 8, 2023, 1:26 a.m. UTC | #1
>From: Alexander Stein <alexander.stein@ew.tq-group.com>
>Sent: 2023年11月7日 15:15
>To: Ming Qian <ming.qian@nxp.com>; Eagle Zhou <eagle.zhou@nxp.com>;
>Mauro Carvalho Chehab <mchehab@kernel.org>
>Cc: Alexander Stein <alexander.stein@ew.tq-group.com>; linux-
>media@vger.kernel.org
>Subject: [EXT] [PATCH 1/1] media: amphion: Fix VPU core alias name
>
>Caution: This is an external email. Please take care when clicking links or
>opening attachments. When in doubt, report the message using the 'Report
>this email' button
>
>
>Starting with commit f6038de293f28 ("arm64: dts: imx8qm: Fix VPU core alias
>name") the alias for VPU cores uses dashes instead of underscores.
>Adjust the alias stem accordingly. Fixes the errors:
>amphion-vpu-core 2d040000.vpu-core: can't get vpu core id amphion-vpu-
>core 2d050000.vpu-core: can't get vpu core id
>
>Fixes: f6038de293f28 ("arm64: dts: imx8qm: Fix VPU core alias name")
>Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>

Reviewed-by: Ming Qian <ming.qian@nxp.com>

>---
>This is technically not a fix, but needs to be applied together with together
>referenced commit in the fixes tag.
>
> drivers/media/platform/amphion/vpu_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/media/platform/amphion/vpu_core.c
>b/drivers/media/platform/amphion/vpu_core.c
>index 1af6fc9460d4d..3a2030d02e45e 100644
>--- a/drivers/media/platform/amphion/vpu_core.c
>+++ b/drivers/media/platform/amphion/vpu_core.c
>@@ -642,7 +642,7 @@ static int vpu_core_probe(struct platform_device
>*pdev)
>                return -ENODEV;
>
>        core->type = core->res->type;
>-       core->id = of_alias_get_id(dev->of_node, "vpu_core");
>+       core->id = of_alias_get_id(dev->of_node, "vpu-core");
>        if (core->id < 0) {
>                dev_err(dev, "can't get vpu core id\n");
>                return core->id;
>--
>2.34.1
  

Patch

diff --git a/drivers/media/platform/amphion/vpu_core.c b/drivers/media/platform/amphion/vpu_core.c
index 1af6fc9460d4d..3a2030d02e45e 100644
--- a/drivers/media/platform/amphion/vpu_core.c
+++ b/drivers/media/platform/amphion/vpu_core.c
@@ -642,7 +642,7 @@  static int vpu_core_probe(struct platform_device *pdev)
 		return -ENODEV;
 
 	core->type = core->res->type;
-	core->id = of_alias_get_id(dev->of_node, "vpu_core");
+	core->id = of_alias_get_id(dev->of_node, "vpu-core");
 	if (core->id < 0) {
 		dev_err(dev, "can't get vpu core id\n");
 		return core->id;