[patch -mm] drivers/edac: updates .owner field of struct pci_driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
--

 drivers/edac/amd76x_edac.c  |    1 +
 drivers/edac/e7xxx_edac.c   |    1 +
 drivers/edac/i82875p_edac.c |    1 +
 drivers/edac/r82600_edac.c  |    1 +
 4 files changed, 4 insertions(+)

Index: linux-2.6-mm/drivers/edac/amd76x_edac.c
===================================================================
--- linux-2.6-mm.orig/drivers/edac/amd76x_edac.c
+++ linux-2.6-mm/drivers/edac/amd76x_edac.c
@@ -332,6 +332,7 @@
 
 
 static struct pci_driver amd76x_driver = {
+	.owner = THIS_MODULE,
 	.name = BS_MOD_STR,
 	.probe = amd76x_init_one,
 	.remove = __devexit_p(amd76x_remove_one),
Index: linux-2.6-mm/drivers/edac/e7xxx_edac.c
===================================================================
--- linux-2.6-mm.orig/drivers/edac/e7xxx_edac.c
+++ linux-2.6-mm/drivers/edac/e7xxx_edac.c
@@ -530,6 +530,7 @@
 
 
 static struct pci_driver e7xxx_driver = {
+	.owner = THIS_MODULE,
 	.name = BS_MOD_STR,
 	.probe = e7xxx_init_one,
 	.remove = __devexit_p(e7xxx_remove_one),
Index: linux-2.6-mm/drivers/edac/i82875p_edac.c
===================================================================
--- linux-2.6-mm.orig/drivers/edac/i82875p_edac.c
+++ linux-2.6-mm/drivers/edac/i82875p_edac.c
@@ -476,6 +476,7 @@
 
 
 static struct pci_driver i82875p_driver = {
+	.owner = THIS_MODULE,
 	.name = BS_MOD_STR,
 	.probe = i82875p_init_one,
 	.remove = __devexit_p(i82875p_remove_one),
Index: linux-2.6-mm/drivers/edac/r82600_edac.c
===================================================================
--- linux-2.6-mm.orig/drivers/edac/r82600_edac.c
+++ linux-2.6-mm/drivers/edac/r82600_edac.c
@@ -374,6 +374,7 @@
 
 
 static struct pci_driver r82600_driver = {
+	.owner = THIS_MODULE,
 	.name = BS_MOD_STR,
 	.probe = r82600_init_one,
 	.remove = __devexit_p(r82600_remove_one),

--

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux