diff options
author | Alan Stern <[email protected]> | 2012-01-24 13:34:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-01-24 16:00:35 -0800 |
commit | cef9bc56e1e944afd11f96de569657117a138c6d (patch) | |
tree | 45923c4dec748e82a05313c9c7d443aa11e02a5f /scripts/mod/file2alias.c | |
parent | fde25a9b63b9a3dc91365c394a426ebe64cfc2da (diff) |
Dynamic ID addition doesn't need get_driver()
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 <[email protected]>
CC: Dmitry Torokhov <[email protected]>
CC: Jiri Kosina <[email protected]>
CC: Jesse Barnes <[email protected]>
CC: Dominik Brodowski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions