summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/rockchip
diff options
context:
space:
mode:
authorOndrej Jirman <megi@xff.cz>2022-08-15 12:36:22 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-08-30 07:33:10 +0200
commit0565b91eae14b65850f33a571d59c1cac725536c (patch)
tree420e858e510a55ebcbd28766c25c9a1b88683535 /drivers/media/platform/rockchip
parentmedia: v4l2-ctrls: Fix typo in VP8 comment (diff)
downloadlinux-0565b91eae14b65850f33a571d59c1cac725536c.tar.xz
linux-0565b91eae14b65850f33a571d59c1cac725536c.zip
media: rockchip: rga: Fix probe rga_parse_dt bugs
rga_parse_dt is missing a error return, so if some of the resources return DEFER_PROBE, probe will succeed without these resources. Signed-off-by: Ondrej Jirman <megi@xff.cz> Co-developed-by: Jarrah Gosbell <kernel@undef.tools> Signed-off-by: Jarrah Gosbell <kernel@undef.tools> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/rockchip')
-rw-r--r--drivers/media/platform/rockchip/rga/rga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c
index 2f8df74ad0fd..61b25fcf826e 100644
--- a/drivers/media/platform/rockchip/rga/rga.c
+++ b/drivers/media/platform/rockchip/rga/rga.c
@@ -816,7 +816,7 @@ static int rga_probe(struct platform_device *pdev)
ret = rga_parse_dt(rga);
if (ret)
- dev_err(&pdev->dev, "Unable to parse OF data\n");
+ return dev_err_probe(&pdev->dev, ret, "Unable to parse OF data\n");
pm_runtime_enable(rga->dev);