• Laurent riffard's avatar
    [PATCH] PCI: automatically set device_driver.owner · 863b18f4
    Laurent riffard authored
    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: default avatarLaurent Riffard <laurent.riffard@free.fr>
    Signed-off-by: default avatarGreg 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(-)
    863b18f4
setup-pci.c 23.7 KB