From: David Rientjes Date: Fri, 4 May 2007 07:35:54 +0000 (+0200) Subject: [ALSA] wavefront: only declare isapnp on CONFIG_PNP X-Git-Tag: v2.6.22-rc1~22^2~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2393144deac0903d944cbd578db49cf738811999;p=linux-2.6 [ALSA] wavefront: only declare isapnp on CONFIG_PNP From: David Rientjes isapnp[] is only used for CONFIG_PNP. If this configuration option is not set, do not declare the array. Cc: Adam Belay Cc: Takashi Iwai Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Jaroslav Kysela --- diff --git a/sound/isa/wavefront/wavefront.c b/sound/isa/wavefront/wavefront.c index ae2038e682..75673f7238 100644 --- a/sound/isa/wavefront/wavefront.c +++ b/sound/isa/wavefront/wavefront.c @@ -40,7 +40,9 @@ MODULE_SUPPORTED_DEVICE("{{Turtle Beach,Maui/Tropez/Tropez+}}"); static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ +#ifdef CONFIG_PNP static int isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; +#endif static long cs4232_pcm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ static int cs4232_pcm_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 5,7,9,11,12,15 */ static long cs4232_mpu_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */