[lkml]   [2012]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/5] Dynamic ID addition doesn't need get_driver()
On Tue, 24 Jan 2012, Alan Stern wrote:

> As part of the removal of get_driver()/put_driver(), this patch
> (as1511) changes all the places that add dynamic IDs for drivers.
> Since these additions are done by writing to the drivers' sysfs
> attribute files, and the attributes are removed when the drivers are
> unregistered, there is no reason to take an extra reference to the
> drivers.
> The one exception is the pci-stub driver, which calls pci_add_dynid()
> as part of its registration. But again, there's no reason to take an
> extra reference here, because the driver can't be unloaded while it is
> being registered.
> Signed-off-by: Alan Stern <>
> CC: Dmitry Torokhov <>
> CC: Jiri Kosina <>
> CC: Jesse Barnes <>
> CC: Dominik Brodowski <>

Acked-by: Jiri Kosina <>

for the drivers/hid part. Thanks,

Jiri Kosina

 \ /
  Last update: 2012-02-01 14:19    [W:0.052 / U:7.688 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site