static int bhndb_pci_resume(device_t dev) { struct bhndb_pci_softc *sc; int error; sc = device_get_softc(dev); /* Enable clocks (if supported by this hardware) */ if ((error = bhndb_enable_pci_clocks(sc->dev))) return (error); /* Perform resume */ return (bhndb_generic_resume(dev)); }
static int bhndb_pci_resume(device_t dev) { struct bhndb_pci_softc *sc; int error; sc = device_get_softc(dev); /* Apply any resume workarounds; these may be required for bridged * device access, and thus must be called *before* any children are * resumed. */ if ((error = bhndb_pci_wars_hwresume(sc))) return (error); if ((error = bhndb_generic_resume(dev))) return (error); return (0); }