ALSA: i2c: Clean up with new procfs helpers
[sfrench/cifs-2.6.git] / sound / i2c / other / ak4114.c
index 7fb1aeb46915fa435c7d4934e22bca87f6a07cb3..76afb975782d5c7f0adedb59955ecb9d9c13917a 100644 (file)
@@ -465,9 +465,8 @@ static void snd_ak4114_proc_regs_read(struct snd_info_entry *entry,
 
 static void snd_ak4114_proc_init(struct ak4114 *ak4114)
 {
-       struct snd_info_entry *entry;
-       if (!snd_card_proc_new(ak4114->card, "ak4114", &entry))
-               snd_info_set_text_ops(entry, ak4114, snd_ak4114_proc_regs_read);
+       snd_card_ro_proc_new(ak4114->card, "ak4114", ak4114,
+                            snd_ak4114_proc_regs_read);
 }
 
 int snd_ak4114_build(struct ak4114 *ak4114,