Fix dell/s1850 broken in r3822, and prepare it for implicit declaration
authorCorey Osgood <corey.osgood@gmail.com>
Sat, 20 Dec 2008 21:07:20 +0000 (21:07 +0000)
committerCorey Osgood <corey.osgood@gmail.com>
Sat, 20 Dec 2008 21:07:20 +0000 (21:07 +0000)
error patch.

Signed-off-by: Corey Osgood <corey.osgood@gmail.com>
Acked-by: Corey Osgood <corey.osgood@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3828 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/dell/s1850/reset.c

index cf9e3d8d6995f3ffa1d0c3b5ebe588e5802cf6e9..28a019a7d9a860efdf038b842c26e3ee22dd20ce 100644 (file)
@@ -1,9 +1,9 @@
 #include <arch/io.h>
-#include <device/pci.h>
+
 #include <device/pci_def.h>
 #include <device/pci_ids.h>
 #ifndef __ROMCC__
-#include <device/device.h>
+#include <device/pci.h>
 #define PCI_ID(VENDOR_ID, DEVICE_ID) \
        ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
 #define PCI_DEV_INVALID 0
@@ -12,6 +12,8 @@ static inline device_t pci_locate_device(unsigned pci_id, device_t from)
 {
        return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
 }
+#else
+#include <arch/romcc_io.h>
 #endif
 
 void soft_reset(void)