From 0613b6f9c4c11d840727ff4cc45f6e3ed065adbf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 5 Jun 2005 22:53:09 +0000 Subject: Power state management now done in PCI bus code --- sys/dev/usb/ohci_pci.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/ohci_pci.c b/sys/dev/usb/ohci_pci.c index ba9393abbdf29..e07c3acd50803 100644 --- a/sys/dev/usb/ohci_pci.c +++ b/sys/dev/usb/ohci_pci.c @@ -144,17 +144,6 @@ static int ohci_pci_resume(device_t self) { ohci_softc_t *sc = device_get_softc(self); - u_int32_t reg, int_line; - - if (pci_get_powerstate(self) != PCI_POWERSTATE_D0) { - device_printf(self, "chip is in D%d mode " - "-- setting to D0\n", pci_get_powerstate(self)); - reg = pci_read_config(self, PCI_CBMEM, 4); - int_line = pci_read_config(self, PCIR_INTLINE, 4); - pci_set_powerstate(self, PCI_POWERSTATE_D0); - pci_write_config(self, PCI_CBMEM, reg, 4); - pci_write_config(self, PCIR_INTLINE, int_line, 4); - } ohci_power(PWR_RESUME, sc); bus_generic_resume(self); -- cgit v1.3