]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/pci/rme32.c
ALSA: pci: Clean up with new procfs helpers
[thirdparty/kernel/stable.git] / sound / pci / rme32.c
index 3ac8c71d567c8758070cb3d8f8734335ad75180b..c6bcc07157166a874642a6e494b7b22940b2d87b 100644 (file)
@@ -1568,10 +1568,7 @@ snd_rme32_proc_read(struct snd_info_entry * entry, struct snd_info_buffer *buffe
 
 static void snd_rme32_proc_init(struct rme32 *rme32)
 {
-       struct snd_info_entry *entry;
-
-       if (! snd_card_proc_new(rme32->card, "rme32", &entry))
-               snd_info_set_text_ops(entry, rme32, snd_rme32_proc_read);
+       snd_card_ro_proc_new(rme32->card, "rme32", rme32, snd_rme32_proc_read);
 }
 
 /*