[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1202011415250.18918@pobox.suse.cz>
Date: Wed, 1 Feb 2012 14:15:45 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Greg KH <greg@...ah.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Dominik Brodowski <linux@...inikbrodowski.net>,
linux-input@...r.kernel.org, linux-pci@...r.kernel.org,
linux-pcmcia@...ts.infradead.org,
USB list <linux-usb@...r.kernel.org>,
Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [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 <stern@...land.harvard.edu>
> CC: Dmitry Torokhov <dmitry.torokhov@...il.com>
> CC: Jiri Kosina <jkosina@...e.cz>
> CC: Jesse Barnes <jbarnes@...tuousgeek.org>
> CC: Dominik Brodowski <linux@...inikbrodowski.net>
Acked-by: Jiri Kosina <jkosina@...e.cz>
for the drivers/hid part. Thanks,
--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists