aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/bcm63xx/dev-enet.c8
-rw-r--r--arch/mips/kernel/cmpxchg.c3
-rw-r--r--arch/mips/kernel/setup.c3
-rw-r--r--arch/mips/lantiq/xway/vmmc.c4
4 files changed, 13 insertions, 5 deletions
diff --git a/arch/mips/bcm63xx/dev-enet.c b/arch/mips/bcm63xx/dev-enet.c
index 07b4c65a88a4..8e73d65f3480 100644
--- a/arch/mips/bcm63xx/dev-enet.c
+++ b/arch/mips/bcm63xx/dev-enet.c
@@ -70,6 +70,8 @@ static struct platform_device bcm63xx_enet_shared_device = {
70 70
71static int shared_device_registered; 71static int shared_device_registered;
72 72
73static u64 enet_dmamask = DMA_BIT_MASK(32);
74
73static struct resource enet0_res[] = { 75static struct resource enet0_res[] = {
74 { 76 {
75 .start = -1, /* filled at runtime */ 77 .start = -1, /* filled at runtime */
@@ -99,6 +101,8 @@ static struct platform_device bcm63xx_enet0_device = {
99 .resource = enet0_res, 101 .resource = enet0_res,
100 .dev = { 102 .dev = {
101 .platform_data = &enet0_pd, 103 .platform_data = &enet0_pd,
104 .dma_mask = &enet_dmamask,
105 .coherent_dma_mask = DMA_BIT_MASK(32),
102 }, 106 },
103}; 107};
104 108
@@ -131,6 +135,8 @@ static struct platform_device bcm63xx_enet1_device = {
131 .resource = enet1_res, 135 .resource = enet1_res,
132 .dev = { 136 .dev = {
133 .platform_data = &enet1_pd, 137 .platform_data = &enet1_pd,
138 .dma_mask = &enet_dmamask,
139 .coherent_dma_mask = DMA_BIT_MASK(32),
134 }, 140 },
135}; 141};
136 142
@@ -157,6 +163,8 @@ static struct platform_device bcm63xx_enetsw_device = {
157 .resource = enetsw_res, 163 .resource = enetsw_res,
158 .dev = { 164 .dev = {
159 .platform_data = &enetsw_pd, 165 .platform_data = &enetsw_pd,
166 .dma_mask = &enet_dmamask,
167 .coherent_dma_mask = DMA_BIT_MASK(32),
160 }, 168 },
161}; 169};
162 170
diff --git a/arch/mips/kernel/cmpxchg.c b/arch/mips/kernel/cmpxchg.c
index 0b9535bc2c53..6b2a4a902a98 100644
--- a/arch/mips/kernel/cmpxchg.c
+++ b/arch/mips/kernel/cmpxchg.c
@@ -54,10 +54,9 @@ unsigned long __xchg_small(volatile void *ptr, unsigned long val, unsigned int s
54unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, 54unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old,
55 unsigned long new, unsigned int size) 55 unsigned long new, unsigned int size)
56{ 56{
57 u32 mask, old32, new32, load32; 57 u32 mask, old32, new32, load32, load;
58 volatile u32 *ptr32; 58 volatile u32 *ptr32;
59 unsigned int shift; 59 unsigned int shift;
60 u8 load;
61 60
62 /* Check that ptr is naturally aligned */ 61 /* Check that ptr is naturally aligned */
63 WARN_ON((unsigned long)ptr & (size - 1)); 62 WARN_ON((unsigned long)ptr & (size - 1));
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 8c6c48ed786a..d2e5a5ad0e6f 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -384,7 +384,8 @@ static void __init bootmem_init(void)
384 init_initrd(); 384 init_initrd();
385 reserved_end = (unsigned long) PFN_UP(__pa_symbol(&_end)); 385 reserved_end = (unsigned long) PFN_UP(__pa_symbol(&_end));
386 386
387 memblock_reserve(PHYS_OFFSET, reserved_end << PAGE_SHIFT); 387 memblock_reserve(PHYS_OFFSET,
388 (reserved_end << PAGE_SHIFT) - PHYS_OFFSET);
388 389
389 /* 390 /*
390 * max_low_pfn is not a number of pages. The number of pages 391 * max_low_pfn is not a number of pages. The number of pages
diff --git a/arch/mips/lantiq/xway/vmmc.c b/arch/mips/lantiq/xway/vmmc.c
index 577ec81b557d..3deab9a77718 100644
--- a/arch/mips/lantiq/xway/vmmc.c
+++ b/arch/mips/lantiq/xway/vmmc.c
@@ -31,8 +31,8 @@ static int vmmc_probe(struct platform_device *pdev)
31 dma_addr_t dma; 31 dma_addr_t dma;
32 32
33 cp1_base = 33 cp1_base =
34 (void *) CPHYSADDR(dma_alloc_coherent(NULL, CP1_SIZE, 34 (void *) CPHYSADDR(dma_alloc_coherent(&pdev->dev, CP1_SIZE,
35 &dma, GFP_ATOMIC)); 35 &dma, GFP_KERNEL));
36 36
37 gpio_count = of_gpio_count(pdev->dev.of_node); 37 gpio_count = of_gpio_count(pdev->dev.of_node);
38 while (gpio_count > 0) { 38 while (gpio_count > 0) {