mirror of https://github.com/RT-Thread/rt-thread
[DM/OFW] check available in stub probe
device node should not probe in stub if device is not available.
This commit is contained in:
parent
f7d542155f
commit
4d6b9a1330
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue