diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2021-10-08 08:55:28 +0300 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@xilinx.com> | 2021-10-08 15:45:44 -0700 |
commit | 86e84e59bd77b69de5736ee00a679fba5ce9df5c (patch) | |
tree | f9ed67b0920d6c32fe0abf2f965ccf58f586c573 /xen/include | |
parent | 8858dfac1d83acd1b28643c616318631e3a4134d (diff) |
xen/device-tree: Make dt_find_node_by_phandle global
Make dt_find_node_by_phandle globally visible, so it can be re-used by
other frameworks.
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/xen/device_tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h index 2297c59ce6..fd6cd00b43 100644 --- a/xen/include/xen/device_tree.h +++ b/xen/include/xen/device_tree.h @@ -849,6 +849,8 @@ int dt_count_phandle_with_args(const struct dt_device_node *np, */ int dt_get_pci_domain_nr(struct dt_device_node *node); +struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle); + #ifdef CONFIG_DEVICE_TREE_DEBUG #define dt_dprintk(fmt, args...) \ printk(XENLOG_DEBUG fmt, ## args) |