| 1467 | } |
| 1468 | |
| 1469 | static void parse_devicetree(const char *file, struct bus *parent) |
| 1470 | { |
| 1471 | FILE *filec = fopen(file, "r"); |
| 1472 | if (!filec) { |
| 1473 | perror(NULL); |
| 1474 | exit(1); |
| 1475 | } |
| 1476 | |
| 1477 | yyrestart(filec); |
| 1478 | |
| 1479 | root_parent = parent; |
| 1480 | linenum = 0; |
| 1481 | |
| 1482 | yyparse(); |
| 1483 | |
| 1484 | fclose(filec); |
| 1485 | } |
| 1486 | |
| 1487 | static int device_probe_count(struct fw_config_probe *probe) |
| 1488 | { |