diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-11 22:07:15 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 18:11:00 +0300 |
commit | d677b00cb62a4cf4d4a24468f218581b4f57c2fe (patch) | |
tree | bbc0d69b1d74d872bb0b798c36153d6832f5636a /include/dm | |
parent | b616cef97aa8562a8c08558505675e255b5347cc (diff) | |
download | u-boot-d677b00cb62a4cf4d4a24468f218581b4f57c2fe.tar.xz |
dm: core: Add a way to bind a device by ofnode
Add a new device_bind_ofnode() function which can bind a device given its
ofnode. This allows binding devices more easily with livetree nodes.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/device-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h index 5a4d50cbbe..f4af15448f 100644 --- a/include/dm/device-internal.h +++ b/include/dm/device-internal.h @@ -40,6 +40,10 @@ int device_bind(struct udevice *parent, const struct driver *drv, const char *name, void *platdata, int of_offset, struct udevice **devp); +int device_bind_ofnode(struct udevice *parent, const struct driver *drv, + const char *name, void *platdata, ofnode node, + struct udevice **devp); + /** * device_bind_with_driver_data() - Create a device and bind it to a driver * |