X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fof%2Fplatform.c;h=b47a2292fe8e8904a653ad295404c8d56282c9df;hb=d77b3f07a1d7127f1ecaf82a95a36b8a3e8fc689;hp=7801e25e68954e6b323354df7d745c0d4c084641;hpb=d2fbf4b6d585e40f2369675148777abce3abd0e7;p=linux-2.6-microblaze.git diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 7801e25e6895..b47a2292fe8e 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -37,11 +37,6 @@ static const struct of_device_id of_skipped_node_table[] = { {} /* Empty terminated list */ }; -static int of_dev_node_match(struct device *dev, const void *data) -{ - return dev->of_node == data; -} - /** * of_find_device_by_node - Find the platform_device associated with a node * @np: Pointer to device tree node @@ -55,7 +50,7 @@ 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); + dev = bus_find_device_by_of_node(&platform_bus_type, np); return dev ? to_platform_device(dev) : NULL; } EXPORT_SYMBOL(of_find_device_by_node);