| 209 | } |
| 210 | |
| 211 | static int |
| 212 | pmu_fdt_attach(device_t dev) |
| 213 | { |
| 214 | struct pmu_softc *sc; |
| 215 | int err; |
| 216 | |
| 217 | sc = device_get_softc(dev); |
| 218 | err = pmu_parse_intr(dev, sc); |
| 219 | if (err != 0) |
| 220 | return (err); |
| 221 | |
| 222 | return (pmu_attach(dev)); |
| 223 | } |
| 224 | |
| 225 | static device_method_t pmu_fdt_methods[] = { |
| 226 | DEVMETHOD(device_probe, pmu_fdt_probe), |
nothing calls this directly
no test coverage detected