dm: core: Add a way to find a device by ofnode
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:09 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:08 +0000 (07:03 -0600)
commit40bb637dae10abff32ca2d952fd443e0e09fd524
tree7fdd59ec0d5a7cb541a3cb0addc4023b485cc577
parent19c8205e6887d5e47c7dac6cd85d0376411b5444
dm: core: Add a way to find a device by ofnode

Add a function which looks up a device by its node (either in live tree
or flat tree).

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass-internal.h
include/dm/uclass.h