]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/pci/ice1712/prodigy192.c
ALSA: pci: Clean up with new procfs helpers
[thirdparty/kernel/stable.git] / sound / pci / ice1712 / prodigy192.c
index 3919aed39ca03ab3005e0bfec8ffd2e65f20a147..d243309029d34159e0825af083943bbb03be8f8c 100644 (file)
@@ -651,9 +651,8 @@ static void stac9460_proc_regs_read(struct snd_info_entry *entry,
 
 static void stac9460_proc_init(struct snd_ice1712 *ice)
 {
-       struct snd_info_entry *entry;
-       if (!snd_card_proc_new(ice->card, "stac9460_codec", &entry))
-               snd_info_set_text_ops(entry, ice, stac9460_proc_regs_read);
+       snd_card_ro_proc_new(ice->card, "stac9460_codec", ice,
+                            stac9460_proc_regs_read);
 }