1
0
Эх сурвалжийг харах

[DM/OFW] check available in stub probe

device node should not probe in stub if device is not available.
GUI 2 сар өмнө
parent
commit
4d6b9a1330

+ 1 - 0
components/drivers/ofw/ofw.c

@@ -26,6 +26,7 @@ struct rt_ofw_stub *rt_ofw_stub_probe_range(struct rt_ofw_node *np,
     const struct rt_ofw_stub *stub = RT_NULL;
 
     if (np && stub_start && stub_end &&
+        rt_ofw_node_is_available(np) &&
         !rt_ofw_node_test_flag(np, RT_OFW_F_READLY) &&
         !rt_ofw_node_test_flag(np, RT_OFW_F_SYSTEM))
     {