Skip to content

Commit 760d03f

Browse files
tititiou36Hans Verkuil
authored andcommitted
media: pxa_camera: Fix an error handling path in pxa_camera_probe()
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: 5073d10 ("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>
1 parent 263cb0c commit 760d03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/intel/pxa_camera.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ static int pxa_camera_probe(struct platform_device *pdev)
23982398
PXA_CAM_DRV_NAME, pcdev);
23992399
if (err) {
24002400
dev_err(&pdev->dev, "Camera interrupt register failed\n");
2401-
goto exit_v4l2_device_unregister;
2401+
goto exit_deactivate;
24022402
}
24032403

24042404
pcdev->notifier.ops = &pxa_camera_sensor_ops;

0 commit comments

Comments
 (0)