pci drivers should be const.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5229 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2010-03-16 23:33:29 +00:00
committed by Stefan Reinauer
parent 859e94a304
commit 8e96ba2978
35 changed files with 67 additions and 67 deletions

View File

@@ -211,13 +211,13 @@ static struct device_operations pcie_ops = {
* The dev id of 690G is 791E, while the id of 690M, 690T is 791F.
* We should list both of them here.
* */
static struct pci_driver pcie_driver_690t __pci_driver = {
static const struct pci_driver pcie_driver_690t __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS690MT_INT_GFX,
};
static struct pci_driver pcie_driver_690 __pci_driver = {
static const struct pci_driver pcie_driver_690 __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS690_INT_GFX,

View File

@@ -83,7 +83,7 @@ static struct device_operations ht_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ht_driver __pci_driver = {
static const struct pci_driver ht_driver __pci_driver = {
.ops = &ht_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS690_HT,

View File

@@ -791,28 +791,28 @@ static struct device_operations pcie_ops = {
/*
* We should list all of them here.
* */
static struct pci_driver pcie_driver_780 __pci_driver = {
static const struct pci_driver pcie_driver_780 __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS780_INT_GFX,
};
static struct pci_driver pcie_driver_780c __pci_driver = {
static const struct pci_driver pcie_driver_780c __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS780C_INT_GFX,
};
static struct pci_driver pcie_driver_780m __pci_driver = {
static const struct pci_driver pcie_driver_780m __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS780M_INT_GFX,
};
static struct pci_driver pcie_driver_780mc __pci_driver = {
static const struct pci_driver pcie_driver_780mc __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS780MC_INT_GFX,
};
static struct pci_driver pcie_driver_780e __pci_driver = {
static const struct pci_driver pcie_driver_780e __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_RS780E_INT_GFX,

View File

@@ -83,7 +83,7 @@ static struct device_operations ht_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ht_driver __pci_driver = {
static const struct pci_driver ht_driver __pci_driver = {
.ops = &ht_ops,
.vendor = PCI_VENDOR_ID_AMD,
.device = PCI_DEVICE_ID_AMD_RS780_HT,

View File

@@ -38,7 +38,7 @@ static struct device_operations ac97audio_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ac97audio_driver __pci_driver = {
static const struct pci_driver ac97audio_driver __pci_driver = {
.ops = &ac97audio_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_ACI,
@@ -54,7 +54,7 @@ static struct device_operations ac97modem_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ac97modem_driver __pci_driver = {
static const struct pci_driver ac97modem_driver __pci_driver = {
.ops = &ac97modem_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_MCI,

View File

@@ -325,7 +325,7 @@ static struct device_operations hda_audio_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver hdaaudio_driver __pci_driver = {
static const struct pci_driver hdaaudio_driver __pci_driver = {
.ops = &hda_audio_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_HDA,

View File

@@ -68,7 +68,7 @@ static struct device_operations ide_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ide_driver __pci_driver = {
static const struct pci_driver ide_driver __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_IDE,

View File

@@ -228,7 +228,7 @@ static struct device_operations lpc_ops = {
/* .enable = sb600_enable, */
.ops_pci = &lops_pci,
};
static struct pci_driver lpc_driver __pci_driver = {
static const struct pci_driver lpc_driver __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_LPC,

View File

@@ -135,7 +135,7 @@ static struct device_operations pci_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver pci_driver __pci_driver = {
static const struct pci_driver pci_driver __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_PCI,

View File

@@ -258,7 +258,7 @@ static struct device_operations sata_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver sata0_driver __pci_driver = {
static const struct pci_driver sata0_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_SATA,

View File

@@ -367,7 +367,7 @@ static struct device_operations smbus_ops = {
.ops_pci = &lops_pci,
.ops_smbus_bus = &lops_smbus_bus,
};
static struct pci_driver smbus_driver __pci_driver = {
static const struct pci_driver smbus_driver __pci_driver = {
.ops = &smbus_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_SM,

View File

@@ -159,27 +159,27 @@ static struct device_operations usb_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb_0_driver __pci_driver = {
static const struct pci_driver usb_0_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB_0,
};
static struct pci_driver usb_1_driver __pci_driver = {
static const struct pci_driver usb_1_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB_1,
};
static struct pci_driver usb_2_driver __pci_driver = {
static const struct pci_driver usb_2_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB_2,
};
static struct pci_driver usb_3_driver __pci_driver = {
static const struct pci_driver usb_3_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB_3,
};
static struct pci_driver usb_4_driver __pci_driver = {
static const struct pci_driver usb_4_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB_4,
@@ -195,7 +195,7 @@ static struct device_operations usb_ops2 = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb_5_driver __pci_driver = {
static const struct pci_driver usb_5_driver __pci_driver = {
.ops = &usb_ops2,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB600_USB2,

View File

@@ -225,7 +225,7 @@ static struct device_operations hda_audio_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver hdaaudio_driver __pci_driver = {
static const struct pci_driver hdaaudio_driver __pci_driver = {
.ops = &hda_audio_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_HDA,

View File

@@ -76,7 +76,7 @@ static struct device_operations ide_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver ide_driver __pci_driver = {
static const struct pci_driver ide_driver __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_IDE,

View File

@@ -240,7 +240,7 @@ static struct device_operations lpc_ops = {
.scan_bus = scan_static_bus,
.ops_pci = &lops_pci,
};
static struct pci_driver lpc_driver __pci_driver = {
static const struct pci_driver lpc_driver __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_LPC,

View File

@@ -121,7 +121,7 @@ static struct device_operations pci_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver pci_driver __pci_driver = {
static const struct pci_driver pci_driver __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_PCI,

View File

@@ -284,7 +284,7 @@ static struct device_operations sata_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver sata0_driver __pci_driver = {
static const struct pci_driver sata0_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_SATA,

View File

@@ -374,7 +374,7 @@ static struct device_operations smbus_ops = {
.ops_pci = &lops_pci,
.ops_smbus_bus = &lops_smbus_bus,
};
static struct pci_driver smbus_driver __pci_driver = {
static const struct pci_driver smbus_driver __pci_driver = {
.ops = &smbus_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_SM,

View File

@@ -200,12 +200,12 @@ static struct device_operations usb_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb_0_driver __pci_driver = {
static const struct pci_driver usb_0_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_USB_18_0,
};
static struct pci_driver usb_1_driver __pci_driver = {
static const struct pci_driver usb_1_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_USB_18_1,
@@ -213,19 +213,19 @@ static struct pci_driver usb_1_driver __pci_driver = {
/* the pci id of usb ctrl 0 and 1 are the same. */
/*
* static struct pci_driver usb_3_driver __pci_driver = {
* static const struct pci_driver usb_3_driver __pci_driver = {
* .ops = &usb_ops,
* .vendor = PCI_VENDOR_ID_ATI,
* .device = PCI_DEVICE_ID_ATI_SB700_USB_19_0,
* };
* static struct pci_driver usb_4_driver __pci_driver = {
* static const struct pci_driver usb_4_driver __pci_driver = {
* .ops = &usb_ops,
* .vendor = PCI_VENDOR_ID_ATI,
* .device = PCI_DEVICE_ID_ATI_SB700_USB_19_1,
* };
*/
static struct pci_driver usb_4_driver __pci_driver = {
static const struct pci_driver usb_4_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_USB_20_5,
@@ -240,13 +240,13 @@ static struct device_operations usb_ops2 = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb_5_driver __pci_driver = {
static const struct pci_driver usb_5_driver __pci_driver = {
.ops = &usb_ops2,
.vendor = PCI_VENDOR_ID_ATI,
.device = PCI_DEVICE_ID_ATI_SB700_USB_18_2,
};
/*
* static struct pci_driver usb_5_driver __pci_driver = {
* static const struct pci_driver usb_5_driver __pci_driver = {
* .ops = &usb_ops2,
* .vendor = PCI_VENDOR_ID_ATI,
* .device = PCI_DEVICE_ID_ATI_SB700_USB_19_2,