dm: Remove uses of device_bind_offset()
This function is not needed since the standard device_bind() can be used
instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c
index a518a39..bcc322c 100644
--- a/drivers/gpio/tegra186_gpio.c
+++ b/drivers/gpio/tegra186_gpio.c
@@ -190,8 +190,8 @@
plat->name = ctlr_data->ports[port].name;
plat->regs = &(regs[ctlr_data->ports[port].offset / 4]);
- ret = device_bind_offset(parent, parent->driver, plat->name,
- plat, -1, &dev);
+ ret = device_bind(parent, parent->driver, plat->name, plat,
+ ofnode_null(), &dev);
if (ret)
return ret;
dev_set_of_offset(dev, dev_of_offset(parent));