Name

of_platform_bus_probe — Probe the device-tree for platform buses

Synopsis

int of_platform_bus_probe (struct device_node * root,
 const struct of_device_id * matches,
 struct device * parent);
 

Arguments

root

Pointer to parent of the first level to probe

matches

Pointer to match table for bus nodes

parent

Pointer to parent to hook devices from, NULL for toplevel

Description

If root is NULL, then root is the root of the tree.

If root has a match in matches, create root and it's children. Otherwise, for each child of root that has a match in matches, create that child and it's children.

Note that children of the provided root are not instantiated as devices unless the specified root itself matches the bus list and is not NULL.

Also see

of_node_match, of_platform_bus_create, of_platform_populate

Return

0 on success, else -EINVAL on error.