Commit 2e59e6a6 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: fix bug

Delete the second pci_set_master(), not the first one.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 49727834
......@@ -174,6 +174,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
}
hcd->state = USB_STATE_HALT;
pci_set_master (dev);
#ifndef __sparc__
sprintf (buf, "%d", dev->irq);
#else
......@@ -422,7 +423,6 @@ int usb_hcd_pci_resume (struct pci_dev *dev)
return retval;
}
hcd->saw_irq = 0;
pci_set_master (dev);
pci_restore_state (dev);
#ifdef CONFIG_USB_SUSPEND
pci_enable_wake (dev, dev->current_state, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment