V4L/DVB (12160): soc-camera: fix missing clean up on error path
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 24 Jun 2009 13:31:25 +0000 (10:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 5 Jul 2009 17:29:56 +0000 (14:29 -0300)
commitc06950ae4dccf59566fec7ae269aaeb24685c16c
tree35dce135875712b8b3d200448b811a7a888d4119
parent14df2ccead8f6da5a9c8f904fc629aaf849b7e55
V4L/DVB (12160): soc-camera: fix missing clean up on error path

If soc_camera_init_user_formats() fails in soc_camera_probe(), we have to call
client's .remove() method to unregister the video device.

Reported-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c