media: rcar-csi2: Disable runtime_pm in probe error
[ Upstream commit e306183628f7c2e95f9bf853d8fcb86288f606de ] 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 <jacopo.mondi@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20240617161135.130719-3-jacopo.mondi@ideasonboard.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2469692791
commit
b079a05da0
@ -1559,12 +1559,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user