fix the readwrite/readonly clashes for the pci_driver structs in the sis

code. This is trivial, I did it for the other components before.

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



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2007-10-30 02:17:49 +00:00 committed by Stefan Reinauer
parent f32325ed8a
commit 83b52e7193
12 changed files with 26 additions and 27 deletions

View File

@ -31,8 +31,7 @@
#include <arch/io.h>
#include "sis966.h"
uint8_t SiS_SiS7502_init[6][3]={
uint8_t SiS_SiS7502_init[7][3]={
{0x04, 0xFF, 0x07},
{0x2C, 0xFF, 0x39},
{0x2D, 0xFF, 0x10},
@ -493,7 +492,7 @@ static struct device_operations aza_audio_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver azaaudio_driver __pci_driver = {
static const struct pci_driver azaaudio_driver __pci_driver = {
.ops = &aza_audio_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_AZA,

View File

@ -48,7 +48,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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_HT,

View File

@ -167,7 +167,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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_IDE,

View File

@ -397,39 +397,39 @@ static struct device_operations lpc_ops = {
// .enable = sis966_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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC,
};
static struct pci_driver lpc_driver_pro __pci_driver = {
static const struct pci_driver lpc_driver_pro __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PRO,
};
static struct pci_driver lpc_driver_lpc2 __pci_driver = {
static const struct pci_driver lpc_driver_lpc2 __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_2,
};
static struct pci_driver lpc_driver_lpc3 __pci_driver = {
static const struct pci_driver lpc_driver_lpc3 __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_3,
};
static struct pci_driver lpc_driver_lpc4 __pci_driver = {
static const struct pci_driver lpc_driver_lpc4 __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_4,
};
static struct pci_driver lpc_driver_lpc5 __pci_driver = {
static const struct pci_driver lpc_driver_lpc5 __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_5,
};
static struct pci_driver lpc_driver_lpc6 __pci_driver = {
static const struct pci_driver lpc_driver_lpc6 __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_6,
@ -444,7 +444,7 @@ static struct device_operations lpc_slave_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver lpc_driver_slave __pci_driver = {
static const struct pci_driver lpc_driver_slave __pci_driver = {
.ops = &lpc_slave_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_SLAVE,

View File

@ -631,12 +631,12 @@ static struct device_operations nic_ops = {
// .enable = sis966_enable,
.ops_pci = &lops_pci,
};
static struct pci_driver nic_driver __pci_driver = {
static const struct pci_driver nic_driver __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_NIC1,
};
static struct pci_driver nic_bridge_driver __pci_driver = {
static const struct pci_driver nic_bridge_driver __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_NIC_BRIDGE,

View File

@ -101,7 +101,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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCI,

View File

@ -58,27 +58,27 @@ static struct device_operations pcie_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver pciebc_driver __pci_driver = {
static const struct pci_driver pciebc_driver __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_B_C,
};
static struct pci_driver pciee_driver __pci_driver = {
static const struct pci_driver pciee_driver __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_E,
};
static struct pci_driver pciea_driver __pci_driver = {
static const struct pci_driver pciea_driver __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_A,
};
static struct pci_driver pcief_driver __pci_driver = {
static const struct pci_driver pcief_driver __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_F,
};
static struct pci_driver pcied_driver __pci_driver = {
static const struct pci_driver pcied_driver __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_D,

View File

@ -288,13 +288,13 @@ 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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_SATA0,
};
static struct pci_driver sata1_driver __pci_driver = {
static const struct pci_driver sata1_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_SATA1,

View File

@ -146,7 +146,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_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_SM2,

View File

@ -107,7 +107,7 @@ static struct device_operations usb_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb_driver __pci_driver = {
static const struct pci_driver usb_driver __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_USB,

View File

@ -161,7 +161,7 @@ static struct device_operations usb2_ops = {
.ops_pci = &lops_pci,
};
static struct pci_driver usb2_driver __pci_driver = {
static const struct pci_driver usb2_driver __pci_driver = {
.ops = &usb2_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS966_EHCI,

View File

@ -185,7 +185,7 @@ static struct device_operations sisnb_ops = {
.ops_pci = 0,
};
static struct pci_driver sisnb_driver __pci_driver = {
static const struct pci_driver sisnb_driver __pci_driver = {
.ops = &sisnb_ops,
.vendor = PCI_VENDOR_ID_SIS,
.device = PCI_DEVICE_ID_SIS_SIS761,