Skip to content

Commit

Permalink
microblaze: remove references to of_device and to_of_device
Browse files Browse the repository at this point in the history
of_device is just a #define alias to platform_device.  This patch
replaces all references to it with platform_device.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Grant Likely committed Jul 24, 2010
1 parent cd4cd73 commit de48e36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 de48e36

Please sign in to comment.