| 574 | } |
| 575 | |
| 576 | static void gicv2_init_fail(struct gicv2 *gic) |
| 577 | { |
| 578 | if (gic->dist_base) |
| 579 | { |
| 580 | rt_iounmap(gic->dist_base); |
| 581 | } |
| 582 | if (gic->cpu_base) |
| 583 | { |
| 584 | rt_iounmap(gic->cpu_base); |
| 585 | } |
| 586 | if (gic->hyp_base) |
| 587 | { |
| 588 | rt_iounmap(gic->hyp_base); |
| 589 | } |
| 590 | if (gic->vcpu_base) |
| 591 | { |
| 592 | rt_iounmap(gic->vcpu_base); |
| 593 | } |
| 594 | rt_memset(gic, 0, sizeof(*gic)); |
| 595 | } |
| 596 | |
| 597 | static rt_err_t gicv2_ofw_init(struct rt_ofw_node *np, const struct rt_ofw_node_id *id) |
| 598 | { |
no test coverage detected