diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-28 17:50:03 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 07:58:18 -0700 |
commit | a2703ce10cfcbe6a82ec8ed9ec10df2aeea08e64 (patch) | |
tree | 3b1e2e1d33b9e0bc9120be2cee4c6ca966876857 /drivers/pinctrl/meson | |
parent | 0de1b07406d709c3951dbb1a69ca196d80bd516d (diff) | |
download | u-boot-a2703ce10cfcbe6a82ec8ed9ec10df2aeea08e64.zip u-boot-a2703ce10cfcbe6a82ec8ed9ec10df2aeea08e64.tar.gz u-boot-a2703ce10cfcbe6a82ec8ed9ec10df2aeea08e64.tar.bz2 |
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>
Diffstat (limited to 'drivers/pinctrl/meson')
-rw-r--r-- | drivers/pinctrl/meson/pinctrl-meson.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 45a1ccf..c35e4c4 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -347,6 +347,7 @@ int meson_pinctrl_probe(struct udevice *dev) int na, ns; char *name; + /* FIXME: Should use livetree */ na = fdt_address_cells(gd->fdt_blob, dev_of_offset(dev->parent)); if (na < 1) { debug("bad #address-cells\n"); @@ -419,7 +420,8 @@ int meson_pinctrl_probe(struct udevice *dev) sprintf(name, "meson-gpio"); /* Create child device UCLASS_GPIO and bind it */ - device_bind_offset(dev, priv->data->gpio_driver, name, NULL, gpio, &gpio_dev); + device_bind(dev, priv->data->gpio_driver, name, NULL, + offset_to_ofnode(gpio), &gpio_dev); dev_set_of_offset(gpio_dev, gpio); return 0; |