diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-12-01 04:49:58 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:08 -0500 |
commit | adf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8 (patch) | |
tree | e520ddca1f0cd5e9bb9afd14f3f226e2b1596e9a /sound/pci/atiixp_modem.c | |
parent | 8cb7b63f5baf7b5e788f0d632d5ebd018856416f (diff) |
[ALSA] Optimize for config without PROC_FS (pci drivers)
Optimize the code when compiled without CONFIG_PROC_FS for some pci drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/atiixp_modem.c')
-rw-r--r-- | sound/pci/atiixp_modem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 73f1f2b1a355..8d8fd5a4ed35 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -1156,6 +1156,7 @@ static int snd_atiixp_resume(struct pci_dev *pci) | |||
1156 | #endif /* CONFIG_PM */ | 1156 | #endif /* CONFIG_PM */ |
1157 | 1157 | ||
1158 | 1158 | ||
1159 | #ifdef CONFIG_PROC_FS | ||
1159 | /* | 1160 | /* |
1160 | * proc interface for register dump | 1161 | * proc interface for register dump |
1161 | */ | 1162 | */ |
@@ -1177,7 +1178,9 @@ static void __devinit snd_atiixp_proc_init(struct atiixp_modem *chip) | |||
1177 | if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry)) | 1178 | if (! snd_card_proc_new(chip->card, "atiixp-modem", &entry)) |
1178 | snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read); | 1179 | snd_info_set_text_ops(entry, chip, 1024, snd_atiixp_proc_read); |
1179 | } | 1180 | } |
1180 | 1181 | #else | |
1182 | #define snd_atiixp_proc_init(chip) | ||
1183 | #endif | ||
1181 | 1184 | ||
1182 | 1185 | ||
1183 | /* | 1186 | /* |