m68knommu: fix gpio warnings for ColdFire 5407 targets
authorGreg Ungerer <gerg@uclinux.org>
Tue, 8 Mar 2011 23:21:24 +0000 (09:21 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Mar 2011 11:01:57 +0000 (21:01 +1000)
Fix these compiler warnings:

arch/m68knommu/platform/5407/gpio.c:35:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5407/gpio.c:36:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5407/gpio.c:37:3: warning: initialisation makes pointer from integer without a cast

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

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