aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2009-01-26 10:34:51 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 05:33:52 -0400
commit058b7a6f465bebd87c1f295afdd56cc6a33dffbd (patch)
treeb7060b4d4675d83cf086891d714a34e5e7af7472 /arch/arm/mach-mx2
parentedfcea80eb12b43680c4be0f2e31c8f5b1288edd (diff)
arm/imx2x: removes a bunch of sparse-warnings
Here are some of the warnings that get fixed by this: > 200 times: warning: cast adds address space to expression (<asn:2>) twelve times: warning: symbol 'xxx' was not declared. Should it be static two times: warning: symbol 'clock' shadows an earlier one five times: warning: incorrect type in initializer (different address spaces) Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2')
-rw-r--r--arch/arm/mach-mx2/devices.c15
-rw-r--r--arch/arm/mach-mx2/generic.c1
-rw-r--r--arch/arm/mach-mx2/mx27ads.c4
-rw-r--r--arch/arm/mach-mx2/pcm038.c2
-rw-r--r--arch/arm/mach-mx2/serial.c1
5 files changed, 14 insertions, 9 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c
index 2f9240be1c76..9ddd6d061058 100644
--- a/arch/arm/mach-mx2/devices.c
+++ b/arch/arm/mach-mx2/devices.c
@@ -34,6 +34,9 @@
34 34
35#include <mach/irqs.h> 35#include <mach/irqs.h>
36#include <mach/hardware.h> 36#include <mach/hardware.h>
37#include <mach/common.h>
38
39#include "devices.h"
37 40
38/* 41/*
39 * Resource definition for the MXC IrDA 42 * Resource definition for the MXC IrDA
@@ -230,32 +233,32 @@ static struct mxc_gpio_port imx_gpio_ports[] = {
230 [0] = { 233 [0] = {
231 .chip.label = "gpio-0", 234 .chip.label = "gpio-0",
232 .irq = MXC_INT_GPIO, 235 .irq = MXC_INT_GPIO,
233 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 0), 236 .base = IO_ADDRESS(GPIO_BASE_ADDR),
234 .virtual_irq_start = MXC_GPIO_IRQ_START, 237 .virtual_irq_start = MXC_GPIO_IRQ_START,
235 }, 238 },
236 [1] = { 239 [1] = {
237 .chip.label = "gpio-1", 240 .chip.label = "gpio-1",
238 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 1), 241 .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x100),
239 .virtual_irq_start = MXC_GPIO_IRQ_START + 32, 242 .virtual_irq_start = MXC_GPIO_IRQ_START + 32,
240 }, 243 },
241 [2] = { 244 [2] = {
242 .chip.label = "gpio-2", 245 .chip.label = "gpio-2",
243 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 2), 246 .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x200),
244 .virtual_irq_start = MXC_GPIO_IRQ_START + 64, 247 .virtual_irq_start = MXC_GPIO_IRQ_START + 64,
245 }, 248 },
246 [3] = { 249 [3] = {
247 .chip.label = "gpio-3", 250 .chip.label = "gpio-3",
248 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 3), 251 .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x300),
249 .virtual_irq_start = MXC_GPIO_IRQ_START + 96, 252 .virtual_irq_start = MXC_GPIO_IRQ_START + 96,
250 }, 253 },
251 [4] = { 254 [4] = {
252 .chip.label = "gpio-4", 255 .chip.label = "gpio-4",
253 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 4), 256 .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x400),
254 .virtual_irq_start = MXC_GPIO_IRQ_START + 128, 257 .virtual_irq_start = MXC_GPIO_IRQ_START + 128,
255 }, 258 },
256 [5] = { 259 [5] = {
257 .chip.label = "gpio-5", 260 .chip.label = "gpio-5",
258 .base = (void*)(AIPI_BASE_ADDR_VIRT + 0x15000 + 0x100 * 5), 261 .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x500),
259 .virtual_irq_start = MXC_GPIO_IRQ_START + 160, 262 .virtual_irq_start = MXC_GPIO_IRQ_START + 160,
260 } 263 }
261}; 264};
diff --git a/arch/arm/mach-mx2/generic.c b/arch/arm/mach-mx2/generic.c
index dea6521d4d5c..bd51dd04948e 100644
--- a/arch/arm/mach-mx2/generic.c
+++ b/arch/arm/mach-mx2/generic.c
@@ -21,6 +21,7 @@
21#include <linux/mm.h> 21#include <linux/mm.h>
22#include <linux/init.h> 22#include <linux/init.h>
23#include <mach/hardware.h> 23#include <mach/hardware.h>
24#include <mach/common.h>
24#include <asm/pgtable.h> 25#include <asm/pgtable.h>
25#include <asm/mach/map.h> 26#include <asm/mach/map.h>
26 27
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mx27ads.c
index 536bf64bc7c8..4548631eb3ae 100644
--- a/arch/arm/mach-mx2/mx27ads.c
+++ b/arch/arm/mach-mx2/mx27ads.c
@@ -266,7 +266,7 @@ static void __init mx27ads_timer_init(void)
266 mx27_clocks_init(fref); 266 mx27_clocks_init(fref);
267} 267}
268 268
269struct sys_timer mx27ads_timer = { 269static struct sys_timer mx27ads_timer = {
270 .init = mx27ads_timer_init, 270 .init = mx27ads_timer_init,
271}; 271};
272 272
@@ -279,7 +279,7 @@ static struct map_desc mx27ads_io_desc[] __initdata = {
279 }, 279 },
280}; 280};
281 281
282void __init mx27ads_map_io(void) 282static void __init mx27ads_map_io(void)
283{ 283{
284 mxc_map_io(); 284 mxc_map_io();
285 iotable_init(mx27ads_io_desc, ARRAY_SIZE(mx27ads_io_desc)); 285 iotable_init(mx27ads_io_desc, ARRAY_SIZE(mx27ads_io_desc));
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c
index 63cdef8565db..2942d59b5709 100644
--- a/arch/arm/mach-mx2/pcm038.c
+++ b/arch/arm/mach-mx2/pcm038.c
@@ -233,7 +233,7 @@ static void __init pcm038_timer_init(void)
233 mx27_clocks_init(26000000); 233 mx27_clocks_init(26000000);
234} 234}
235 235
236struct sys_timer pcm038_timer = { 236static struct sys_timer pcm038_timer = {
237 .init = pcm038_timer_init, 237 .init = pcm038_timer_init,
238}; 238};
239 239
diff --git a/arch/arm/mach-mx2/serial.c b/arch/arm/mach-mx2/serial.c
index b9e66fb11860..40a485cdc10e 100644
--- a/arch/arm/mach-mx2/serial.c
+++ b/arch/arm/mach-mx2/serial.c
@@ -22,6 +22,7 @@
22#include <linux/serial.h> 22#include <linux/serial.h>
23#include <mach/hardware.h> 23#include <mach/hardware.h>
24#include <mach/imx-uart.h> 24#include <mach/imx-uart.h>
25#include "devices.h"
25 26
26static struct resource uart0[] = { 27static struct resource uart0[] = {
27 { 28 {