diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-29 03:50:00 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 17:58:17 +0300 |
commit | e12052b3227bb0d77125970dc9f731e052b1c730 (patch) | |
tree | 2374f34fa7540538316118f5403d1c4cf51ed579 /drivers/pinctrl/mvebu | |
parent | 6ca5ff3f201ce52d4626fb39ad3658e262cac9ef (diff) | |
download | u-boot-e12052b3227bb0d77125970dc9f731e052b1c730.tar.xz |
dm: core: Rename device_bind() to device_bind_offset()
This function is not necessary anymore, since device_bind_ofnode() does
the same thing and works with both flattree and livetree.
Rename it to indicate that it is special.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pinctrl/mvebu')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index fb497803b9..7bbeb413ba 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -567,8 +567,8 @@ static int armada_37xx_gpiochip_register(struct udevice *parent, sprintf(name, "armada-37xx-gpio"); /* Create child device UCLASS_GPIO and bind it */ - device_bind(parent, &armada_37xx_gpio_driver, name, NULL, subnode, - &dev); + device_bind_offset(parent, &armada_37xx_gpio_driver, name, NULL, + subnode, &dev); dev_set_of_offset(dev, subnode); return 0; |