[PATCH] __devinitdata and const in drivers/sound

From: Chris Buchanan (cbuchana@navtechinc.com)
Date: Thu Feb 17 2000 - 10:04:18 EST


2.3.46 broke four sound drivers by trying to place const data in the
data section.

-- Chris

--- linux/drivers/sound/es1370.c.csb.2.3.46 Thu Feb 17 09:56:41 2000
+++ linux/drivers/sound/es1370.c Thu Feb 17 09:57:26 2000
@@ -2589,7 +2589,7 @@
        dev->driver_data = NULL;
 }
 
-static const struct pci_device_id id_table[] __devinitdata = {
+static struct pci_device_id id_table[] __devinitdata = {
         { PCI_VENDOR_ID_ENSONIQ, PCI_DEVICE_ID_ENSONIQ_ES1370, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
         { 0, 0, 0, 0, 0, 0 }
 };
--- linux/drivers/sound/es1371.c.csb.2.3.46 Thu Feb 17 09:27:34 2000
+++ linux/drivers/sound/es1371.c Thu Feb 17 09:46:20 2000
@@ -2788,7 +2788,7 @@
         dev->driver_data = NULL;
 }
 
-static const struct pci_device_id id_table[] __devinitdata = {
+static struct pci_device_id id_table[] __devinitdata = {
         { PCI_VENDOR_ID_ENSONIQ, PCI_DEVICE_ID_ENSONIQ_ES1371, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
         { PCI_VENDOR_ID_ENSONIQ, PCI_DEVICE_ID_ENSONIQ_CT5880, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
         { PCI_VENDOR_ID_ECTIVA, PCI_DEVICE_ID_ECTIVA_EV1938, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
--- linux/drivers/sound/esssolo1.c.csb.2.3.46 Thu Feb 17 09:56:59 2000
+++ linux/drivers/sound/esssolo1.c Thu Feb 17 09:57:36 2000
@@ -2318,7 +2318,7 @@
         dev->driver_data = NULL;
 }
 
-static const struct pci_device_id id_table[] __devinitdata = {
+static struct pci_device_id id_table[] __devinitdata = {
         { PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_SOLO1, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
         { 0, 0, 0, 0, 0, 0 }
 };
--- linux/drivers/sound/sonicvibes.c.csb.2.3.46 Thu Feb 17 09:57:10 2000
+++ linux/drivers/sound/sonicvibes.c Thu Feb 17 09:58:00 2000
@@ -2625,7 +2625,7 @@
        dev->driver_data = NULL;
 }
 
-static const struct pci_device_id id_table[] __devinitdata = {
+static struct pci_device_id id_table[] __devinitdata = {
        { PCI_VENDOR_ID_S3, PCI_DEVICE_ID_S3_SONICVIBES, PCI_ANY_ID, PCI_ANY_ID, 0, 0 },
        { 0, 0, 0, 0, 0, 0 }
 };

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:18 EST