Skip to content

Commit 4d6b9a1

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/OFW] check available in stub probe
device node should not probe in stub if device is not available.
1 parent f7d5421 commit 4d6b9a1

File tree

1 file changed

+1
-0
lines changed
  • components/drivers/ofw

1 file changed

+1
-0
lines changed

components/drivers/ofw/ofw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ struct rt_ofw_stub *rt_ofw_stub_probe_range(struct rt_ofw_node *np,
2626
const struct rt_ofw_stub *stub = RT_NULL;
2727

2828
if (np && stub_start && stub_end &&
29+
rt_ofw_node_is_available(np) &&
2930
!rt_ofw_node_test_flag(np, RT_OFW_F_READLY) &&
3031
!rt_ofw_node_test_flag(np, RT_OFW_F_SYSTEM))
3132
{

0 commit comments

Comments
 (0)