[PATCH] epca: update .owner field of struct pci_driver
authorLaurent Riffard <laurent.riffard@free.fr>
Sun, 30 Oct 2005 23:03:08 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:26 +0000 (17:37 -0800)
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>
drivers/char/epca.c

index 407708a001e421ea0322ee908074a09381e2125a..b7a0e4d6b9344168441ef60e6c942f8575d06770 100644 (file)
@@ -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;