Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 303f59d1 authored by Olof Johansson's avatar Olof Johansson Committed by Rob Herring
Browse files

dt/platform: minor cleanup



* Correct description of of_platform_bus_create to match implementation
* Remove a level of indentation in of_dev_lookup

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 994c0e99
Loading
Loading
Loading
Loading
+16 −12
Original line number Original line Diff line number Diff line
@@ -310,7 +310,10 @@ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
				 struct device_node *np)
				 struct device_node *np)
{
{
	struct resource res;
	struct resource res;
	if (lookup) {

	if (!lookup)
		return NULL;

	for(; lookup->name != NULL; lookup++) {
	for(; lookup->name != NULL; lookup++) {
		if (!of_device_is_compatible(np, lookup->compatible))
		if (!of_device_is_compatible(np, lookup->compatible))
			continue;
			continue;
@@ -321,7 +324,7 @@ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
		pr_debug("%s: devname=%s\n", np->full_name, lookup->name);
		pr_debug("%s: devname=%s\n", np->full_name, lookup->name);
		return lookup;
		return lookup;
	}
	}
	}

	return NULL;
	return NULL;
}
}


@@ -329,8 +332,9 @@ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
 * of_platform_bus_create() - Create a device for a node and its children.
 * of_platform_bus_create() - Create a device for a node and its children.
 * @bus: device node of the bus to instantiate
 * @bus: device node of the bus to instantiate
 * @matches: match table for bus nodes
 * @matches: match table for bus nodes
 * disallow recursive creation of child buses
 * @lookup: auxdata table for matching id and platform_data with device nodes
 * @parent: parent for new device, or NULL for top level.
 * @parent: parent for new device, or NULL for top level.
 * @strict: require compatible property
 *
 *
 * Creates a platform_device for the provided device_node, and optionally
 * Creates a platform_device for the provided device_node, and optionally
 * recursively create devices for all the child nodes.
 * recursively create devices for all the child nodes.