From: Sakari Ailus Date: Thu, 12 Dec 2013 12:36:46 +0000 (-0300) Subject: [media] v4l: Only get module if it's different than the driver for v4l2_dev X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~203 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a06aecb24329e16edc3108b8192d65ace8da75;p=pandora-kernel.git [media] v4l: Only get module if it's different than the driver for v4l2_dev When the sub-device is registered, increment the use count of the sub-device owner only if it's different from the owner of the driver for the media device. This avoids increasing the use count by the module itself and thus making it possible to unload it when it's not in use. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed