Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH 06/10] ALSA: ca0106: Fix/cleanup ifdef CONFIG_PROC_FS
Date: Fri, 29 May 2015 08:06:07 +0200	[thread overview]
Message-ID: <1432879571-3359-7-git-send-email-tiwai@suse.de> (raw)
In-Reply-To: <1432879571-3359-1-git-send-email-tiwai@suse.de>

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      | 3 ++-
 sound/pci/ca0106/ca0106_main.c | 2 +-
 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 @@
-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
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,
 		goto error;
 	dev_dbg(card->dev, " done.\n");
 
-#ifdef CONFIG_PROC_FS
+#ifdef CONFIG_SND_PROC_FS
 	snd_ca0106_proc_init(chip);
 #endif
 
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 @@
 #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 */
-- 
2.4.2

  parent reply	other threads:[~2015-05-29  6:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29  6:06 [PATCH 00/10] Leftover CONFIG_PROC_FS fixes & cleanups Takashi Iwai
2015-05-29  6:06 ` [PATCH 01/10] ALSA: aloop: Drop unnecessary ifdef CONFIG_PROC_FS Takashi Iwai
2015-05-29  6:06 ` [PATCH 02/10] ALSA: dummy: Replace CONFIG_PROC_FS with CONFIG_SND_PROC_FS Takashi Iwai
2015-05-29  6:06 ` [PATCH 03/10] ALSA: opl4: Fix / cleanup ifdef CONFIG_PROC_FS Takashi Iwai
2015-05-29  6:06 ` [PATCH 04/10] ALSA: ak4xxx-adda: Drop unnecessary " Takashi Iwai
2015-05-29  6:06 ` [PATCH 05/10] ALSA: ac97: Fix " Takashi Iwai
2015-05-29  6:06 ` Takashi Iwai [this message]
2015-05-29  6:06 ` [PATCH 07/10] ALSA: cs46xx: Fix old " Takashi Iwai
2015-05-29  6:06 ` [PATCH 08/10] ALSA: emu10k1: Fix/cleanup " Takashi Iwai
2015-05-29  6:06 ` [PATCH 09/10] ALSA: emux: Fix/cleanup old " Takashi Iwai
2015-05-29  6:06 ` [PATCH 10/10] ALSA: pci: Drop superfluous " Takashi Iwai
2015-05-29  6:28 ` [PATCH 00/10] Leftover CONFIG_PROC_FS fixes & cleanups Jie, Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1432879571-3359-7-git-send-email-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox