Author: stepan Date: 2009-05-26 14:58:00 +0200 (Tue, 26 May 2009) New Revision: 4302
Modified: trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_ac97.c trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_nic.c trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_smbus.c trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_usb.c Log: ops can not be const because of the pci conf1/conf2 hackery we do. trivial patch, just removes the warnings like coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_ac97.c:73: warning: initialization discards qualifiers from pointer target type
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_ac97.c =================================================================== --- trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_ac97.c 2009-05-26 12:33:52 UTC (rev 4301) +++ trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_ac97.c 2009-05-26 12:58:00 UTC (rev 4302) @@ -27,7 +27,7 @@ #include <device/pci_ids.h> #include "i82801xx.h"
-static const struct device_operations ac97_ops = { +static struct device_operations ac97_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources,
Modified: trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_nic.c =================================================================== --- trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_nic.c 2009-05-26 12:33:52 UTC (rev 4301) +++ trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_nic.c 2009-05-26 12:58:00 UTC (rev 4302) @@ -25,7 +25,7 @@ #include <device/pci.h> #include <device/pci_ids.h>
-static const struct device_operations nic_ops = { +static struct device_operations nic_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources,
Modified: trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_smbus.c =================================================================== --- trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_smbus.c 2009-05-26 12:33:52 UTC (rev 4301) +++ trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_smbus.c 2009-05-26 12:58:00 UTC (rev 4302) @@ -38,7 +38,7 @@ return do_smbus_read_byte(res->base, device, address); }
-static const struct smbus_bus_operations lops_smbus_bus = { +static struct smbus_bus_operations lops_smbus_bus = { .read_byte = smbus_read_byte, };
Modified: trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_usb.c =================================================================== --- trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_usb.c 2009-05-26 12:33:52 UTC (rev 4301) +++ trunk/coreboot-v2/src/southbridge/intel/i82801xx/i82801xx_usb.c 2009-05-26 12:58:00 UTC (rev 4302) @@ -31,7 +31,7 @@ /* TODO: Any init needed? Some ports have it, others don't. */ }
-static const struct device_operations usb_ops = { +static struct device_operations usb_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources,