Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal...
[pandora-kernel.git] / arch / arm / mach-pxa / cm-x2xx-pci.c
index a2380cd..1afc0fb 100644 (file)
 unsigned long it8152_base_address;
 static int cmx2xx_it8152_irq_gpio;
 
-/*
- * Only first 64MB of memory can be accessed via PCI.
- * We use GFP_DMA to allocate safe buffers to do map/unmap.
- * This is really ugly and we need a better way of specifying
- * DMA-capable regions of memory.
- */
-void __init cmx2xx_pci_adjust_zones(unsigned long *zone_size,
-       unsigned long *zhole_size)
-{
-       unsigned int sz = SZ_64M >> PAGE_SHIFT;
-
-       if (machine_is_armcore()) {
-               pr_info("Adjusting zones for CM-X2XX\n");
-
-               /*
-                * Only adjust if > 64M on current system
-                */
-               if (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 cmx2xx_it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
 {
        /* clear our parent irq */
@@ -70,9 +43,10 @@ void __cmx2xx_pci_init_irq(int irq_gpio)
 
        cmx2xx_it8152_irq_gpio = irq_gpio;
 
-       set_irq_type(gpio_to_irq(irq_gpio), IRQ_TYPE_EDGE_RISING);
+       irq_set_irq_type(gpio_to_irq(irq_gpio), IRQ_TYPE_EDGE_RISING);
 
-       set_irq_chained_handler(gpio_to_irq(irq_gpio), cmx2xx_it8152_irq_demux);
+       irq_set_chained_handler(gpio_to_irq(irq_gpio),
+                               cmx2xx_it8152_irq_demux);
 }
 
 #ifdef CONFIG_PM