m68knommu: fix gpio warnings for ColdFire 5206e targets
authorGreg Ungerer <gerg@uclinux.org>
Tue, 8 Mar 2011 22:55:53 +0000 (08:55 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Mar 2011 11:01:56 +0000 (21:01 +1000)
Fix these compiler warnings:

arch/m68knommu/platform/5206e/gpio.c:35:3: warning: initialisation makes pointer from integer without a cast  CC      kernel/panic.o
arch/m68knommu/platform/5206e/gpio.c:36:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5206e/gpio.c:37:3: warning: initialisation makes pointer from integer without a cast

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/platform/5206e/gpio.c

index 60f779ce16516367d822247684f2f80f4c7798b1..b9ab4a120f288cb2e6ee6a31c558274add2653dd 100644 (file)
@@ -32,9 +32,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .set                    = mcf_gpio_set_value,
                        .ngpio                  = 8,
                },
-               .pddr                           = MCFSIM_PADDR,
-               .podr                           = MCFSIM_PADAT,
-               .ppdr                           = MCFSIM_PADAT,
+               .pddr                           = (void __iomem *) MCFSIM_PADDR,
+               .podr                           = (void __iomem *) MCFSIM_PADAT,
+               .ppdr                           = (void __iomem *) MCFSIM_PADAT,
        },
 };