]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/pci/atiixp_modem.c
ALSA: pci: Clean up with new procfs helpers
[linux.git] / sound / pci / atiixp_modem.c
index a357a8e2e73d7b0be92ec85409aa0e889b4e1a89..cece66bb3644e04af57918fd52b0c4b0878e1ef3 100644 (file)
@@ -1170,10 +1170,8 @@ static void snd_atiixp_proc_read(struct snd_info_entry *entry,
 
 static void snd_atiixp_proc_init(struct atiixp_modem *chip)
 {
-       struct snd_info_entry *entry;
-
-       if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry))
-               snd_info_set_text_ops(entry, chip, snd_atiixp_proc_read);
+       snd_card_ro_proc_new(chip->card, "atiixp-modem", chip,
+                            snd_atiixp_proc_read);
 }