media: rcar-vin: Use error labels in probe

Prepare for more failed probe conditions that needs cleanup by
converting the error path to use labels.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250613153434.2001800-5-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
Niklas Söderlund 2025-06-13 17:34:25 +02:00 committed by Hans Verkuil
parent bad694f877
commit b38ba9b160

View File

@ -1405,15 +1405,18 @@ static int rcar_vin_probe(struct platform_device *pdev)
vin->scaler = vin->info->scaler;
}
if (ret) {
rvin_dma_unregister(vin);
return ret;
}
if (ret)
goto err_dma;
pm_suspend_ignore_children(&pdev->dev, true);
pm_runtime_enable(&pdev->dev);
return 0;
err_dma:
rvin_dma_unregister(vin);
return ret;
}
static void rcar_vin_remove(struct platform_device *pdev)