]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 21 Apr 2016 13:20:33 +0000 (07:20 -0600)
commit4607c774d994e055d7d5bb3f3ae8745145de55a9
tree9609794430a9dbdec916ea1d3098275c1e94cfb7
parentc31f0821640891656890519b8db21603085bc036
coda: fix error path in case of missing pdata on non-DT platform

BugLink: http://bugs.launchpad.net/bugs/1573034
commit bc717d5e92c8c079280eb4acbe335c6f25041aa2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/platform/coda/coda-common.c