mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
dm: core: Update lists_bind_fdt() to use ofnode
Adjust this function to use 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>
This commit is contained in:
parent
396e343b3d
commit
f5b5719cdf
5 changed files with 14 additions and 13 deletions
|
@ -10,6 +10,7 @@
|
|||
#ifndef _DM_LISTS_H_
|
||||
#define _DM_LISTS_H_
|
||||
|
||||
#include <dm/ofnode.h>
|
||||
#include <dm/uclass-id.h>
|
||||
|
||||
/**
|
||||
|
@ -51,14 +52,12 @@ int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only);
|
|||
* @parent as its parent.
|
||||
*
|
||||
* @parent: parent device (root)
|
||||
* @blob: device tree blob
|
||||
* @offset: offset of this device tree node
|
||||
* @node: device tree node to bind
|
||||
* @devp: if non-NULL, returns a pointer to the bound device
|
||||
* @return 0 if device was bound, -EINVAL if the device tree is invalid,
|
||||
* other -ve value on error
|
||||
*/
|
||||
int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
|
||||
struct udevice **devp);
|
||||
int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp);
|
||||
|
||||
/**
|
||||
* device_bind_driver() - bind a device to a driver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue