FDT: Add a helper to get the subnode by given name
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Apr 2016 12:03:33 +0000 (20:03 +0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:34:46 +0000 (10:34 +0100)
commit9c6098685a1d5df72da61ff7838ebb1524796869
tree4e24b0c39329c6de73c6394387f3ec3e9af8adea
parentbe1aaf4e4026118e4191117a48f8a8078d1c0ed4
FDT: Add a helper to get the subnode by given name

Sometimes it needs to check if there is a subnode of given node in FDT
by given name. Introduce this helper to get the subnode if it exists.

CC: Rob Herring <robh@kernel.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Julien Grall <julien.grall@arm.com>
drivers/of/fdt.c
include/linux/of_fdt.h