From: Laurent Riffard 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 Acked-by: Alan Cox Signed-off-by: Andrew Morton --- drivers/char/watchdog/pcwd_pci.c | 1 + drivers/char/watchdog/wdt_pci.c | 1 + 2 files changed, 2 insertions(+) diff -puN drivers/char/watchdog/pcwd_pci.c~watchdog-update-owner-field-of-struct-pci_driver drivers/char/watchdog/pcwd_pci.c --- devel/drivers/char/watchdog/pcwd_pci.c~watchdog-update-owner-field-of-struct-pci_driver 2005-10-23 15:36:06.000000000 -0700 +++ devel-akpm/drivers/char/watchdog/pcwd_pci.c 2005-10-23 15:36:06.000000000 -0700 @@ -753,6 +753,7 @@ static struct pci_device_id pcipcwd_pci_ 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, diff -puN drivers/char/watchdog/wdt_pci.c~watchdog-update-owner-field-of-struct-pci_driver drivers/char/watchdog/wdt_pci.c --- devel/drivers/char/watchdog/wdt_pci.c~watchdog-update-owner-field-of-struct-pci_driver 2005-10-23 15:36:06.000000000 -0700 +++ devel-akpm/drivers/char/watchdog/wdt_pci.c 2005-10-23 15:36:06.000000000 -0700 @@ -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, _