]> Pileus Git - ~andy/linux/commitdiff
m68knommu: fix gpio warnings for ColdFire 5249 targets
authorGreg Ungerer <gerg@uclinux.org>
Tue, 8 Mar 2011 23:05:40 +0000 (09:05 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Mar 2011 11:01:56 +0000 (21:01 +1000)
Fix these compiler warnings:

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

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

index c611eab8b3b6da3551e7b29d09b054b03f8601b8..2b56c6ef65bf1d0ef1f09f1b10d41bb1cdba7fa1 100644 (file)
@@ -32,9 +32,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .set                    = mcf_gpio_set_value,
                        .ngpio                  = 32,
                },
-               .pddr                           = MCFSIM2_GPIOENABLE,
-               .podr                           = MCFSIM2_GPIOWRITE,
-               .ppdr                           = MCFSIM2_GPIOREAD,
+               .pddr                           = (void __iomem *) MCFSIM2_GPIOENABLE,
+               .podr                           = (void __iomem *) MCFSIM2_GPIOWRITE,
+               .ppdr                           = (void __iomem *) MCFSIM2_GPIOREAD,
        },
        {
                .gpio_chip                      = {
@@ -48,9 +48,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 32,
                        .ngpio                  = 32,
                },
-               .pddr                           = MCFSIM2_GPIO1ENABLE,
-               .podr                           = MCFSIM2_GPIO1WRITE,
-               .ppdr                           = MCFSIM2_GPIO1READ,
+               .pddr                           = (void __iomem *) MCFSIM2_GPIO1ENABLE,
+               .podr                           = (void __iomem *) MCFSIM2_GPIO1WRITE,
+               .ppdr                           = (void __iomem *) MCFSIM2_GPIO1READ,
        },
 };