summaryrefslogtreecommitdiff
path: root/drivers/core/uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-22 02:43:57 (GMT)
committerSimon Glass <sjg@chromium.org>2016-01-22 03:42:35 (GMT)
commit1b30d61d786421a5d02725a9945552cc9c09914b (patch)
tree7966d4351125613caf50d2f5417c5882818cda1f /drivers/core/uclass.c
parent77eaa19e73f0c6b4c29982417676ab23cd72895a (diff)
downloadu-boot-1b30d61d786421a5d02725a9945552cc9c09914b.tar.xz
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 e1acefe..12095e7 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;