diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-05-29 01:53:52 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-05-29 01:54:45 -0400 |
commit | 1c1784387a8aed1a3ea4686e24205f0383af17ba (patch) | |
tree | 2b110ce4152f0e4eb0462568c3229a001f3f44a2 /sound/pci | |
parent | f68ce629970356943f12d6321a591edb1f719e1a (diff) |
ALSA: ca0106: Fix/cleanup ifdef CONFIG_PROC_FS
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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/ca0106/Makefile | 3 | ||||
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 2 | ||||
-rw-r--r-- | sound/pci/ca0106/ca0106_proc.c | 4 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sound/pci/ca0106/Makefile b/sound/pci/ca0106/Makefile index dcbae7b31546..c1455fc5588c 100644 --- a/sound/pci/ca0106/Makefile +++ b/sound/pci/ca0106/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | snd-ca0106-objs := ca0106_main.o ca0106_proc.o ca0106_mixer.o ca_midi.o | 1 | snd-ca0106-objs := ca0106_main.o ca0106_mixer.o ca_midi.o |
2 | snd-ca0106-$(CONFIG_SND_PROC_FS) += ca0106_proc.o | ||
2 | 3 | ||
3 | obj-$(CONFIG_SND_CA0106) += snd-ca0106.o | 4 | obj-$(CONFIG_SND_CA0106) += snd-ca0106.o |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 0b31732eb4dc..d3cd95633ee2 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1885,7 +1885,7 @@ static int snd_ca0106_probe(struct pci_dev *pci, | |||
1885 | goto error; | 1885 | goto error; |
1886 | dev_dbg(card->dev, " done.\n"); | 1886 | dev_dbg(card->dev, " done.\n"); |
1887 | 1887 | ||
1888 | #ifdef CONFIG_PROC_FS | 1888 | #ifdef CONFIG_SND_PROC_FS |
1889 | snd_ca0106_proc_init(chip); | 1889 | snd_ca0106_proc_init(chip); |
1890 | #endif | 1890 | #endif |
1891 | 1891 | ||
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c index 2c5c28adbefd..9b2b8b38122f 100644 --- a/sound/pci/ca0106/ca0106_proc.c +++ b/sound/pci/ca0106/ca0106_proc.c | |||
@@ -75,8 +75,6 @@ | |||
75 | #include "ca0106.h" | 75 | #include "ca0106.h" |
76 | 76 | ||
77 | 77 | ||
78 | #ifdef CONFIG_PROC_FS | ||
79 | |||
80 | struct snd_ca0106_category_str { | 78 | struct snd_ca0106_category_str { |
81 | int val; | 79 | int val; |
82 | const char *name; | 80 | const char *name; |
@@ -453,5 +451,3 @@ int snd_ca0106_proc_init(struct snd_ca0106 *emu) | |||
453 | snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); | 451 | snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); |
454 | return 0; | 452 | return 0; |
455 | } | 453 | } |
456 | |||
457 | #endif /* CONFIG_PROC_FS */ | ||