aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <[email protected]>2024-06-17 18:11:25 +0200
committerLaurent Pinchart <[email protected]>2024-06-19 19:42:55 +0300
commite306183628f7c2e95f9bf853d8fcb86288f606de (patch)
tree061a76c16d5f20d4f1b03f731537036908d31d67
parent9caf253e8ad6f4c66f5591bac900f9f68b6b6620 (diff)
media: rcar-csi2: Disable runtime_pm in probe error
Disable pm_runtime in the probe() function error path. Fixes: 769afd212b16 ("media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver driver") Signed-off-by: Jacopo Mondi <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Tested-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]>
-rw-r--r--drivers/media/platform/renesas/rcar-csi2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/renesas/rcar-csi2.c b/drivers/media/platform/renesas/rcar-csi2.c
index 582d5e35db0e..249e58c77176 100644
--- a/drivers/media/platform/renesas/rcar-csi2.c
+++ b/drivers/media/platform/renesas/rcar-csi2.c
@@ -1914,12 +1914,14 @@ static int rcsi2_probe(struct platform_device *pdev)
ret = v4l2_async_register_subdev(&priv->subdev);
if (ret < 0)
- goto error_async;
+ goto error_pm_runtime;
dev_info(priv->dev, "%d lanes found\n", priv->lanes);
return 0;
+error_pm_runtime:
+ pm_runtime_disable(&pdev->dev);
error_async:
v4l2_async_nf_unregister(&priv->notifier);
v4l2_async_nf_cleanup(&priv->notifier);