[PATCH 2/5] Dynamic ID addition doesn't need get_driver()

Jiri Kosina jkosina at suse.cz
Wed Feb 1 08:15:45 EST 2012


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 <stern at rowland.harvard.edu>
> CC: Dmitry Torokhov <dmitry.torokhov at gmail.com>
> CC: Jiri Kosina <jkosina at suse.cz>
> CC: Jesse Barnes <jbarnes at virtuousgeek.org>
> CC: Dominik Brodowski <linux at dominikbrodowski.net>

Acked-by: Jiri Kosina <jkosina at suse.cz>

for the drivers/hid part. Thanks,

-- 
Jiri Kosina
SUSE Labs



More information about the linux-pcmcia mailing list