mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
8858dfac1d
commit
86e84e59bd
2 files changed
+3
-1
No files matched your search
@@ -1047,7 +1047,7 @@ int dt_for_each_range(const struct dt_device_node *dev,
|
||||
*
|
||||
* Returns a node pointer.
|
||||
*/
|
||||
static struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle)
|
||||
struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle)
|
||||
{
|
||||
struct dt_device_node *np;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||