[media] media: mx2_camera: use managed functions to clean up code
authorShawn Guo <shawn.guo@linaro.org>
Thu, 20 Sep 2012 05:45:39 +0000 (02:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 18:56:47 +0000 (15:56 -0300)
commit8928b6d1568eb9104cc9e2e6627d7086437b2fb3
tree1d48c0e860531aad6ed98bce4f72fa1fa9b875e7
parent4df6e868d475a884d672791c9091150c57094c95
[media] media: mx2_camera: use managed functions to clean up code

Use managed functions to clean up the error handling code and function
mx2_camera_remove().  Along with the change, a few variables get removed
from struct mx2_camera_dev.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/mx2_camera.c