Skip to content

Commit

Permalink
[PATCH] epca: 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 <laurent.riffard@free.fr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Laurent Riffard authored and Linus Torvalds committed Oct 31, 2005
1 parent 1a66ddc commit 8f04dd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/epca.c
Original file line number Diff line number Diff line change
Expand Up @@ -3113,6 +3113,7 @@ MODULE_DEVICE_TABLE(pci, epca_pci_tbl);
int __init init_PCI (void)
{ /* Begin init_PCI */
memset (&epca_driver, 0, sizeof (epca_driver));
epca_driver.owner = THIS_MODULE;
epca_driver.name = "epca";
epca_driver.id_table = epca_pci_tbl;
epca_driver.probe = epca_init_one;
Expand Down

0 comments on commit 8f04dd0

Please sign in to comment.