aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/devices.c
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/devices.c
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/devices.c')
-rw-r--r--arch/arm/mach-mx2/devices.c15
1 files changed, 9 insertions, 6 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};