Skip to content

Commit

Permalink
media: amphion: Fix VPU core alias name
Browse files Browse the repository at this point in the history
commit f033c87 upstream.

Starting with commit f6038de ("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: f6038de ("arm64: dts: imx8qm: Fix VPU core alias name")
Signed-off-by: Alexander Stein <[email protected]>
Reviewed-by: Ming Qian <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
tq-steina authored and gregkh committed Nov 14, 2024
1 parent 44d2989 commit 1783799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/amphion/vpu_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1783799

Please sign in to comment.