diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-21 19:43:57 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-21 20:42:35 -0700 |
commit | 1b30d61d786421a5d02725a9945552cc9c09914b (patch) | |
tree | 7966d4351125613caf50d2f5417c5882818cda1f /drivers/core/uclass.c | |
parent | 77eaa19e73f0c6b4c29982417676ab23cd72895a (diff) | |
download | u-boot-1b30d61d786421a5d02725a9945552cc9c09914b.tar.gz |
dm: core: Export uclass_find_device_by_of_offset()
It is sometimes useful to be able to find a device before probing it,
perhaps to set up some platform data for it. Allow finding by of_offset
also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r-- | drivers/core/uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index e1acefe727..12095e75a4 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -254,8 +254,8 @@ int uclass_find_device_by_seq(enum uclass_id id, int seq_or_req_seq, return -ENODEV; } -static int uclass_find_device_by_of_offset(enum uclass_id id, int node, - struct udevice **devp) +int uclass_find_device_by_of_offset(enum uclass_id id, int node, + struct udevice **devp) { struct uclass *uc; struct udevice *dev; |