mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
gpio: dw: Fix warnings about casting int to pointer
Change the type of gpio_dwabp_platdata.base from fdt_addr_t to a void pointer, since we pass it to readl. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7224d5ccf8
commit
af551daf9e
|
@ -40,7 +40,7 @@ struct gpio_dwapb_platdata {
|
|||
const char *name;
|
||||
int bank;
|
||||
int pins;
|
||||
fdt_addr_t base;
|
||||
void __iomem *base;
|
||||
};
|
||||
|
||||
static int dwapb_gpio_direction_input(struct udevice *dev, unsigned pin)
|
||||
|
@ -176,7 +176,7 @@ static int gpio_dwapb_bind(struct udevice *dev)
|
|||
if (!plat)
|
||||
return -ENOMEM;
|
||||
|
||||
plat->base = base;
|
||||
plat->base = (void *)base;
|
||||
plat->bank = bank;
|
||||
plat->pins = ofnode_read_u32_default(node, "snps,nr-gpios", 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user