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

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

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

index 15b5bb6..d757328 100644 (file)
@@ -32,9 +32,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .set                    = mcf_gpio_set_value,
                        .ngpio                  = 8,
                },
-               .pddr                           = MCFEPORT_EPDDR,
-               .podr                           = MCFEPORT_EPDR,
-               .ppdr                           = MCFEPORT_EPPDR,
+               .pddr                           = (void __iomem *) MCFEPORT_EPDDR,
+               .podr                           = (void __iomem *) MCFEPORT_EPDR,
+               .ppdr                           = (void __iomem *) MCFEPORT_EPPDR,
        },
        {
                .gpio_chip                      = {
@@ -48,11 +48,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 8,
                        .ngpio                  = 4,
                },
-               .pddr                           = MCFGPIO_PDDR_BUSCTL,
-               .podr                           = MCFGPIO_PODR_BUSCTL,
-               .ppdr                           = MCFGPIO_PPDSDR_BUSCTL,
-               .setr                           = MCFGPIO_PPDSDR_BUSCTL,
-               .clrr                           = MCFGPIO_PCLRR_BUSCTL,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_BUSCTL,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_BUSCTL,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_BUSCTL,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_BUSCTL,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_BUSCTL,
        },
        {
                .gpio_chip                      = {
@@ -66,11 +66,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 16,
                        .ngpio                  = 4,
                },
-               .pddr                           = MCFGPIO_PDDR_BE,
-               .podr                           = MCFGPIO_PODR_BE,
-               .ppdr                           = MCFGPIO_PPDSDR_BE,
-               .setr                           = MCFGPIO_PPDSDR_BE,
-               .clrr                           = MCFGPIO_PCLRR_BE,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_BE,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_BE,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_BE,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_BE,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_BE,
        },
        {
                .gpio_chip                      = {
@@ -84,11 +84,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 25,
                        .ngpio                  = 3,
                },
-               .pddr                           = MCFGPIO_PDDR_CS,
-               .podr                           = MCFGPIO_PODR_CS,
-               .ppdr                           = MCFGPIO_PPDSDR_CS,
-               .setr                           = MCFGPIO_PPDSDR_CS,
-               .clrr                           = MCFGPIO_PCLRR_CS,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_CS,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_CS,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_CS,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_CS,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_CS,
        },
        {
                .gpio_chip                      = {
@@ -102,11 +102,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 32,
                        .ngpio                  = 4,
                },
-               .pddr                           = MCFGPIO_PDDR_FECI2C,
-               .podr                           = MCFGPIO_PODR_FECI2C,
-               .ppdr                           = MCFGPIO_PPDSDR_FECI2C,
-               .setr                           = MCFGPIO_PPDSDR_FECI2C,
-               .clrr                           = MCFGPIO_PCLRR_FECI2C,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_FECI2C,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_FECI2C,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_FECI2C,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_FECI2C,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_FECI2C,
        },
        {
                .gpio_chip                      = {
@@ -120,11 +120,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 40,
                        .ngpio                  = 4,
                },
-               .pddr                           = MCFGPIO_PDDR_QSPI,
-               .podr                           = MCFGPIO_PODR_QSPI,
-               .ppdr                           = MCFGPIO_PPDSDR_QSPI,
-               .setr                           = MCFGPIO_PPDSDR_QSPI,
-               .clrr                           = MCFGPIO_PCLRR_QSPI,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_QSPI,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_QSPI,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_QSPI,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_QSPI,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_QSPI,
        },
        {
                .gpio_chip                      = {
@@ -138,11 +138,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 48,
                        .ngpio                  = 4,
                },
-               .pddr                           = MCFGPIO_PDDR_TIMER,
-               .podr                           = MCFGPIO_PODR_TIMER,
-               .ppdr                           = MCFGPIO_PPDSDR_TIMER,
-               .setr                           = MCFGPIO_PPDSDR_TIMER,
-               .clrr                           = MCFGPIO_PCLRR_TIMER,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_TIMER,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_TIMER,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_TIMER,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_TIMER,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_TIMER,
        },
        {
                .gpio_chip                      = {
@@ -156,11 +156,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 56,
                        .ngpio                  = 8,
                },
-               .pddr                           = MCFGPIO_PDDR_UART,
-               .podr                           = MCFGPIO_PODR_UART,
-               .ppdr                           = MCFGPIO_PPDSDR_UART,
-               .setr                           = MCFGPIO_PPDSDR_UART,
-               .clrr                           = MCFGPIO_PCLRR_UART,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_UART,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_UART,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_UART,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_UART,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_UART,
        },
        {
                .gpio_chip                      = {
@@ -174,11 +174,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 64,
                        .ngpio                  = 8,
                },
-               .pddr                           = MCFGPIO_PDDR_FECH,
-               .podr                           = MCFGPIO_PODR_FECH,
-               .ppdr                           = MCFGPIO_PPDSDR_FECH,
-               .setr                           = MCFGPIO_PPDSDR_FECH,
-               .clrr                           = MCFGPIO_PCLRR_FECH,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_FECH,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_FECH,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_FECH,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_FECH,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_FECH,
        },
        {
                .gpio_chip                      = {
@@ -192,11 +192,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .base                   = 72,
                        .ngpio                  = 8,
                },
-               .pddr                           = MCFGPIO_PDDR_FECL,
-               .podr                           = MCFGPIO_PODR_FECL,
-               .ppdr                           = MCFGPIO_PPDSDR_FECL,
-               .setr                           = MCFGPIO_PPDSDR_FECL,
-               .clrr                           = MCFGPIO_PCLRR_FECL,
+               .pddr                           = (void __iomem *) MCFGPIO_PDDR_FECL,
+               .podr                           = (void __iomem *) MCFGPIO_PODR_FECL,
+               .ppdr                           = (void __iomem *) MCFGPIO_PPDSDR_FECL,
+               .setr                           = (void __iomem *) MCFGPIO_PPDSDR_FECL,
+               .clrr                           = (void __iomem *) MCFGPIO_PCLRR_FECL,
        },
 };