| 255 | } |
| 256 | |
| 257 | static int |
| 258 | nexus_release_resource(device_t bus, device_t child, int type, int rid, |
| 259 | struct resource *res) |
| 260 | { |
| 261 | int error; |
| 262 | |
| 263 | if (rman_get_flags(res) & RF_ACTIVE) { |
| 264 | error = bus_deactivate_resource(child, type, rid, res); |
| 265 | if (error) |
| 266 | return (error); |
| 267 | } |
| 268 | return (rman_release_resource(res)); |
| 269 | } |
| 270 | |
| 271 | static bus_space_tag_t |
| 272 | nexus_get_bus_tag(device_t bus __unused, device_t child __unused) |
nothing calls this directly
no test coverage detected