aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-06-29 09:19:30 -0700
committerGrant Likely <grant.likely@secretlab.ca>2010-07-18 22:39:36 -0600
commitc5f5849bffb36478dd8a1e350860ff18b654bc44 (patch)
treed66fe98e4a097f901b2d98989c30f11f7f7a5386 /arch/powerpc
parent60d599133011eaca6073696f6a86cd516854d547 (diff)
downloadkernel_samsung_aries-c5f5849bffb36478dd8a1e350860ff18b654bc44.zip
kernel_samsung_aries-c5f5849bffb36478dd8a1e350860ff18b654bc44.tar.gz
kernel_samsung_aries-c5f5849bffb36478dd8a1e350860ff18b654bc44.tar.bz2
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/powerpc')
-rw-r--r--arch/powerpc/include/asm/of_platform.h2
-rw-r--r--arch/powerpc/kernel/of_platform.c19
2 files changed, 0 insertions, 21 deletions
diff --git a/arch/powerpc/include/asm/of_platform.h b/arch/powerpc/include/asm/of_platform.h
index b37d2dc..d506aa6 100644
--- a/arch/powerpc/include/asm/of_platform.h
+++ b/arch/powerpc/include/asm/of_platform.h
@@ -11,8 +11,6 @@
*
*/
-extern struct of_device *of_find_device_by_phandle(phandle ph);
-
extern void of_instantiate_rtc(void);
#endif /* _ASM_POWERPC_OF_PLATFORM_H */
diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c
index 0b5cc6d..4e0a2f7 100644
--- a/arch/powerpc/kernel/of_platform.c
+++ b/arch/powerpc/kernel/of_platform.c
@@ -81,25 +81,6 @@ struct of_device *of_find_device_by_node(struct device_node *np)
}
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);
-
-
#ifdef CONFIG_PPC_OF_PLATFORM_PCI
/* The probing of PCI controllers from of_platform is currently