[media] media: Use a better owner for the media device
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 12 Dec 2013 15:38:17 +0000 (12:38 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 13 May 2014 16:39:00 +0000 (13:39 -0300)
commit85de721c46ba8ad9b283b2b3e307c9a3e8425042
treefd49693fa164755b123d15636a10d3ee3d949d85
parent743e18377cae643f88ff62b4c2b87c45e4ecd024
[media] media: Use a better owner for the media device

mdev->fops->owner is actually the owner of the very same module which
implements media_device_register(), so it can't be unloaded anyway. Instead,
use THIS_MODULE through a macro as does video_register_device().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/media-device.c
drivers/media/media-devnode.c
include/media/media-device.h
include/media/media-devnode.h