ALSA: usb-audio: Replace probing flag with active refcount

We can use active refcount for preventing autopm during probe.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2015-08-26 10:20:59 +02:00
parent 47ab154593
commit a6da499b76
2 changed files with 4 additions and 9 deletions

View File

@@ -37,7 +37,6 @@ struct snd_usb_audio {
struct usb_interface *pm_intf;
u32 usb_id;
struct mutex mutex;
unsigned int probing:1;
unsigned int autosuspended:1;
atomic_t active;
atomic_t shutdown;