media: atomisp: ov2722: Call atomisp_gmin_remove_subdev() on probe failure
Call atomisp_gmin_remove_subdev() on probe failure to properly free the GPIOs and other resources acquired by the gmin_camera_platform_data() call earlier. Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
b7e155e166
commit
3ddac68f66
|
@ -994,6 +994,7 @@ out_ctrl_handler_free:
|
|||
v4l2_ctrl_handler_free(&dev->ctrl_handler);
|
||||
|
||||
out_free:
|
||||
atomisp_gmin_remove_subdev(&dev->sd);
|
||||
v4l2_device_unregister_subdev(&dev->sd);
|
||||
kfree(dev);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue