diff options
| author | Nick Hibma <n_hibma@FreeBSD.org> | 2000-02-04 10:18:37 +0000 |
|---|---|---|
| committer | Nick Hibma <n_hibma@FreeBSD.org> | 2000-02-04 10:18:37 +0000 |
| commit | b70b9ce01973dd1985f29cf7430118c3c2399f13 (patch) | |
| tree | 1e2d42315f2faf05db4a75572d1973dac5872e56 /sys/dev | |
| parent | b932a03c79a2fc9810712483bba0f5ae219730a3 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/uhci_pci.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/usb/uhci_pci.c b/sys/dev/usb/uhci_pci.c index d635b078db87b..0fbade090d2fd 100644 --- a/sys/dev/usb/uhci_pci.c +++ b/sys/dev/usb/uhci_pci.c @@ -93,8 +93,13 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller"; static int uhci_pci_suspend(device_t self) { + uhci_softc_t *sc = device_get_softc(self); + int err; - bus_generic_suspend(self); + err = bus_generic_suspend(self); + if (err) + return err; + uhci_power(PWR_SUSPEND, sc); return 0; } @@ -102,11 +107,9 @@ uhci_pci_suspend(device_t self) static int uhci_pci_resume(device_t self) { -#if 0 uhci_softc_t *sc = device_get_softc(self); - uhci_reset(sc); -#endif + uhci_power(PWR_RESUME, sc); bus_generic_resume(self); return 0; |
