Commit ed8b39d0 authored by Laurent Riffard's avatar Laurent Riffard Committed by Linus Torvalds
Browse files

[PATCH] watchdog: update .owner field of struct pci_driver



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: default avatarLaurent Riffard <laurent.riffard@free.fr>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 413a42e2
...@@ -753,6 +753,7 @@ static struct pci_device_id pcipcwd_pci_tbl[] = { ...@@ -753,6 +753,7 @@ static struct pci_device_id pcipcwd_pci_tbl[] = {
MODULE_DEVICE_TABLE(pci, pcipcwd_pci_tbl); MODULE_DEVICE_TABLE(pci, pcipcwd_pci_tbl);
static struct pci_driver pcipcwd_driver = { static struct pci_driver pcipcwd_driver = {
.owner = THIS_MODULE,
.name = WATCHDOG_NAME, .name = WATCHDOG_NAME,
.id_table = pcipcwd_pci_tbl, .id_table = pcipcwd_pci_tbl,
.probe = pcipcwd_card_init, .probe = pcipcwd_card_init,
......
...@@ -711,6 +711,7 @@ MODULE_DEVICE_TABLE(pci, wdtpci_pci_tbl); ...@@ -711,6 +711,7 @@ MODULE_DEVICE_TABLE(pci, wdtpci_pci_tbl);
static struct pci_driver wdtpci_driver = { static struct pci_driver wdtpci_driver = {
.owner = THIS_MODULE,
.name = "wdt_pci", .name = "wdt_pci",
.id_table = wdtpci_pci_tbl, .id_table = wdtpci_pci_tbl,
.probe = wdtpci_init_one, .probe = wdtpci_init_one,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment