From: Russell King Date: Sat, 1 Oct 2011 16:56:13 +0000 (+0100) Subject: Merge branch 'devel-stable' into for-next X-Git-Tag: next-20111004~102^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c53e90de3814042ea812eb064bbde7f7022a4f99;p=karo-tx-linux.git Merge branch 'devel-stable' into for-next Conflicts: arch/arm/mach-msm/board-msm7x30.c arch/arm/mm/dma-mapping.c --- c53e90de3814042ea812eb064bbde7f7022a4f99 diff --cc arch/arm/mach-msm/board-msm7x30.c index 9043417ea52f,5a2ab6855183..71de5062c71e --- a/arch/arm/mach-msm/board-msm7x30.c +++ b/arch/arm/mach-msm/board-msm7x30.c @@@ -121,9 -106,7 +121,9 @@@ static void __init msm7x30_map_io(void } MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF") - .boot_params = PLAT_PHYS_OFFSET + 0x100, + .atag_offset = 0x100, + .fixup = msm7x30_fixup, + .reserve = msm7x30_reserve, .map_io = msm7x30_map_io, .init_irq = msm7x30_init_irq, .init_machine = msm7x30_init, @@@ -131,9 -114,7 +131,9 @@@ MACHINE_END MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA") - .boot_params = PLAT_PHYS_OFFSET + 0x100, + .atag_offset = 0x100, + .fixup = msm7x30_fixup, + .reserve = msm7x30_reserve, .map_io = msm7x30_map_io, .init_irq = msm7x30_init_irq, .init_machine = msm7x30_init, @@@ -141,9 -122,7 +141,9 @@@ MACHINE_END MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID") - .boot_params = PLAT_PHYS_OFFSET + 0x100, + .atag_offset = 0x100, + .fixup = msm7x30_fixup, + .reserve = msm7x30_reserve, .map_io = msm7x30_map_io, .init_irq = msm7x30_init_irq, .init_machine = msm7x30_init, diff --cc arch/arm/mm/dma-mapping.c index 235eb775fc78,50be842e89fd..e4e7f6cba1ab --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@@ -117,14 -119,10 +119,9 @@@ static void __dma_free_buffer(struct pa } #ifdef CONFIG_MMU - /* Sanity check size */ - #if (CONSISTENT_DMA_SIZE % SZ_2M) - #error "CONSISTENT_DMA_SIZE must be multiple of 2MiB" - #endif - #define CONSISTENT_OFFSET(x) (((unsigned long)(x) - CONSISTENT_BASE) >> PAGE_SHIFT) - #define CONSISTENT_PTE_INDEX(x) (((unsigned long)(x) - CONSISTENT_BASE) >> PMD_SHIFT) - #define NUM_CONSISTENT_PTES (CONSISTENT_DMA_SIZE >> PMD_SHIFT) - + #define CONSISTENT_OFFSET(x) (((unsigned long)(x) - consistent_base) >> PAGE_SHIFT) -#define CONSISTENT_PTE_INDEX(x) (((unsigned long)(x) - consistent_base) >> PGDIR_SHIFT) ++#define CONSISTENT_PTE_INDEX(x) (((unsigned long)(x) - consistent_base) >> PMD_SHIFT) /* * These are the page tables (2MB each) covering uncached, DMA consistent allocations