ALSA: drivers: Clean up with new procfs helpers
[sfrench/cifs-2.6.git] / sound / drivers / vx / vx_core.c
index 19496fa486aa16126113300e4f601d8e7d273812..543945643a76604faddbb81cb18ef2c469271271 100644 (file)
@@ -643,10 +643,7 @@ static void vx_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *b
 
 static void vx_proc_init(struct vx_core *chip)
 {
-       struct snd_info_entry *entry;
-
-       if (! snd_card_proc_new(chip->card, "vx-status", &entry))
-               snd_info_set_text_ops(entry, chip, vx_proc_read);
+       snd_card_ro_proc_new(chip->card, "vx-status", chip, vx_proc_read);
 }