]> err.no Git - linux-2.6/commitdiff
[PATCH] watchdog: update .owner field of struct pci_driver
authorLaurent Riffard <laurent.riffard@free.fr>
Sun, 30 Oct 2005 23:03:09 +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>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/watchdog/pcwd_pci.c
drivers/char/watchdog/wdt_pci.c

index 0b8e493be04570577d017f2aa69398e84064f7d3..5308e5c8f29af139867d36436ccb32314d05cde6 100644 (file)
@@ -753,6 +753,7 @@ static struct pci_device_id pcipcwd_pci_tbl[] = {
 MODULE_DEVICE_TABLE(pci, pcipcwd_pci_tbl);
 
 static struct pci_driver pcipcwd_driver = {
+       .owner          = THIS_MODULE,
        .name           = WATCHDOG_NAME,
        .id_table       = pcipcwd_pci_tbl,
        .probe          = pcipcwd_card_init,
index 4b3311993d4876bf91f07ef9e9c2147bc75e3278..dc9370f6c3480e55b13f6e1d8803a0461eb66d25 100644 (file)
@@ -711,6 +711,7 @@ MODULE_DEVICE_TABLE(pci, wdtpci_pci_tbl);
 
 
 static struct pci_driver wdtpci_driver = {
+       .owner          = THIS_MODULE,
        .name           = "wdt_pci",
        .id_table       = wdtpci_pci_tbl,
        .probe          = wdtpci_init_one,