Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5855a1e3 authored by Mike Rapoport's avatar Mike Rapoport Committed by Russell King
Browse files

[ARM] 5035/1: Ensure that zone adjustment is done only on CM-X270



Adjust zones for PCI DMA only if machine_is_armcore() to allow running
the same kernel on different PXA machines.

Signed-off-by: default avatarMike Rapoport <mike@compulab.co.il>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0b0a9df6
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size,
{
	unsigned int sz = SZ_64M >> PAGE_SHIFT;

	if (machine_is_armcore()) {
		pr_info("Adjusting zones for CM-x270\n");

		/*
@@ -54,6 +55,7 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size,
		zhole_size[1] = zhole_size[0];
		zhole_size[0] = 0;
	}
}

static void cmx270_it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
{