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/cs46xx/cs46xx_lib.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/cs46xx/cs46xx_lib.c')
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 0ec0592a6e6f..8fb275d6eb77 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -2747,6 +2747,7 @@ int __devinit snd_cs46xx_gameport(struct snd_cs46xx *chip) { return -ENOSYS; } | |||
2747 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } | 2747 | static inline void snd_cs46xx_remove_gameport(struct snd_cs46xx *chip) { } |
2748 | #endif /* CONFIG_GAMEPORT */ | 2748 | #endif /* CONFIG_GAMEPORT */ |
2749 | 2749 | ||
2750 | #ifdef CONFIG_PROC_FS | ||
2750 | /* | 2751 | /* |
2751 | * proc interface | 2752 | * proc interface |
2752 | */ | 2753 | */ |
@@ -2800,6 +2801,10 @@ static int snd_cs46xx_proc_done(struct snd_cs46xx *chip) | |||
2800 | #endif | 2801 | #endif |
2801 | return 0; | 2802 | return 0; |
2802 | } | 2803 | } |
2804 | #else /* !CONFIG_PROC_FS */ | ||
2805 | #define snd_cs46xx_proc_init(card, chip) | ||
2806 | #define snd_cs46xx_proc_done(chip) | ||
2807 | #endif | ||
2803 | 2808 | ||
2804 | /* | 2809 | /* |
2805 | * stop the h/w | 2810 | * stop the h/w |