[media] coda: Call v4l2_device_unregister() from a single location
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 4 Oct 2014 19:40:50 +0000 (16:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 19:54:56 +0000 (17:54 -0200)
commitb7bd660a51f0cef91d8d544192a5b96c8854e775
treed22300806d57a46def5e079732ca99bfb60f454d
parented3da2bf2e1800e7c6e31e7d31917dacce599458
[media] coda: Call v4l2_device_unregister() from a single location

Instead of calling v4l2_device_unregister() in multiple locations within the
error paths, let's call it from a single location to make the error handling
simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c