fix this warning for the embedded planet ep405pc
authorStefan Reinauer <stepan@coresystems.de>
Sat, 4 Apr 2009 22:24:23 +0000 (22:24 +0000)
committerStefan Reinauer <stepan@openbios.org>
Sat, 4 Apr 2009 22:24:23 +0000 (22:24 +0000)
/tmp/ccilLWBf.s: Assembler messages:
/tmp/ccilLWBf.s:144: Warning: setting incorrect section attributes for .rodata.pci_driver

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4070 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/southbridge/winbond/w83c553/w83c553f.c
src/southbridge/winbond/w83c553/w83c553f_ide.c

index 6208afec96c569544b3987c22d64a50511a921be..1e171213f181f58fe399131107f983e015e75653 100644 (file)
@@ -188,7 +188,7 @@ static void w83c553_enable_resources(device_t dev)
        enable_childrens_resources(dev);
 }
 
-struct device_operations w83c553_ops  = {
+static struct device_operations w83c553_ops  = {
         .read_resources   = pci_dev_read_resources,
         .set_resources    = pci_dev_set_resources,
         .enable_resources = w83c553_enable_resources,
@@ -196,7 +196,7 @@ struct device_operations w83c553_ops  = {
         .scan_bus         = scan_static_bus,
 };
 
-struct pci_driver w83c553f_pci_driver __pci_driver = {
+static const struct pci_driver w83c553f_pci_driver __pci_driver = {
        /* w83c553f */
        .ops = &w83c553_ops,
        .device = PCI_DEVICE_ID_WINBOND_83C553,
index 5b4e82f8c5bb0a7c3296a8b6afd4df8f1eb3d041..d385cbfa263efed4fcfc46734bf8d90da56d1c9a 100644 (file)
@@ -97,7 +97,7 @@ w83c553_ide_init(struct device *dev)
        printk_info("IDE configuration complete\n");
 }
 
-struct device_operations w83c553_ide_ops  = {
+static struct device_operations w83c553_ide_ops  = {
         .read_resources   = pci_dev_read_resources,
         .set_resources    = pci_dev_set_resources,
         .enable_resources = pci_dev_enable_resources,
@@ -105,7 +105,7 @@ struct device_operations w83c553_ide_ops  = {
         .scan_bus         = 0,
 };
 
-struct pci_driver w83c553f_ide_pci_driver __pci_driver = {
+static const struct pci_driver w83c553f_ide_pci_driver __pci_driver = {
        /* w83c553f_ide */
        .ops = &w83c553_ide_ops,
        .device = PCI_DEVICE_ID_WINBOND_82C105,