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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user