| 390 | */ |
| 391 | |
| 392 | static rt_bool_t ofw_node_is_fail(const struct rt_ofw_node *np) |
| 393 | { |
| 394 | rt_bool_t res = RT_FALSE; |
| 395 | const char *status = rt_ofw_prop_read_raw(np, "status", RT_NULL); |
| 396 | |
| 397 | if (status) |
| 398 | { |
| 399 | res = !rt_strcmp(status, "fail") || !rt_strncmp(status, "fail-", 5); |
| 400 | } |
| 401 | |
| 402 | return res; |
| 403 | } |
| 404 | |
| 405 | static rt_bool_t ofw_node_is_available(const struct rt_ofw_node *np) |
| 406 | { |
no test coverage detected