| 403 | } |
| 404 | |
| 405 | static rt_bool_t ofw_node_is_available(const struct rt_ofw_node *np) |
| 406 | { |
| 407 | rt_bool_t res = RT_TRUE; |
| 408 | const char *status = rt_ofw_prop_read_raw(np, "status", RT_NULL); |
| 409 | |
| 410 | if (status) |
| 411 | { |
| 412 | res = !rt_strcmp(status, "okay") || !rt_strcmp(status, "ok"); |
| 413 | } |
| 414 | |
| 415 | return res; |
| 416 | } |
| 417 | |
| 418 | rt_bool_t rt_ofw_node_is_available(const struct rt_ofw_node *np) |
| 419 | { |
no test coverage detected