| 401 | } |
| 402 | |
| 403 | static int |
| 404 | nexus_release_resource(device_t bus, device_t child, int type, int rid, |
| 405 | struct resource *r) |
| 406 | { |
| 407 | dprintf("%s: entry\n", __func__); |
| 408 | |
| 409 | if (rman_get_flags(r) & RF_ACTIVE) { |
| 410 | int error = bus_deactivate_resource(child, type, rid, r); |
| 411 | if (error) |
| 412 | return error; |
| 413 | } |
| 414 | |
| 415 | return (rman_release_resource(r)); |
| 416 | } |
| 417 | |
| 418 | static int |
| 419 | nexus_activate_resource(device_t bus, device_t child, int type, int rid, |
nothing calls this directly
no test coverage detected