summaryrefslogtreecommitdiff
path: root/drivers/gpio/tegra_gpio.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-29 03:50:04 +0300
committerSimon Glass <sjg@chromium.org>2020-12-13 17:58:18 +0300
commit20da4e023175b91cefab4afe4d64fcab4a2fa873 (patch)
tree9718002d42ee983a7d7f16e914b8623bab7d5d54 /drivers/gpio/tegra_gpio.c
parenta2703ce10cfcbe6a82ec8ed9ec10df2aeea08e64 (diff)
downloadu-boot-20da4e023175b91cefab4afe4d64fcab4a2fa873.tar.xz
dm: Drop uses of dev_set_of_offset()
The need for this can be avoided by passing the correct node to the device_bind() function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/gpio/tegra_gpio.c')
-rw-r--r--drivers/gpio/tegra_gpio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c
index 3877ee659a..22d2531322 100644
--- a/drivers/gpio/tegra_gpio.c
+++ b/drivers/gpio/tegra_gpio.c
@@ -361,11 +361,10 @@ static int gpio_tegra_bind(struct udevice *parent)
plat->port_name = gpio_port_name(base_port);
ret = device_bind(parent, parent->driver,
- plat->port_name, plat, ofnode_null(),
- &dev);
+ plat->port_name, plat,
+ dev_ofnode(parent), &dev);
if (ret)
return ret;
- dev_set_of_offset(dev, dev_of_offset(parent));
}
}