remove the use of uhci_reset to wake up the controller after

resume/suspend (->resume is broken again, will be fixed properly ASAP)

style fixes
This commit is contained in:
Nick Hibma 1999-10-07 18:56:10 +00:00
parent 271ef6615e
commit 82799545e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51989
2 changed files with 8 additions and 10 deletions

View file

@ -93,9 +93,7 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
static int
uhci_pci_suspend(device_t self)
{
uhci_softc_t *sc;
sc = device_get_softc(self);
uhci_softc_t *sc = device_get_softc(self);
bus_generic_suspend(self);
return 0;
@ -104,10 +102,11 @@ uhci_pci_suspend(device_t self)
static int
uhci_pci_resume(device_t self)
{
uhci_softc_t *sc;
uhci_softc_t *sc = device_get_softc(self);
sc = device_get_softc(self);
#if 0
uhci_reset(sc);
#endif
bus_generic_resume(self);
return 0;

View file

@ -93,9 +93,7 @@ static const char *uhci_device_generic = "UHCI (generic) USB controller";
static int
uhci_pci_suspend(device_t self)
{
uhci_softc_t *sc;
sc = device_get_softc(self);
uhci_softc_t *sc = device_get_softc(self);
bus_generic_suspend(self);
return 0;
@ -104,10 +102,11 @@ uhci_pci_suspend(device_t self)
static int
uhci_pci_resume(device_t self)
{
uhci_softc_t *sc;
uhci_softc_t *sc = device_get_softc(self);
sc = device_get_softc(self);
#if 0
uhci_reset(sc);
#endif
bus_generic_resume(self);
return 0;