提交 f62ca2cd 编写于 作者: M Mario Six 提交者: Tom Rini

gpio: pca953x_gpio: Make live-tree compatible

Make the pca953x_gpio driver compatible with a live device tree.
Reviewed-by: NSimon Glass <sjg@chromium.org>
Signed-off-by: NMario Six <mario.six@gdsys.cc>
上级 fb01e07a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册