]> git.hungrycats.org Git - linux/commitdiff
[PATCH] stable AGP pci_device_id tables
authorRussell King <rmk@arm.linux.org.uk>
Tue, 9 Sep 2003 06:14:34 +0000 (23:14 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 06:14:34 +0000 (23:14 -0700)
This should fix all the AGP drivers.

pci_device_id tables can not and must not be marked discardable.  They
are used for as long as the driver is registered.

drivers/char/agp/ati-agp.c
drivers/char/agp/sis-agp.c
drivers/char/agp/uninorth-agp.c
drivers/char/agp/via-agp.c

index 7ec62223e4194fa5cf10e793746d389b3ba36c05..59a671bea21685c1f53afcb083cad69d13572cd0 100644 (file)
@@ -491,7 +491,7 @@ static void __devexit agp_ati_remove(struct pci_dev *pdev)
        agp_put_bridge(bridge);
 }
 
-static struct pci_device_id agp_ati_pci_table[] __initdata = {
+static struct pci_device_id agp_ati_pci_table[] = {
        {
        .class          = (PCI_CLASS_BRIDGE_HOST << 8),
        .class_mask     = ~0,
index f79d7b1f90280b86ae3eb57092fbc04bfdabf9a6..0d7e663166244c3898b4e0fae743a8f23230b1fd 100644 (file)
@@ -215,7 +215,7 @@ static void __devexit agp_sis_remove(struct pci_dev *pdev)
        agp_put_bridge(bridge);
 }
 
-static struct pci_device_id agp_sis_pci_table[] __initdata = {
+static struct pci_device_id agp_sis_pci_table[] = {
        {
        .class          = (PCI_CLASS_BRIDGE_HOST << 8),
        .class_mask     = ~0,
index a89924fa3a503d17fe99f8e838f9b76585d3e635..1fa77885c111d9f8a64d7d6054d5a27865b34636 100644 (file)
@@ -350,7 +350,7 @@ static void __devexit agp_uninorth_remove(struct pci_dev *pdev)
        agp_put_bridge(bridge);
 }
 
-static struct pci_device_id agp_uninorth_pci_table[] __initdata = {
+static struct pci_device_id agp_uninorth_pci_table[] = {
        {
        .class          = (PCI_CLASS_BRIDGE_HOST << 8),
        .class_mask     = ~0,
index 5d8768a90ed17ca89d88e2d4baa2758db7de8748..fb248b5585fda131dd4a908adbea958970e65e89 100644 (file)
@@ -432,7 +432,7 @@ static void __devexit agp_via_remove(struct pci_dev *pdev)
        agp_put_bridge(bridge);
 }
 
-static struct pci_device_id agp_via_pci_table[] __initdata = {
+static struct pci_device_id agp_via_pci_table[] = {
        {
        .class          = (PCI_CLASS_BRIDGE_HOST << 8),
        .class_mask     = ~0,