[media] soc_camera: Use devm_kzalloc function
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 5 Sep 2012 11:25:26 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 12:12:36 +0000 (09:12 -0300)
commit02249369352879343337ee63b45dee1e1cfc2550
treec0a604fe6324f740dd3716b81838ed08175a4eff
parentec0341b3b7817a5e8ebcf26091dde28dce2d7821
[media] soc_camera: Use devm_kzalloc function

devm_kzalloc() has been used to simplify error handling.
While at it, the soc_camera_device_register function has been moved to
save a few lines of code and a variable.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
[g.liakhovetski@gmx.de: remove a superfluous empty line]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/soc_camera.c