Merge "sound: usb: auto suspend device only if it supports remote wakeup"
This commit is contained in:
commit
8c1b054af9
1 changed files with 1 additions and 0 deletions
|
@ -643,6 +643,7 @@ static int usb_audio_probe(struct usb_interface *intf,
|
|||
usb_chip[chip->index] = chip;
|
||||
chip->num_interfaces++;
|
||||
usb_set_intfdata(intf, chip);
|
||||
intf->needs_remote_wakeup = 1;
|
||||
usb_enable_autosuspend(chip->dev);
|
||||
atomic_dec(&chip->active);
|
||||
mutex_unlock(®ister_mutex);
|
||||
|
|
Loading…
Add table
Reference in a new issue