aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/of_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/kernel/of_platform.c')
-rw-r--r--arch/microblaze/kernel/of_platform.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/microblaze/kernel/of_platform.c b/arch/microblaze/kernel/of_platform.c
index a07abdd6859..da79edf4542 100644
--- a/arch/microblaze/kernel/of_platform.c
+++ b/arch/microblaze/kernel/of_platform.c
@@ -75,21 +75,3 @@ struct of_device *of_find_device_by_node(struct device_node *np)
75 return NULL; 75 return NULL;
76} 76}
77EXPORT_SYMBOL(of_find_device_by_node); 77EXPORT_SYMBOL(of_find_device_by_node);
78
79static int of_dev_phandle_match(struct device *dev, void *data)
80{
81 phandle *ph = data;
82 return to_of_device(dev)->dev.of_node->phandle == *ph;
83}
84
85struct of_device *of_find_device_by_phandle(phandle ph)
86{
87 struct device *dev;
88
89 dev = bus_find_device(&of_platform_bus_type,
90 NULL, &ph, of_dev_phandle_match);
91 if (dev)
92 return to_of_device(dev);
93 return NULL;
94}
95EXPORT_SYMBOL(of_find_device_by_phandle);