]> err.no Git - linux-2.6/commitdiff
[PATCH] SyncLink adapters: updates .owner field of struct pci_driver
authorLaurent Riffard <laurent.riffard@free.fr>
Sun, 30 Oct 2005 23:03:08 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:26 +0000 (17:37 -0800)
This updates .owner field of struct pci_driver.

This allows SYSFS to create the symlink from the driver to the module which
provides it.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/synclink.c
drivers/char/synclinkmp.c

index ea2d54be4843e07c17efc83ebf14a6677e599a5d..0133dc0e25d087cfd4cabedb261d28f0572fdd98 100644 (file)
@@ -912,6 +912,7 @@ MODULE_DEVICE_TABLE(pci, synclink_pci_tbl);
 MODULE_LICENSE("GPL");
 
 static struct pci_driver synclink_pci_driver = {
+       .owner          = THIS_MODULE,
        .name           = "synclink",
        .id_table       = synclink_pci_tbl,
        .probe          = synclink_init_one,
index 6fb165cf8a61ca0ca4be7532e00909f342bb4f03..f185724448b142e6da58b3761e10ac74f85f9a05 100644 (file)
@@ -500,6 +500,7 @@ MODULE_DEVICE_TABLE(pci, synclinkmp_pci_tbl);
 MODULE_LICENSE("GPL");
 
 static struct pci_driver synclinkmp_pci_driver = {
+       .owner          = THIS_MODULE,
        .name           = "synclinkmp",
        .id_table       = synclinkmp_pci_tbl,
        .probe          = synclinkmp_init_one,