]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/usb/mixer.c
ALSA: usb: Clean up with new procfs helpers
[linux.git] / sound / usb / mixer.c
index 8ad1a24c8f2867b438584f9d9be0e2580cdf4d1c..73d7dff425c1f80b1e2171c8f215d56ad9e101db 100644 (file)
@@ -3441,7 +3441,6 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
                .dev_free = snd_usb_mixer_dev_free
        };
        struct usb_mixer_interface *mixer;
-       struct snd_info_entry *entry;
        int err;
 
        strcpy(chip->card->mixername, "USB Mixer");
@@ -3497,9 +3496,9 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
        if (err < 0)
                goto _error;
 
-       if (list_empty(&chip->mixer_list) &&
-           !snd_card_proc_new(chip->card, "usbmixer", &entry))
-               snd_info_set_text_ops(entry, chip, snd_usb_mixer_proc_read);
+       if (list_empty(&chip->mixer_list))
+               snd_card_ro_proc_new(chip->card, "usbmixer", chip,
+                                    snd_usb_mixer_proc_read);
 
        list_add(&mixer->list, &chip->mixer_list);
        return 0;