Author: stepan Date: Wed Mar 17 00:33:29 2010 New Revision: 5229 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5229
Log: pci drivers should be const.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/documentation/LinuxBIOS-AMD64.tex trunk/src/northbridge/amd/amdfam10/misc_control.c trunk/src/northbridge/amd/amdfam10/northbridge.c trunk/src/northbridge/intel/i3100/northbridge.c trunk/src/northbridge/intel/i3100/pciexp_porta.c trunk/src/northbridge/intel/i3100/pciexp_porta_ep80579.c trunk/src/northbridge/via/vx800/vx800_ide.c trunk/src/northbridge/via/vx800/vx800_lpc.c trunk/src/southbridge/amd/rs690/rs690_gfx.c trunk/src/southbridge/amd/rs690/rs690_ht.c trunk/src/southbridge/amd/rs780/rs780_gfx.c trunk/src/southbridge/amd/rs780/rs780_ht.c trunk/src/southbridge/amd/sb600/sb600_ac97.c trunk/src/southbridge/amd/sb600/sb600_hda.c trunk/src/southbridge/amd/sb600/sb600_ide.c trunk/src/southbridge/amd/sb600/sb600_lpc.c trunk/src/southbridge/amd/sb600/sb600_pci.c trunk/src/southbridge/amd/sb600/sb600_sata.c trunk/src/southbridge/amd/sb600/sb600_sm.c trunk/src/southbridge/amd/sb600/sb600_usb.c trunk/src/southbridge/amd/sb700/sb700_hda.c trunk/src/southbridge/amd/sb700/sb700_ide.c trunk/src/southbridge/amd/sb700/sb700_lpc.c trunk/src/southbridge/amd/sb700/sb700_pci.c trunk/src/southbridge/amd/sb700/sb700_sata.c trunk/src/southbridge/amd/sb700/sb700_sm.c trunk/src/southbridge/amd/sb700/sb700_usb.c trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c trunk/src/southbridge/intel/i3100/i3100_ehci.c trunk/src/southbridge/intel/i3100/i3100_lpc.c trunk/src/southbridge/intel/i3100/i3100_pci.c trunk/src/southbridge/intel/i3100/i3100_pciexp_portb.c trunk/src/southbridge/intel/i3100/i3100_sata.c trunk/src/southbridge/intel/i3100/i3100_smbus.c trunk/src/southbridge/intel/i3100/i3100_uhci.c
Modified: trunk/documentation/LinuxBIOS-AMD64.tex ============================================================================== --- trunk/documentation/LinuxBIOS-AMD64.tex Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/documentation/LinuxBIOS-AMD64.tex Wed Mar 17 00:33:29 2010 (r5229) @@ -1204,7 +1204,7 @@ .init = lsi_scsi_init, .scan_bus = 0, }; - static struct pci_driver lsi_scsi_driver __pci_driver = { + static const struct pci_driver lsi_scsi_driver __pci_driver = { .ops = &lsi_scsi_ops, .vendor = 0xXXXX, .device = 0xXXXX,
Modified: trunk/src/northbridge/amd/amdfam10/misc_control.c ============================================================================== --- trunk/src/northbridge/amd/amdfam10/misc_control.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/amd/amdfam10/misc_control.c Wed Mar 17 00:33:29 2010 (r5229) @@ -147,7 +147,7 @@ .ops_pci = 0, };
-static struct pci_driver mcf3_driver __pci_driver = { +static const struct pci_driver mcf3_driver __pci_driver = { .ops = &mcf3_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x1203,
Modified: trunk/src/northbridge/amd/amdfam10/northbridge.c ============================================================================== --- trunk/src/northbridge/amd/amdfam10/northbridge.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/amd/amdfam10/northbridge.c Wed Mar 17 00:33:29 2010 (r5229) @@ -633,7 +633,7 @@ };
-static struct pci_driver mcf0_driver __pci_driver = { +static const struct pci_driver mcf0_driver __pci_driver = { .ops = &northbridge_operations, .vendor = PCI_VENDOR_ID_AMD, .device = 0x1200,
Modified: trunk/src/northbridge/intel/i3100/northbridge.c ============================================================================== --- trunk/src/northbridge/intel/i3100/northbridge.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/intel/i3100/northbridge.c Wed Mar 17 00:33:29 2010 (r5229) @@ -233,7 +233,7 @@ .ops_pci = &intel_pci_ops, };
-static struct pci_driver mc_driver __pci_driver = { +static const struct pci_driver mc_driver __pci_driver = { .ops = &mc_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_MC,
Modified: trunk/src/northbridge/intel/i3100/pciexp_porta.c ============================================================================== --- trunk/src/northbridge/intel/i3100/pciexp_porta.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/intel/i3100/pciexp_porta.c Wed Mar 17 00:33:29 2010 (r5229) @@ -75,13 +75,13 @@ .ops_pci = 0, };
-static struct pci_driver pci_driver_0 __pci_driver = { +static const struct pci_driver pci_driver_0 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PA0, };
-static struct pci_driver pci_driver_1 __pci_driver = { +static const struct pci_driver pci_driver_1 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PA1,
Modified: trunk/src/northbridge/intel/i3100/pciexp_porta_ep80579.c ============================================================================== --- trunk/src/northbridge/intel/i3100/pciexp_porta_ep80579.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/intel/i3100/pciexp_porta_ep80579.c Wed Mar 17 00:33:29 2010 (r5229) @@ -99,13 +99,13 @@ .ops_pci = 0, };
-static struct pci_driver pci_driver_0 __pci_driver = { +static const struct pci_driver pci_driver_0 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_PCIE_PA0, };
-static struct pci_driver pci_driver_1 __pci_driver = { +static const struct pci_driver pci_driver_1 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_PCIE_PA1,
Modified: trunk/src/northbridge/via/vx800/vx800_ide.c ============================================================================== --- trunk/src/northbridge/via/vx800/vx800_ide.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/via/vx800/vx800_ide.c Wed Mar 17 00:33:29 2010 (r5229) @@ -261,7 +261,7 @@ .ops_pci = 0, };
-static struct pci_driver via_ide_driver __pci_driver = { +static const struct pci_driver via_ide_driver __pci_driver = { .ops = &ide_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_VX855_IDE,
Modified: trunk/src/northbridge/via/vx800/vx800_lpc.c ============================================================================== --- trunk/src/northbridge/via/vx800/vx800_lpc.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/northbridge/via/vx800/vx800_lpc.c Wed Mar 17 00:33:29 2010 (r5229) @@ -380,7 +380,7 @@ .scan_bus = scan_static_bus, };
-static struct pci_driver lpc_driver __pci_driver = { +static const struct pci_driver lpc_driver __pci_driver = { .ops = &vx800_lpc_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_VX855_LPC,
Modified: trunk/src/southbridge/amd/rs690/rs690_gfx.c ============================================================================== --- trunk/src/southbridge/amd/rs690/rs690_gfx.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/rs690/rs690_gfx.c Wed Mar 17 00:33:29 2010 (r5229) @@ -211,13 +211,13 @@ * 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,
Modified: trunk/src/southbridge/amd/rs690/rs690_ht.c ============================================================================== --- trunk/src/southbridge/amd/rs690/rs690_ht.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/rs690/rs690_ht.c Wed Mar 17 00:33:29 2010 (r5229) @@ -83,7 +83,7 @@ .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,
Modified: trunk/src/southbridge/amd/rs780/rs780_gfx.c ============================================================================== --- trunk/src/southbridge/amd/rs780/rs780_gfx.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/rs780/rs780_gfx.c Wed Mar 17 00:33:29 2010 (r5229) @@ -791,28 +791,28 @@ /* * 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,
Modified: trunk/src/southbridge/amd/rs780/rs780_ht.c ============================================================================== --- trunk/src/southbridge/amd/rs780/rs780_ht.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/rs780/rs780_ht.c Wed Mar 17 00:33:29 2010 (r5229) @@ -83,7 +83,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_ac97.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_ac97.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_ac97.c Wed Mar 17 00:33:29 2010 (r5229) @@ -38,7 +38,7 @@ .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 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_hda.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_hda.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_hda.c Wed Mar 17 00:33:29 2010 (r5229) @@ -325,7 +325,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_ide.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_ide.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_ide.c Wed Mar 17 00:33:29 2010 (r5229) @@ -68,7 +68,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_lpc.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_lpc.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_lpc.c Wed Mar 17 00:33:29 2010 (r5229) @@ -228,7 +228,7 @@ /* .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_pci.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_pci.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_pci.c Wed Mar 17 00:33:29 2010 (r5229) @@ -135,7 +135,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_sata.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_sata.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_sata.c Wed Mar 17 00:33:29 2010 (r5229) @@ -258,7 +258,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_sm.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_sm.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_sm.c Wed Mar 17 00:33:29 2010 (r5229) @@ -367,7 +367,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb600/sb600_usb.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_usb.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb600/sb600_usb.c Wed Mar 17 00:33:29 2010 (r5229) @@ -159,27 +159,27 @@ .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 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_hda.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_hda.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_hda.c Wed Mar 17 00:33:29 2010 (r5229) @@ -225,7 +225,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_ide.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_ide.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_ide.c Wed Mar 17 00:33:29 2010 (r5229) @@ -76,7 +76,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_lpc.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_lpc.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_lpc.c Wed Mar 17 00:33:29 2010 (r5229) @@ -240,7 +240,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_pci.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_pci.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_pci.c Wed Mar 17 00:33:29 2010 (r5229) @@ -121,7 +121,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_sata.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_sata.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_sata.c Wed Mar 17 00:33:29 2010 (r5229) @@ -284,7 +284,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_sm.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_sm.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_sm.c Wed Mar 17 00:33:29 2010 (r5229) @@ -374,7 +374,7 @@ .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,
Modified: trunk/src/southbridge/amd/sb700/sb700_usb.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_usb.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/amd/sb700/sb700_usb.c Wed Mar 17 00:33:29 2010 (r5229) @@ -200,12 +200,12 @@ .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 @@
/* 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 @@ .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,
Modified: trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c ============================================================================== --- trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c Wed Mar 17 00:33:29 2010 (r5229) @@ -62,19 +62,19 @@ };
-static struct pci_driver pcie_driver1 __pci_driver = { +static const struct pci_driver pcie_driver1 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM21000_EXB0, };
-static struct pci_driver pcie_driver2 __pci_driver = { +static const struct pci_driver pcie_driver2 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM21000_EXB1, };
-static struct pci_driver pcie_driver3 __pci_driver = { +static const struct pci_driver pcie_driver3 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM21000_EXB2,
Modified: trunk/src/southbridge/intel/i3100/i3100_ehci.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_ehci.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_ehci.c Wed Mar 17 00:33:29 2010 (r5229) @@ -55,13 +55,13 @@ .ops_pci = &lops_pci, };
-static struct pci_driver ehci_driver __pci_driver = { +static const struct pci_driver ehci_driver __pci_driver = { .ops = &ehci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_EHCI, };
-static struct pci_driver ehci_driver_ep80579 __pci_driver = { +static const struct pci_driver ehci_driver_ep80579 __pci_driver = { .ops = &ehci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_EHCI,
Modified: trunk/src/southbridge/intel/i3100/i3100_lpc.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_lpc.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_lpc.c Wed Mar 17 00:33:29 2010 (r5229) @@ -422,13 +422,13 @@ .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_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_LPC, };
-static struct pci_driver lpc_driver_ep80579 __pci_driver = { +static const struct pci_driver lpc_driver_ep80579 __pci_driver = { .ops = &lpc_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_LPC,
Modified: trunk/src/southbridge/intel/i3100/i3100_pci.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_pci.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_pci.c Wed Mar 17 00:33:29 2010 (r5229) @@ -38,7 +38,7 @@ .ops_pci = 0, };
-static struct pci_driver pci_driver __pci_driver = { +static const struct pci_driver pci_driver __pci_driver = { .ops = &pci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCI,
Modified: trunk/src/southbridge/intel/i3100/i3100_pciexp_portb.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_pciexp_portb.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_pciexp_portb.c Wed Mar 17 00:33:29 2010 (r5229) @@ -69,25 +69,25 @@ .ops_pci = 0, };
-static struct pci_driver pci_driver_0 __pci_driver = { +static const struct pci_driver pci_driver_0 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PB0, };
-static struct pci_driver pci_driver_1 __pci_driver = { +static const struct pci_driver pci_driver_1 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PB1, };
-static struct pci_driver pci_driver_2 __pci_driver = { +static const struct pci_driver pci_driver_2 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PB2, };
-static struct pci_driver pci_driver_3 __pci_driver = { +static const struct pci_driver pci_driver_3 __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_PCIE_PB3,
Modified: trunk/src/southbridge/intel/i3100/i3100_sata.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_sata.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_sata.c Wed Mar 17 00:33:29 2010 (r5229) @@ -120,25 +120,25 @@ .ops_pci = &lops_pci, };
-static struct pci_driver ide_driver __pci_driver = { +static const struct pci_driver ide_driver __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_IDE, };
-static struct pci_driver sata_driver __pci_driver = { +static const struct pci_driver sata_driver __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_AHCI, };
-static struct pci_driver ide_driver_ep80579 __pci_driver = { +static const struct pci_driver ide_driver_ep80579 __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_IDE, };
-static struct pci_driver sata_driver_ep80579 __pci_driver = { +static const struct pci_driver sata_driver_ep80579 __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_AHCI,
Modified: trunk/src/southbridge/intel/i3100/i3100_smbus.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_smbus.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_smbus.c Wed Mar 17 00:33:29 2010 (r5229) @@ -66,13 +66,13 @@ .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_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_SMB, };
-static struct pci_driver smbus_driver_ep80579 __pci_driver = { +static const struct pci_driver smbus_driver_ep80579 __pci_driver = { .ops = &smbus_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_SMB,
Modified: trunk/src/southbridge/intel/i3100/i3100_uhci.c ============================================================================== --- trunk/src/southbridge/intel/i3100/i3100_uhci.c Wed Mar 17 00:07:29 2010 (r5228) +++ trunk/src/southbridge/intel/i3100/i3100_uhci.c Wed Mar 17 00:33:29 2010 (r5229) @@ -49,19 +49,19 @@ .ops_pci = &lops_pci, };
-static struct pci_driver uhci_driver __pci_driver = { +static const struct pci_driver uhci_driver __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_UHCI, };
-static struct pci_driver usb2_driver __pci_driver = { +static const struct pci_driver usb2_driver __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_3100_UHCI2, };
-static struct pci_driver uhci_driver_ep80579 __pci_driver = { +static const struct pci_driver uhci_driver_ep80579 __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_EP80579_UHCI,