From: Frank Schaefer Date: Sun, 12 Jan 2014 16:24:22 +0000 (-0300) Subject: [media] em28xx-v4l: move v4l2_ctrl_handler freeing and v4l2_device unregistration... X-Git-Tag: v3.14-rc1~20^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f188da4395b85698d1a55e9fb278ea7e629fbe96;p=pandora-kernel.git [media] em28xx-v4l: move v4l2_ctrl_handler freeing and v4l2_device unregistration to em28xx_v4l2_fini v4l2_ctrl_handler_free() and v4l2_device_unregister() are currently only called when the last user closes the device and the device is already disconnected. But that's wrong, we need to call these functions whenever the em28xx-v4l extension is closed and we can already do this if the device is still opened by some users. Signed-off-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed