of: Remove unused of_find_device_by_phandle()
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 29 Jun 2010 16:19:30 +0000 (09:19 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 19 Jul 2010 04:39:36 +0000 (22:39 -0600)
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/microblaze/include/asm/of_platform.h
arch/microblaze/kernel/of_platform.c
arch/powerpc/include/asm/of_platform.h
arch/powerpc/kernel/of_platform.c

index 625003f708889ae638223e1ec742c5a77ee5d4ae..353d8f651e30444c0149fd4dac957717305e60f2 100644 (file)
@@ -14,8 +14,6 @@
 /* This is just here during the transition */
 #include <linux/of_platform.h>
 
-extern struct of_device *of_find_device_by_phandle(phandle ph);
-
 extern void of_instantiate_rtc(void);
 
 #endif /* _ASM_MICROBLAZE_OF_PLATFORM_H */
index a07abdd6859b24bfd10de3aa284ee0cbda7bfacf..da79edf454208340a615a466fcb36cc9eceaad84 100644 (file)
@@ -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);
index b37d2dcddb974c1215722a71dba36521f51df858..d506aa61db836dfd0ff5b1d16056d67ae99b753a 100644 (file)
@@ -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 */
index 0b5cc6d892a77502b30c063cee29cad83c9bab8b..4e0a2f7c1dd37b6791ca682be4d4b02b21a4ac8b 100644 (file)
@@ -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