Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions components/drivers/core/platform_ofw.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ static rt_err_t platform_ofw_device_probe_once(struct rt_ofw_node *parent_np)
struct rt_ofw_node_id *id;
struct rt_ofw_prop *compat_prop = RT_NULL;

if (np->dev)
{
/* Check first */
continue;
}

LOG_D("%s found in %s", np->full_name, parent_np->full_name);

/* Is system node or have driver */
Expand Down Expand Up @@ -151,6 +157,12 @@ static rt_err_t platform_ofw_device_probe_once(struct rt_ofw_node *parent_np)
}
}

if (np->dev)
{
/* Maybe the childs have requested this node */
continue;
}

pdev = alloc_ofw_platform_device(np);

if (!pdev)
Expand Down