[media] coda: fix error path in case of missing pdata on non-DT platform
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 26 Feb 2016 11:21:35 +0000 (08:21 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 17:11:51 +0000 (14:11 -0300)
commitbc717d5e92c8c079280eb4acbe335c6f25041aa2
tree4b9d7033975525776723db4837875bf6e94fb90b
parent31e717dba1e18cc67f90124f326d8cf7a3725923
[media] coda: fix error path in case of missing pdata on non-DT platform

If we bail out this early, v4l2_device_register() has not been called
yet, so no need to call v4l2_device_unregister().

Fixes: b7bd660a51f0 ("[media] coda: Call v4l2_device_unregister() from a single location")
Reported-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c
This page took 0.025873 seconds and 5 git commands to generate.