summaryrefslogtreecommitdiff
path: root/drivers/core/uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:43:57 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:35 -0700
commit1b30d61d786421a5d02725a9945552cc9c09914b (patch)
tree7966d4351125613caf50d2f5417c5882818cda1f /drivers/core/uclass.c
parent77eaa19e73f0c6b4c29982417676ab23cd72895a (diff)
downloadu-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.c4
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;