/* Checks all the children of @parent for a matching @id. If none found, it allocates a new device and returns it.  */
static struct parisc_device* alloc_tree_node(struct device *parent, char id)
/* Checks all the children of @parent for a matching @id. If none found, it allocates a new device and returns it.  */
static struct parisc_device* alloc_tree_node(struct device *parent, char id)
{
	struct match_id_data d = {
		.id = id,
	};
	if (device_for_each_child(parent, &d, match_by_id))
		return d.dev;
	else
		return create_tree_node(id, parent);
}