Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204924
b: refs/heads/master
c: c5f5849
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Jul 19, 2010
1 parent 9de45d8 commit 7d4dafd
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 42 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60d599133011eaca6073696f6a86cd516854d547
refs/heads/master: c5f5849bffb36478dd8a1e350860ff18b654bc44
2 changes: 0 additions & 2 deletions trunk/arch/microblaze/include/asm/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
18 changes: 0 additions & 18 deletions trunk/arch/microblaze/kernel/of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/include/asm/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
19 changes: 0 additions & 19 deletions trunk/arch/powerpc/kernel/of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d4dafd

Please sign in to comment.