X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Fusb%2Fcard.c;h=acb7faceafa689801893e1cd548937d552f19593;hp=566acb31958195c9b64b7670a6062c17dbfedf2d;hb=42c72c8c4efa25812f711c96b0f04f7a1091a2b9;hpb=25fd4d9121db99556a8c2bb0ba9ae93ac54c3a61 diff --git a/sound/usb/card.c b/sound/usb/card.c index 566acb319581..acb7faceafa6 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -611,7 +611,9 @@ int snd_usb_autoresume(struct snd_usb_audio *chip) int err = -ENODEV; down_read(&chip->shutdown_rwsem); - if (!chip->shutdown && !chip->probing) + if (chip->probing) + err = 0; + else if (!chip->shutdown) err = usb_autopm_get_interface(chip->pm_intf); up_read(&chip->shutdown_rwsem);