Merge branch 'linus' into x86/urgent
[pandora-kernel.git] / arch / arm / mach-pxa / cm-x270-pci.c
index 15c4e0d..319c9ff 100644 (file)
@@ -23,6 +23,7 @@
 #include <asm/mach/pci.h>
 #include <asm/arch/cm-x270.h>
 #include <asm/arch/pxa-regs.h>
+#include <asm/arch/pxa2xx-gpio.h>
 #include <asm/mach-types.h>
 
 #include <asm/hardware/it8152.h>
@@ -40,18 +41,20 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size,
 {
        unsigned int sz = SZ_64M >> PAGE_SHIFT;
 
-       pr_info("Adjusting zones for CM-x270\n");
+       if (machine_is_armcore()) {
+               pr_info("Adjusting zones for CM-x270\n");
 
-       /*
-        * Only adjust if > 64M on current system
-        */
-       if (node || (zone_size[0] <= sz))
-               return;
-
-       zone_size[1] = zone_size[0] - sz;
-       zone_size[0] = sz;
-       zhole_size[1] = zhole_size[0];
-       zhole_size[0] = 0;
+               /*
+                * Only adjust if > 64M on current system
+                */
+               if (node || (zone_size[0] <= sz))
+                       return;
+
+               zone_size[1] = zone_size[0] - sz;
+               zone_size[0] = sz;
+               zhole_size[1] = zhole_size[0];
+               zhole_size[0] = 0;
+       }
 }
 
 static void cmx270_it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
@@ -104,7 +107,7 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
 {
        int irq;
 
-       dev_dbg(&dev->dev, "%s: slot=%x, pin=%x\n", __FUNCTION__, slot, pin);
+       dev_dbg(&dev->dev, "%s: slot=%x, pin=%x\n", __func__, slot, pin);
 
        irq = it8152_pci_map_irq(dev, slot, pin);
        if (irq)