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/intel8x0.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/intel8x0.c')
-rw-r--r-- | sound/pci/intel8x0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 5bbc8a047539..d3a4e5e8e044 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -2579,6 +2579,7 @@ static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip) | |||
2579 | printk(KERN_INFO "intel8x0: clocking to %d\n", chip->ac97_bus->clock); | 2579 | printk(KERN_INFO "intel8x0: clocking to %d\n", chip->ac97_bus->clock); |
2580 | } | 2580 | } |
2581 | 2581 | ||
2582 | #ifdef CONFIG_PROC_FS | ||
2582 | static void snd_intel8x0_proc_read(struct snd_info_entry * entry, | 2583 | static void snd_intel8x0_proc_read(struct snd_info_entry * entry, |
2583 | struct snd_info_buffer *buffer) | 2584 | struct snd_info_buffer *buffer) |
2584 | { | 2585 | { |
@@ -2612,6 +2613,9 @@ static void __devinit snd_intel8x0_proc_init(struct intel8x0 * chip) | |||
2612 | if (! snd_card_proc_new(chip->card, "intel8x0", &entry)) | 2613 | if (! snd_card_proc_new(chip->card, "intel8x0", &entry)) |
2613 | snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0_proc_read); | 2614 | snd_info_set_text_ops(entry, chip, 1024, snd_intel8x0_proc_read); |
2614 | } | 2615 | } |
2616 | #else | ||
2617 | #define snd_intel8x0_proc_init(x) | ||
2618 | #endif | ||
2615 | 2619 | ||
2616 | static int snd_intel8x0_dev_free(struct snd_device *device) | 2620 | static int snd_intel8x0_dev_free(struct snd_device *device) |
2617 | { | 2621 | { |