linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] agp : updates .owner field of struct pci_driver
       [not found] <20051022194123.683082000@antares.localdomain>
@ 2005-10-22 19:41 ` Laurent Riffard
  2005-10-22 19:41 ` [PATCH] watchdog: " Laurent Riffard
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: Laurent Riffard @ 2005-10-22 19:41 UTC (permalink / raw)
  To: Kernel development list, davej

[-- Attachment #1: agp_pci_driver_owner_field.patch --]
[-- Type: text/plain, Size: 6540 bytes --]

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.

$ tree /sys/bus/pci/drivers/agpgart-via/
/sys/bus/pci/drivers/agpgart-via/
|-- 0000:00:00.0 -> ../../../../devices/pci0000:00/0000:00:00.0
|-- bind
|-- module -> ../../../../module/via_agp
|-- new_id
`-- unbind

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>

--
 drivers/char/agp/ali-agp.c      |    1 +
 drivers/char/agp/amd-k7-agp.c   |    1 +
 drivers/char/agp/amd64-agp.c    |    1 +
 drivers/char/agp/ati-agp.c      |    1 +
 drivers/char/agp/efficeon-agp.c |    1 +
 drivers/char/agp/i460-agp.c     |    1 +
 drivers/char/agp/intel-agp.c    |    1 +
 drivers/char/agp/nvidia-agp.c   |    1 +
 drivers/char/agp/sis-agp.c      |    1 +
 drivers/char/agp/sworks-agp.c   |    1 +
 drivers/char/agp/uninorth-agp.c |    1 +
 drivers/char/agp/via-agp.c      |    1 +
 12 files changed, 12 insertions(+)

Index: linux-2.6-stable/drivers/char/agp/ali-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/ali-agp.c
+++ linux-2.6-stable/drivers/char/agp/ali-agp.c
@@ -388,6 +388,7 @@
 MODULE_DEVICE_TABLE(pci, agp_ali_pci_table);
 
 static struct pci_driver agp_ali_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-ali",
 	.id_table	= agp_ali_pci_table,
 	.probe		= agp_ali_probe,
Index: linux-2.6-stable/drivers/char/agp/amd-k7-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/amd-k7-agp.c
+++ linux-2.6-stable/drivers/char/agp/amd-k7-agp.c
@@ -518,6 +518,7 @@
 MODULE_DEVICE_TABLE(pci, agp_amdk7_pci_table);
 
 static struct pci_driver agp_amdk7_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-amdk7",
 	.id_table	= agp_amdk7_pci_table,
 	.probe		= agp_amdk7_probe,
Index: linux-2.6-stable/drivers/char/agp/amd64-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/amd64-agp.c
+++ linux-2.6-stable/drivers/char/agp/amd64-agp.c
@@ -701,6 +701,7 @@
 MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table);
 
 static struct pci_driver agp_amd64_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-amd64",
 	.id_table	= agp_amd64_pci_table,
 	.probe		= agp_amd64_probe,
Index: linux-2.6-stable/drivers/char/agp/ati-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/ati-agp.c
+++ linux-2.6-stable/drivers/char/agp/ati-agp.c
@@ -522,6 +522,7 @@
 MODULE_DEVICE_TABLE(pci, agp_ati_pci_table);
 
 static struct pci_driver agp_ati_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-ati",
 	.id_table	= agp_ati_pci_table,
 	.probe		= agp_ati_probe,
Index: linux-2.6-stable/drivers/char/agp/efficeon-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/efficeon-agp.c
+++ linux-2.6-stable/drivers/char/agp/efficeon-agp.c
@@ -429,6 +429,7 @@
 MODULE_DEVICE_TABLE(pci, agp_efficeon_pci_table);
 
 static struct pci_driver agp_efficeon_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-efficeon",
 	.id_table	= agp_efficeon_pci_table,
 	.probe		= agp_efficeon_probe,
Index: linux-2.6-stable/drivers/char/agp/i460-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/i460-agp.c
+++ linux-2.6-stable/drivers/char/agp/i460-agp.c
@@ -617,6 +617,7 @@
 MODULE_DEVICE_TABLE(pci, agp_intel_i460_pci_table);
 
 static struct pci_driver agp_intel_i460_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-intel-i460",
 	.id_table	= agp_intel_i460_pci_table,
 	.probe		= agp_intel_i460_probe,
Index: linux-2.6-stable/drivers/char/agp/intel-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/intel-agp.c
+++ linux-2.6-stable/drivers/char/agp/intel-agp.c
@@ -1824,6 +1824,7 @@
 MODULE_DEVICE_TABLE(pci, agp_intel_pci_table);
 
 static struct pci_driver agp_intel_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-intel",
 	.id_table	= agp_intel_pci_table,
 	.probe		= agp_intel_probe,
Index: linux-2.6-stable/drivers/char/agp/nvidia-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/nvidia-agp.c
+++ linux-2.6-stable/drivers/char/agp/nvidia-agp.c
@@ -398,6 +398,7 @@
 MODULE_DEVICE_TABLE(pci, agp_nvidia_pci_table);
 
 static struct pci_driver agp_nvidia_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-nvidia",
 	.id_table	= agp_nvidia_pci_table,
 	.probe		= agp_nvidia_probe,
Index: linux-2.6-stable/drivers/char/agp/sis-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/sis-agp.c
+++ linux-2.6-stable/drivers/char/agp/sis-agp.c
@@ -332,6 +332,7 @@
 MODULE_DEVICE_TABLE(pci, agp_sis_pci_table);
 
 static struct pci_driver agp_sis_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-sis",
 	.id_table	= agp_sis_pci_table,
 	.probe		= agp_sis_probe,
Index: linux-2.6-stable/drivers/char/agp/sworks-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/sworks-agp.c
+++ linux-2.6-stable/drivers/char/agp/sworks-agp.c
@@ -531,6 +531,7 @@
 MODULE_DEVICE_TABLE(pci, agp_serverworks_pci_table);
 
 static struct pci_driver agp_serverworks_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-serverworks",
 	.id_table	= agp_serverworks_pci_table,
 	.probe		= agp_serverworks_probe,
Index: linux-2.6-stable/drivers/char/agp/uninorth-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/uninorth-agp.c
+++ linux-2.6-stable/drivers/char/agp/uninorth-agp.c
@@ -658,6 +658,7 @@
 MODULE_DEVICE_TABLE(pci, agp_uninorth_pci_table);
 
 static struct pci_driver agp_uninorth_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-uninorth",
 	.id_table	= agp_uninorth_pci_table,
 	.probe		= agp_uninorth_probe,
Index: linux-2.6-stable/drivers/char/agp/via-agp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/agp/via-agp.c
+++ linux-2.6-stable/drivers/char/agp/via-agp.c
@@ -518,6 +518,7 @@
 
 
 static struct pci_driver agp_via_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "agpgart-via",
 	.id_table	= agp_via_pci_table,
 	.probe		= agp_via_probe,

--


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] watchdog: updates .owner field of struct pci_driver
       [not found] <20051022194123.683082000@antares.localdomain>
  2005-10-22 19:41 ` [PATCH] agp : updates .owner field of struct pci_driver Laurent Riffard
@ 2005-10-22 19:41 ` Laurent Riffard
  2005-10-22 19:41 ` [PATCH] epca: " Laurent Riffard
  2005-10-22 19:41 ` [PATCH] SyncLink adapters: " Laurent Riffard
  3 siblings, 0 replies; 4+ messages in thread
From: Laurent Riffard @ 2005-10-22 19:41 UTC (permalink / raw)
  To: Wim Van Sebroeck, Kenji Hollis, Alan Cox, Kernel development list

[-- Attachment #1: watchdog_pci_driver_owner_field.patch --]
[-- Type: text/plain, Size: 1203 bytes --]

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@free.fr>

--
 drivers/char/watchdog/pcwd_pci.c |    1 +
 drivers/char/watchdog/wdt_pci.c  |    1 +
 2 files changed, 2 insertions(+)

Index: linux-2.6-stable/drivers/char/watchdog/pcwd_pci.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/watchdog/pcwd_pci.c
+++ linux-2.6-stable/drivers/char/watchdog/pcwd_pci.c
@@ -644,6 +644,7 @@
 MODULE_DEVICE_TABLE(pci, pcipcwd_pci_tbl);
 
 static struct pci_driver pcipcwd_driver = {
+	.owner		= THIS_MODULE,
 	.name		= WATCHDOG_NAME,
 	.id_table	= pcipcwd_pci_tbl,
 	.probe		= pcipcwd_card_init,
Index: linux-2.6-stable/drivers/char/watchdog/wdt_pci.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/watchdog/wdt_pci.c
+++ linux-2.6-stable/drivers/char/watchdog/wdt_pci.c
@@ -711,6 +711,7 @@
 
 
 static struct pci_driver wdtpci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "wdt_pci",
 	.id_table	= wdtpci_pci_tbl,
 	.probe		= wdtpci_init_one,

--


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] epca: updates .owner field of struct pci_driver
       [not found] <20051022194123.683082000@antares.localdomain>
  2005-10-22 19:41 ` [PATCH] agp : updates .owner field of struct pci_driver Laurent Riffard
  2005-10-22 19:41 ` [PATCH] watchdog: " Laurent Riffard
@ 2005-10-22 19:41 ` Laurent Riffard
  2005-10-22 19:41 ` [PATCH] SyncLink adapters: " Laurent Riffard
  3 siblings, 0 replies; 4+ messages in thread
From: Laurent Riffard @ 2005-10-22 19:41 UTC (permalink / raw)
  To: Eng.Linux, Kernel development list

[-- Attachment #1: epca_pci_driver_owner_field.patch --]
[-- Type: text/plain, Size: 738 bytes --]

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@free.fr>

--
 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;

--


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] SyncLink adapters: updates .owner field of struct pci_driver
       [not found] <20051022194123.683082000@antares.localdomain>
                   ` (2 preceding siblings ...)
  2005-10-22 19:41 ` [PATCH] epca: " Laurent Riffard
@ 2005-10-22 19:41 ` Laurent Riffard
  3 siblings, 0 replies; 4+ messages in thread
From: Laurent Riffard @ 2005-10-22 19:41 UTC (permalink / raw)
  To: Kernel development list

[-- Attachment #1: synclink_pci_driver_owner_field.patch --]
[-- Type: text/plain, Size: 1168 bytes --]

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@free.fr>

--
 drivers/char/synclink.c   |    1 +
 drivers/char/synclinkmp.c |    1 +
 2 files changed, 2 insertions(+)

Index: linux-2.6-stable/drivers/char/synclink.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/synclink.c
+++ linux-2.6-stable/drivers/char/synclink.c
@@ -912,6 +912,7 @@
 MODULE_LICENSE("GPL");
 
 static struct pci_driver synclink_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "synclink",
 	.id_table	= synclink_pci_tbl,
 	.probe		= synclink_init_one,
Index: linux-2.6-stable/drivers/char/synclinkmp.c
===================================================================
--- linux-2.6-stable.orig/drivers/char/synclinkmp.c
+++ linux-2.6-stable/drivers/char/synclinkmp.c
@@ -501,6 +501,7 @@
 MODULE_LICENSE("GPL");
 
 static struct pci_driver synclinkmp_pci_driver = {
+	.owner		= THIS_MODULE,
 	.name		= "synclinkmp",
 	.id_table	= synclinkmp_pci_tbl,
 	.probe		= synclinkmp_init_one,

--


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-22 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20051022194123.683082000@antares.localdomain>
2005-10-22 19:41 ` [PATCH] agp : updates .owner field of struct pci_driver Laurent Riffard
2005-10-22 19:41 ` [PATCH] watchdog: " Laurent Riffard
2005-10-22 19:41 ` [PATCH] epca: " Laurent Riffard
2005-10-22 19:41 ` [PATCH] SyncLink adapters: " Laurent Riffard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).