| 534 | } |
| 535 | |
| 536 | bool |
| 537 | of_device_is_compatible(const struct device_node *dev_node, |
| 538 | const char *compatible) |
| 539 | { |
| 540 | const struct dt_dir *d; |
| 541 | |
| 542 | DPAAX_HWWARN(!alive, "Device-tree driver not initialised!"); |
| 543 | if (!dev_node) |
| 544 | d = &root_dir; |
| 545 | else |
| 546 | d = node2dir(dev_node); |
| 547 | if (d->compatible && check_compatible(d->compatible, compatible)) |
| 548 | return true; |
| 549 | return false; |
| 550 | } |
| 551 | |
| 552 | static const void *of_get_mac_addr(const struct device_node *np, |
| 553 | const char *name) |
no test coverage detected