summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpio-fxl6408.c2
-rw-r--r--drivers/gpio/pca953x_gpio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c
index c8d2dff5f7b..180799139b3 100644
--- a/drivers/gpio/gpio-fxl6408.c
+++ b/drivers/gpio/gpio-fxl6408.c
@@ -273,7 +273,7 @@ static int fxl6408_probe(struct udevice *dev)
u32 val32;
addr = dev_read_addr(dev);
- if (addr == 0)
+ if (addr == FDT_ADDR_T_NONE)
return -EINVAL;
info->addr = addr;
diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c
index 523ca8473a8..965a5fcf30b 100644
--- a/drivers/gpio/pca953x_gpio.c
+++ b/drivers/gpio/pca953x_gpio.c
@@ -312,7 +312,7 @@ static int pca953x_probe(struct udevice *dev)
u8 val[MAX_BANK];
addr = dev_read_addr(dev);
- if (addr == 0)
+ if (addr == FDT_ADDR_T_NONE)
return -ENODEV;
info->addr = addr;