diff options
author | Mario Six <mario.six@gdsys.cc> | 2018-01-15 11:07:45 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-28 09:36:28 -0500 |
commit | f62ca2cd2ab8171f603960da9203ceb6ee8a1efd (patch) | |
tree | ea2e0a101a62b87d272f0d5a879b7b09eef9b224 /drivers/gpio/pca953x_gpio.c | |
parent | fb01e07a955788f1b13aec9960984b5b9518609c (diff) | |
download | u-boot-f62ca2cd2ab8171f603960da9203ceb6ee8a1efd.zip u-boot-f62ca2cd2ab8171f603960da9203ceb6ee8a1efd.tar.gz u-boot-f62ca2cd2ab8171f603960da9203ceb6ee8a1efd.tar.bz2 |
gpio: pca953x_gpio: Make live-tree compatible
Make the pca953x_gpio driver compatible with a live device tree.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'drivers/gpio/pca953x_gpio.c')
-rw-r--r-- | drivers/gpio/pca953x_gpio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index 5ea1e05..a8a5a89 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -50,8 +50,6 @@ enum { #define MAX_BANK 5 #define BANK_SZ 8 -DECLARE_GLOBAL_DATA_PTR; - /* * struct pca953x_info - Data for pca953x * @@ -253,7 +251,7 @@ static int pca953x_probe(struct udevice *dev) ulong driver_data; int ret; - addr = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "reg", 0); + addr = dev_read_addr(dev); if (addr == 0) return -ENODEV; |