mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[DM/OFW] check available in stub probe
device node should not probe in stub if device is not available.
This commit is contained in:
1 parent
f7d542155f
commit
4d6b9a1330
1 file changed
+1
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user