[PATCH] epca: updates .owner field of struct pci_driver

From: Laurent Riffard
Date: Sat Oct 22 2005 - 15:44:28 EST


This patch 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@xxxxxxx>

--
drivers/char/epca.c | 1 +
1 files changed, 1 insertion(+)

Index: linux-2.6-stable/drivers/char/epca.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/epca.c
+++ linux-2.6-stable/drivers/char/epca.c
@@ -3777,6 +3777,7 @@
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;

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/