diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-29 03:50:06 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 17:58:18 +0300 |
commit | e80be7493412e0facbbf81f709dc44740e975dea (patch) | |
tree | 9754c334d27654e313d7ea934740e838a2f7e53f /include | |
parent | 0d56fba3c4156ba305053b5f8f317e2974f50eeb (diff) | |
download | u-boot-e80be7493412e0facbbf81f709dc44740e975dea.tar.xz |
dm: core: Drop device_bind_offset()
This function is not needed since the standard device_bind() can be used
instead. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/device-internal.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h index 6f4f8510f7..578a483497 100644 --- a/include/dm/device-internal.h +++ b/include/dm/device-internal.h @@ -16,7 +16,7 @@ struct device_node; struct udevice; /** - * device_bind_offset() - Create a device and bind it to a driver + * device_bind() - Create a device and bind it to a driver * * Called to set up a new device attached to a driver. The device will either * have platdata, or a device tree node which can be used to create the @@ -31,15 +31,11 @@ struct udevice; * @platdata: Pointer to data for this device - the structure is device- * specific but may include the device's I/O address, etc.. This is NULL for * devices which use device tree. - * @of_offset: Offset of device tree node for this device. This is -1 for - * devices which don't use device tree. + * @ofnode: Devicetree node for this device. This is ofnode_null() for + * devices which don't use devicetree or don't have a node. * @devp: if non-NULL, returns a pointer to the bound device * @return 0 if OK, -ve on error */ -int device_bind_offset(struct udevice *parent, const struct driver *drv, - const char *name, void *platdata, int of_offset, - struct udevice **devp); - int device_bind(struct udevice *parent, const struct driver *drv, const char *name, void *platdata, ofnode node, struct udevice **devp); |