summaryrefslogtreecommitdiff
path: root/drivers/gpio/tegra_gpio.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-05-09 12:45:49 -0400
committerTom Rini <trini@konsulko.com>2023-05-09 12:45:49 -0400
commit0a9a4384c1483a88776bca38e28f09be51161034 (patch)
treec39e9bac9413c5c90f8da424865d67a7efdca315 /drivers/gpio/tegra_gpio.c
parentf1d33a44ca04fdca241c1d89fd79e2e56c930c7e (diff)
parent716ed2a8c0bba085372df0eb7edb580b11e8d94c (diff)
Merge tag 'u-boot-rockchip-20230509' of https://source.denx.de/u-boot/custodians/u-boot-rockchip
- Rockchip NFC driver update and dev addr pointer api update; - use standard dr_mode for usb driver; - rock pi boards dts update; - Add rk3566 Anbernic boards; - Misc fixes for drivers;
Diffstat (limited to 'drivers/gpio/tegra_gpio.c')
-rw-r--r--drivers/gpio/tegra_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c
index 4291e496fa7..55105f2802c 100644
--- a/drivers/gpio/tegra_gpio.c
+++ b/drivers/gpio/tegra_gpio.c
@@ -339,8 +339,8 @@ static int gpio_tegra_bind(struct udevice *parent)
if (len < 0)
return len;
bank_count = len / 3 / sizeof(u32);
- ctlr = (struct gpio_ctlr *)dev_read_addr(parent);
- if ((ulong)ctlr == FDT_ADDR_T_NONE)
+ ctlr = dev_read_addr_ptr(parent);
+ if (!ctlr)
return -EINVAL;
}
#endif