summaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl4/opl4_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-05-29 07:49:55 +0200
committerTakashi Iwai <tiwai@suse.de>2015-05-29 07:49:55 +0200
commitc43a55d5b1c51436730e2f769f1b90add800a6f1 (patch)
tree80b1ebf52552b68f932503f73997e615cd2b102c /sound/drivers/opl4/opl4_local.h
parent129a4c9f829d3e2113ce4f2c67cd431b48b2abb7 (diff)
downloadblackbird-op-linux-c43a55d5b1c51436730e2f769f1b90add800a6f1.tar.gz
blackbird-op-linux-c43a55d5b1c51436730e2f769f1b90add800a6f1.zip
ALSA: opl4: Fix / cleanup ifdef CONFIG_PROC_FS
Some are replaced with the new ifdef CONFIG_SND_PROC_FS. Some are removed by building opl4_proc.o conditionally. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl4/opl4_local.h')
-rw-r--r--sound/drivers/opl4/opl4_local.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/drivers/opl4/opl4_local.h b/sound/drivers/opl4/opl4_local.h
index 470e5a758a02..9a41bdebce6b 100644
--- a/sound/drivers/opl4/opl4_local.h
+++ b/sound/drivers/opl4/opl4_local.h
@@ -178,7 +178,7 @@ struct snd_opl4 {
spinlock_t reg_lock;
struct snd_card *card;
-#ifdef CONFIG_PROC_FS
+#ifdef CONFIG_SND_PROC_FS
struct snd_info_entry *proc_entry;
int memory_access;
#endif
@@ -207,10 +207,13 @@ void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, i
/* opl4_mixer.c */
int snd_opl4_create_mixer(struct snd_opl4 *opl4);
-#ifdef CONFIG_PROC_FS
+#ifdef CONFIG_SND_PROC_FS
/* opl4_proc.c */
int snd_opl4_create_proc(struct snd_opl4 *opl4);
void snd_opl4_free_proc(struct snd_opl4 *opl4);
+#else
+static inline int snd_opl4_create_proc(struct snd_opl4 *opl4) { return 0; }
+static inline void snd_opl4_free_proc(struct snd_opl4 *opl4) {}
#endif
/* opl4_seq.c */
OpenPOWER on IntegriCloud