Messages in this thread Patch in this message | | | Date | Sat, 22 Oct 2005 21:41:26 +0200 | From | Laurent Riffard <> | Subject | [PATCH] watchdog: updates .owner field of struct pci_driver |
| |
This patch 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>
-- drivers/char/watchdog/pcwd_pci.c | 1 + drivers/char/watchdog/wdt_pci.c | 1 + 2 files changed, 2 insertions(+)
Index: linux-2.6-stable/drivers/char/watchdog/pcwd_pci.c =================================================================== --- linux-2.6-stable.orig/drivers/char/watchdog/pcwd_pci.c +++ linux-2.6-stable/drivers/char/watchdog/pcwd_pci.c @@ -644,6 +644,7 @@ 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: linux-2.6-stable/drivers/char/watchdog/wdt_pci.c =================================================================== --- linux-2.6-stable.orig/drivers/char/watchdog/wdt_pci.c +++ linux-2.6-stable/drivers/char/watchdog/wdt_pci.c @@ -711,6 +711,7 @@ static struct pci_driver wdtpci_driver = { + .owner = THIS_MODULE, .name = "wdt_pci", .id_table = wdtpci_pci_tbl, .probe = wdtpci_init_one, --
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |