]> err.no Git - linux-2.6/commit
[PATCH] PCI: automatically set device_driver.owner
authorLaurent riffard <laurent.riffard@free.fr>
Thu, 27 Oct 2005 21:12:54 +0000 (23:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2005 00:09:16 +0000 (16:09 -0800)
commit863b18f4b5e7d9e6903b353328cf6fa084dbb619
treee181466c3e7e676fa08e4bce2052ada38d98228d
parentf8eb1005a5bdb019d2a4ff3ef8d8e8015b22afcb
[PATCH] PCI: automatically set device_driver.owner

A nice feature of sysfs is that it can create the symlink from the
driver to the module that is contained in it.

It requires that the device_driver.owner is set, what is not the
case for many PCI drivers.

This patch allows pci_register_driver to set automatically the
device_driver.owner for any PCI driver.

Credits to Al Viro who suggested the method.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--

 drivers/ide/setup-pci.c  |   12 +++++++-----
 drivers/pci/pci-driver.c |    9 +++++----
 include/linux/ide.h      |    3 ++-
 include/linux/pci.h      |   10 ++++++++--
 4 files changed, 22 insertions(+), 12 deletions(-)
drivers/ide/setup-pci.c
drivers/pci/pci-driver.c
include/linux/ide.h
include/linux/pci.h