diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-06-29 09:19:30 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-18 22:39:36 -0600 |
commit | c5f5849bffb36478dd8a1e350860ff18b654bc44 (patch) | |
tree | d66fe98e4a097f901b2d98989c30f11f7f7a5386 /arch/microblaze/kernel | |
parent | 60d599133011eaca6073696f6a86cd516854d547 (diff) | |
download | op-kernel-dev-c5f5849bffb36478dd8a1e350860ff18b654bc44.zip op-kernel-dev-c5f5849bffb36478dd8a1e350860ff18b654bc44.tar.gz |
of: Remove unused of_find_device_by_phandle()
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/of_platform.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/microblaze/kernel/of_platform.c b/arch/microblaze/kernel/of_platform.c index a07abdd..da79edf 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) return NULL; } EXPORT_SYMBOL(of_find_device_by_node); - -static int of_dev_phandle_match(struct device *dev, void *data) -{ - phandle *ph = data; - return to_of_device(dev)->dev.of_node->phandle == *ph; -} - -struct of_device *of_find_device_by_phandle(phandle ph) -{ - struct device *dev; - - dev = bus_find_device(&of_platform_bus_type, - NULL, &ph, of_dev_phandle_match); - if (dev) - return to_of_device(dev); - return NULL; -} -EXPORT_SYMBOL(of_find_device_by_phandle); |