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>
This commit is contained in:
Simon Glass
2020-11-28 17:50:04 -07:00
parent a2703ce10c
commit 20da4e0231
6 changed files with 6 additions and 13 deletions

View File

@@ -422,7 +422,6 @@ int meson_pinctrl_probe(struct udevice *dev)
/* Create child device UCLASS_GPIO and bind it */
device_bind(dev, priv->data->gpio_driver, name, NULL,
offset_to_ofnode(gpio), &gpio_dev);
dev_set_of_offset(gpio_dev, gpio);
return 0;
}