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/block/DAC960.c | 1 +
drivers/block/cciss.c | 1 +
drivers/block/cpqarray.c | 1 +
drivers/block/sx8.c | 1 +
drivers/block/umem.c | 1 +
5 files changed, 5 insertions(+)
Index: linux-2.6-stable/drivers/block/DAC960.c
===================================================================
--- linux-2.6-stable.orig/drivers/block/DAC960.c
+++ linux-2.6-stable/drivers/block/DAC960.c
@@ -7185,6 +7185,7 @@
MODULE_DEVICE_TABLE(pci, DAC960_id_table);
static struct pci_driver DAC960_pci_driver = {
+ .owner = THIS_MODULE,
.name = "DAC960",
.id_table = DAC960_id_table,
.probe = DAC960_Probe,
Index: linux-2.6-stable/drivers/block/cciss.c
===================================================================
--- linux-2.6-stable.orig/drivers/block/cciss.c
+++ linux-2.6-stable/drivers/block/cciss.c
@@ -2929,6 +2929,7 @@
}
static struct pci_driver cciss_pci_driver = {
+ .owner = THIS_MODULE,
.name = "cciss",
.probe = cciss_init_one,
.remove = __devexit_p(cciss_remove_one),
Index: linux-2.6-stable/drivers/block/cpqarray.c
===================================================================
--- linux-2.6-stable.orig/drivers/block/cpqarray.c
+++ linux-2.6-stable/drivers/block/cpqarray.c
@@ -541,6 +541,7 @@
}
static struct pci_driver cpqarray_pci_driver = {
+ .owner = THIS_MODULE,
.name = "cpqarray",
.probe = cpqarray_init_one,
.remove = __devexit_p(cpqarray_remove_one_pci),
Index: linux-2.6-stable/drivers/block/sx8.c
===================================================================
--- linux-2.6-stable.orig/drivers/block/sx8.c
+++ linux-2.6-stable/drivers/block/sx8.c
@@ -395,6 +395,7 @@
MODULE_DEVICE_TABLE(pci, carm_pci_tbl);
static struct pci_driver carm_driver = {
+ .owner = THIS_MODULE,
.name = DRV_NAME,
.id_table = carm_pci_tbl,
.probe = carm_init_one,
Index: linux-2.6-stable/drivers/block/umem.c
===================================================================
--- linux-2.6-stable.orig/drivers/block/umem.c
+++ linux-2.6-stable/drivers/block/umem.c
@@ -1170,6 +1170,7 @@
MODULE_DEVICE_TABLE(pci, mm_pci_ids);
static struct pci_driver mm_pci_driver = {
+ .owner = THIS_MODULE,
.name = "umem",
.id_table = mm_pci_ids,
.probe = mm_pci_probe,
--
-
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]