]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/pci/ymfpci/ymfpci_main.c
ALSA: pci: Clean up with new procfs helpers
[thirdparty/kernel/stable.git] / sound / pci / ymfpci / ymfpci_main.c
index c688b7f481da9a4d205a25069126ce52ab06a44b..4d48877f211f218aed59df25b914f76e93f92f09 100644 (file)
@@ -1985,11 +1985,7 @@ static void snd_ymfpci_proc_read(struct snd_info_entry *entry,
 
 static int snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip)
 {
-       struct snd_info_entry *entry;
-       
-       if (! snd_card_proc_new(card, "ymfpci", &entry))
-               snd_info_set_text_ops(entry, chip, snd_ymfpci_proc_read);
-       return 0;
+       return snd_card_ro_proc_new(card, "ymfpci", chip, snd_ymfpci_proc_read);
 }
 
 /*