From: Laurent Riffard Date: Sun, 30 Oct 2005 23:03:08 +0000 (-0800) Subject: [PATCH] epca: update .owner field of struct pci_driver X-Git-Tag: v2.6.15-rc1~59^2~15^2~52 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f04dd0792935cd520662cc256bd53f50fc4410b;p=linux-2.6 [PATCH] epca: 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: Laurent Riffard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 407708a001..b7a0e4d6b9 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c @@ -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;