ALSA: ca0106: Fix/cleanup ifdef CONFIG_PROC_FS
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 05:53:52 +0000 (07:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 May 2015 05:54:45 +0000 (07:54 +0200)
Build ca0106_proc.o conditionally to drop unneeded ifdef.
Some are replaced with the new CONFIG_SND_PROC_FS.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ca0106/Makefile
sound/pci/ca0106/ca0106_main.c
sound/pci/ca0106/ca0106_proc.c

index dcbae7b31546105c1d37d53ccb45c42d0e2a8d4f..c1455fc5588cd22bfde5d2ae2638953e8923fe74 100644 (file)
@@ -1,3 +1,4 @@
-snd-ca0106-objs := ca0106_main.o ca0106_proc.o ca0106_mixer.o ca_midi.o
+snd-ca0106-objs := ca0106_main.o ca0106_mixer.o ca_midi.o
+snd-ca0106-$(CONFIG_SND_PROC_FS) += ca0106_proc.o
 
 obj-$(CONFIG_SND_CA0106) += snd-ca0106.o
index 0b31732eb4dc8eba20b0303d518d85f5f01a0bc4..d3cd95633ee2ca6d7bb0475ef01f9c2c6e27fba8 100644 (file)
@@ -1885,7 +1885,7 @@ static int snd_ca0106_probe(struct pci_dev *pci,
                goto error;
        dev_dbg(card->dev, " done.\n");
 
-#ifdef CONFIG_PROC_FS
+#ifdef CONFIG_SND_PROC_FS
        snd_ca0106_proc_init(chip);
 #endif
 
index 2c5c28adbefd03175375048c13a9b809ec70862c..9b2b8b38122f5e476683a3c24bd077ac68c84ce4 100644 (file)
@@ -75,8 +75,6 @@
 #include "ca0106.h"
 
 
-#ifdef CONFIG_PROC_FS
-
 struct snd_ca0106_category_str {
        int val;
        const char *name;
@@ -453,5 +451,3 @@ int snd_ca0106_proc_init(struct snd_ca0106 *emu)
                snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2);
        return 0;
 }
-
-#endif /* CONFIG_PROC_FS */