mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
fb01e07a95
commit
f62ca2cd2a
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue