Commit 9516de49 authored by Greg Ungerer's avatar Greg Ungerer

m68knommu: fix gpio warnings for ColdFire 520x targets

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: default avatarGreg Ungerer <gerg@uclinux.org>
parent d5365ca5
...@@ -32,9 +32,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -32,9 +32,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.set = mcf_gpio_set_value, .set = mcf_gpio_set_value,
.ngpio = 8, .ngpio = 8,
}, },
.pddr = MCFEPORT_EPDDR, .pddr = (void __iomem *) MCFEPORT_EPDDR,
.podr = MCFEPORT_EPDR, .podr = (void __iomem *) MCFEPORT_EPDR,
.ppdr = MCFEPORT_EPPDR, .ppdr = (void __iomem *) MCFEPORT_EPPDR,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -48,11 +48,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -48,11 +48,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 8, .base = 8,
.ngpio = 4, .ngpio = 4,
}, },
.pddr = MCFGPIO_PDDR_BUSCTL, .pddr = (void __iomem *) MCFGPIO_PDDR_BUSCTL,
.podr = MCFGPIO_PODR_BUSCTL, .podr = (void __iomem *) MCFGPIO_PODR_BUSCTL,
.ppdr = MCFGPIO_PPDSDR_BUSCTL, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_BUSCTL,
.setr = MCFGPIO_PPDSDR_BUSCTL, .setr = (void __iomem *) MCFGPIO_PPDSDR_BUSCTL,
.clrr = MCFGPIO_PCLRR_BUSCTL, .clrr = (void __iomem *) MCFGPIO_PCLRR_BUSCTL,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -66,11 +66,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -66,11 +66,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 16, .base = 16,
.ngpio = 4, .ngpio = 4,
}, },
.pddr = MCFGPIO_PDDR_BE, .pddr = (void __iomem *) MCFGPIO_PDDR_BE,
.podr = MCFGPIO_PODR_BE, .podr = (void __iomem *) MCFGPIO_PODR_BE,
.ppdr = MCFGPIO_PPDSDR_BE, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_BE,
.setr = MCFGPIO_PPDSDR_BE, .setr = (void __iomem *) MCFGPIO_PPDSDR_BE,
.clrr = MCFGPIO_PCLRR_BE, .clrr = (void __iomem *) MCFGPIO_PCLRR_BE,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -84,11 +84,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -84,11 +84,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 25, .base = 25,
.ngpio = 3, .ngpio = 3,
}, },
.pddr = MCFGPIO_PDDR_CS, .pddr = (void __iomem *) MCFGPIO_PDDR_CS,
.podr = MCFGPIO_PODR_CS, .podr = (void __iomem *) MCFGPIO_PODR_CS,
.ppdr = MCFGPIO_PPDSDR_CS, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_CS,
.setr = MCFGPIO_PPDSDR_CS, .setr = (void __iomem *) MCFGPIO_PPDSDR_CS,
.clrr = MCFGPIO_PCLRR_CS, .clrr = (void __iomem *) MCFGPIO_PCLRR_CS,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -102,11 +102,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -102,11 +102,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 32, .base = 32,
.ngpio = 4, .ngpio = 4,
}, },
.pddr = MCFGPIO_PDDR_FECI2C, .pddr = (void __iomem *) MCFGPIO_PDDR_FECI2C,
.podr = MCFGPIO_PODR_FECI2C, .podr = (void __iomem *) MCFGPIO_PODR_FECI2C,
.ppdr = MCFGPIO_PPDSDR_FECI2C, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_FECI2C,
.setr = MCFGPIO_PPDSDR_FECI2C, .setr = (void __iomem *) MCFGPIO_PPDSDR_FECI2C,
.clrr = MCFGPIO_PCLRR_FECI2C, .clrr = (void __iomem *) MCFGPIO_PCLRR_FECI2C,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -120,11 +120,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -120,11 +120,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 40, .base = 40,
.ngpio = 4, .ngpio = 4,
}, },
.pddr = MCFGPIO_PDDR_QSPI, .pddr = (void __iomem *) MCFGPIO_PDDR_QSPI,
.podr = MCFGPIO_PODR_QSPI, .podr = (void __iomem *) MCFGPIO_PODR_QSPI,
.ppdr = MCFGPIO_PPDSDR_QSPI, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_QSPI,
.setr = MCFGPIO_PPDSDR_QSPI, .setr = (void __iomem *) MCFGPIO_PPDSDR_QSPI,
.clrr = MCFGPIO_PCLRR_QSPI, .clrr = (void __iomem *) MCFGPIO_PCLRR_QSPI,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -138,11 +138,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -138,11 +138,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 48, .base = 48,
.ngpio = 4, .ngpio = 4,
}, },
.pddr = MCFGPIO_PDDR_TIMER, .pddr = (void __iomem *) MCFGPIO_PDDR_TIMER,
.podr = MCFGPIO_PODR_TIMER, .podr = (void __iomem *) MCFGPIO_PODR_TIMER,
.ppdr = MCFGPIO_PPDSDR_TIMER, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_TIMER,
.setr = MCFGPIO_PPDSDR_TIMER, .setr = (void __iomem *) MCFGPIO_PPDSDR_TIMER,
.clrr = MCFGPIO_PCLRR_TIMER, .clrr = (void __iomem *) MCFGPIO_PCLRR_TIMER,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -156,11 +156,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -156,11 +156,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 56, .base = 56,
.ngpio = 8, .ngpio = 8,
}, },
.pddr = MCFGPIO_PDDR_UART, .pddr = (void __iomem *) MCFGPIO_PDDR_UART,
.podr = MCFGPIO_PODR_UART, .podr = (void __iomem *) MCFGPIO_PODR_UART,
.ppdr = MCFGPIO_PPDSDR_UART, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_UART,
.setr = MCFGPIO_PPDSDR_UART, .setr = (void __iomem *) MCFGPIO_PPDSDR_UART,
.clrr = MCFGPIO_PCLRR_UART, .clrr = (void __iomem *) MCFGPIO_PCLRR_UART,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -174,11 +174,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -174,11 +174,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 64, .base = 64,
.ngpio = 8, .ngpio = 8,
}, },
.pddr = MCFGPIO_PDDR_FECH, .pddr = (void __iomem *) MCFGPIO_PDDR_FECH,
.podr = MCFGPIO_PODR_FECH, .podr = (void __iomem *) MCFGPIO_PODR_FECH,
.ppdr = MCFGPIO_PPDSDR_FECH, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_FECH,
.setr = MCFGPIO_PPDSDR_FECH, .setr = (void __iomem *) MCFGPIO_PPDSDR_FECH,
.clrr = MCFGPIO_PCLRR_FECH, .clrr = (void __iomem *) MCFGPIO_PCLRR_FECH,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -192,11 +192,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -192,11 +192,11 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 72, .base = 72,
.ngpio = 8, .ngpio = 8,
}, },
.pddr = MCFGPIO_PDDR_FECL, .pddr = (void __iomem *) MCFGPIO_PDDR_FECL,
.podr = MCFGPIO_PODR_FECL, .podr = (void __iomem *) MCFGPIO_PODR_FECL,
.ppdr = MCFGPIO_PPDSDR_FECL, .ppdr = (void __iomem *) MCFGPIO_PPDSDR_FECL,
.setr = MCFGPIO_PPDSDR_FECL, .setr = (void __iomem *) MCFGPIO_PPDSDR_FECL,
.clrr = MCFGPIO_PCLRR_FECL, .clrr = (void __iomem *) MCFGPIO_PCLRR_FECL,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment