Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204936
b: refs/heads/master
c: de48e36
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Jul 24, 2010
1 parent a33d339 commit 246d0c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: cd4cd7306a403f62ef3ca783b9d1cf2a03e595ed
refs/heads/master: de48e369e8ea3a773cb2f959b76fcfad9966f4a0
6 changes: 3 additions & 3 deletions trunk/arch/microblaze/kernel/of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ const struct of_device_id of_default_bus_ids[] = {

static int of_dev_node_match(struct device *dev, void *data)
{
return to_of_device(dev)->dev.of_node == data;
return to_platform_device(dev)->dev.of_node == data;
}

struct of_device *of_find_device_by_node(struct device_node *np)
struct platform_device *of_find_device_by_node(struct device_node *np)
{
struct device *dev;

dev = bus_find_device(&platform_bus_type, NULL, np, of_dev_node_match);
if (dev)
return to_of_device(dev);
return to_platform_device(dev);
return NULL;
}
EXPORT_SYMBOL(of_find_device_by_node);

0 comments on commit 246d0c5

Please sign in to comment.