media: pxa_camera: Fix an error handling path in pxa_camera_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 17 Sep 2023 13:47:16 +0000 (15:47 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Oct 2023 08:02:53 +0000 (10:02 +0200)
The commit in Fixes has reordered the code and the error handling path.
However one 'goto' was missed.

Fix it and branch at the correct place in the error handling path.

Fixes: 5073d10cbaba ("media: pxa_camera: Register V4L2 device early")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/intel/pxa_camera.c

index 6e6caf50e11ef8026b5788973ec734ed10ac19e4..59b89e421dc2892c0e02f88b8119af8898be86ed 100644 (file)
@@ -2398,7 +2398,7 @@ static int pxa_camera_probe(struct platform_device *pdev)
                               PXA_CAM_DRV_NAME, pcdev);
        if (err) {
                dev_err(&pdev->dev, "Camera interrupt register failed\n");
-               goto exit_v4l2_device_unregister;
+               goto exit_deactivate;
        }
 
        pcdev->notifier.ops = &pxa_camera_sensor_ops;