Commit 4d1f692f authored by Greg Ungerer's avatar Greg Ungerer

m68knommu: fix gpio warnings for ColdFire 5272 targets

Fix these compiler warnings:

arch/m68knommu/platform/5272/gpio.c:35:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:36:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:37:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:51:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:52:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:53:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:67:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:68:3: warning: initialisation makes pointer from integer without a cast
arch/m68knommu/platform/5272/gpio.c:69:3: warning: initialisation makes pointer from integer without a cast
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent 2470758a
...@@ -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 = 16, .ngpio = 16,
}, },
.pddr = MCFSIM_PADDR, .pddr = (void __iomem *) MCFSIM_PADDR,
.podr = MCFSIM_PADAT, .podr = (void __iomem *) MCFSIM_PADAT,
.ppdr = MCFSIM_PADAT, .ppdr = (void __iomem *) MCFSIM_PADAT,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -48,9 +48,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -48,9 +48,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 16, .base = 16,
.ngpio = 16, .ngpio = 16,
}, },
.pddr = MCFSIM_PBDDR, .pddr = (void __iomem *) MCFSIM_PBDDR,
.podr = MCFSIM_PBDAT, .podr = (void __iomem *) MCFSIM_PBDAT,
.ppdr = MCFSIM_PBDAT, .ppdr = (void __iomem *) MCFSIM_PBDAT,
}, },
{ {
.gpio_chip = { .gpio_chip = {
...@@ -64,9 +64,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = { ...@@ -64,9 +64,9 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
.base = 32, .base = 32,
.ngpio = 16, .ngpio = 16,
}, },
.pddr = MCFSIM_PCDDR, .pddr = (void __iomem *) MCFSIM_PCDDR,
.podr = MCFSIM_PCDAT, .podr = (void __iomem *) MCFSIM_PCDAT,
.ppdr = MCFSIM_PCDAT, .ppdr = (void __iomem *) MCFSIM_PCDAT,
}, },
}; };
......
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