aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:09:07 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:08 -0600
commit45a26867e8158d0338ba5b99d21989a72d423209 (patch)
tree76f30778dcb4a8d50eeea20e2bc68d2ab731c41c /include
parentf5b5719cdf13f3ee1ae949a3bcffafb6431eead4 (diff)
downloadu-boot-45a26867e8158d0338ba5b99d21989a72d423209.zip
u-boot-45a26867e8158d0338ba5b99d21989a72d423209.tar.gz
u-boot-45a26867e8158d0338ba5b99d21989a72d423209.tar.bz2
dm: core: Update device_bind_driver_to_node() to use ofnode
Adjust this function to us an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm.h2
-rw-r--r--include/dm/lists.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/dm.h b/include/dm.h
index e634814..f752792 100644
--- a/include/dm.h
+++ b/include/dm.h
@@ -10,6 +10,8 @@
#include <dm/ofnode.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
+#include <dm/ofnode.h>
+#include <dm/read.h>
#include <dm/platdata.h>
#include <dm/uclass.h>
diff --git a/include/dm/lists.h b/include/dm/lists.h
index f55c419..d4d82d2 100644
--- a/include/dm/lists.h
+++ b/include/dm/lists.h
@@ -85,7 +85,7 @@ int device_bind_driver(struct udevice *parent, const char *drv_name,
* @devp: If non-NULL, returns the newly bound device
*/
int device_bind_driver_to_node(struct udevice *parent, const char *drv_name,
- const char *dev_name, int node,
+ const char *dev_name, ofnode node,
struct udevice **devp);
#endif