of/fdt: add of_fdt_device_is_available function
authorRob Herring <robh@kernel.org>
Fri, 29 Sep 2017 00:20:32 +0000 (19:20 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:43:21 +0000 (13:43 -0500)
commitecc8a96e251dc43d13841bac44fbfa34ec20fc52
tree983b430099a97fc350ccc2ff4e799490fd9a4d9f
parentb56b5528f5b3c3d47e7c0ca67318c45e980d93f0
of/fdt: add of_fdt_device_is_available function

Add an equivalent function to of_device_is_available for flattened DT, and
convert the one existing open coded occurrence.

Tested-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c