diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-22 02:43:57 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-22 03:42:35 (GMT) |
commit | 1b30d61d786421a5d02725a9945552cc9c09914b (patch) | |
tree | 7966d4351125613caf50d2f5417c5882818cda1f /drivers/core/uclass.c | |
parent | 77eaa19e73f0c6b4c29982417676ab23cd72895a (diff) | |
download | u-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.c | 4 |
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; |