Skip to content

Commit

Permalink
[PATCH] watchdog: update .owner field of struct pci_driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Laurent Riffard authored and Linus Torvalds committed Oct 31, 2005
1 parent 413a42e commit ed8b39d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/watchdog/pcwd_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/char/watchdog/wdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed8b39d

Please sign in to comment.