Re: [RFC v1.1 2/2] media: v4l: Only get module if it's different than the driver for v4l2_dev

2014-01-10 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: Hi Sakari, Thank you for the patch. On Tuesday 17 December 2013 15:49:24 Sakari Ailus wrote: 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 av

Re: [RFC v1.1 2/2] media: v4l: Only get module if it's different than the driver for v4l2_dev

2013-12-25 Thread Laurent Pinchart
Hi Sakari, Thank you for the patch. On Tuesday 17 December 2013 15:49:24 Sakari Ailus wrote: > 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 t

[RFC v1.1 2/2] media: v4l: Only get module if it's different than the driver for v4l2_dev

2013-12-17 Thread Sakari Ailus
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: Sakar