dm: core: Provide uclass_find_device_by_phandle() only when needed
authorSimon Glass <sjg@chromium.org>
Sun, 20 Dec 2015 02:38:55 +0000 (19:38 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:21 +0000 (19:06 -0700)
commitc275dfefebb95c1ffdca630a65055a850b83adc7
treee7d68acaca87c258a859ea2cf6ec275335ddd74b
parent57e5ecaf755d5301cd33683788e4b8432938bbbe
dm: core: Provide uclass_find_device_by_phandle() only when needed

This function cannot be used unless support is enabled for device tree
control. Adjust the code to reflect that.

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