aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-24 01:52:03 -0400
committerTakashi Iwai <tiwai@suse.de>2012-08-24 01:54:16 -0400
commit56244d0868f48f233d1735541e7da3fd33434b3d (patch)
tree25b51dd00274766735beeb715f38891ef2cfe590 /sound/isa
parent5d6147f10113c240845ea9e8e4e744bbadce5bcb (diff)
ALSA: cmi8328: Fix build error with CONFIG_GAMEPORT=n
sound/isa/cmi8328.c: In function 'snd_cmi8328_remove': sound/isa/cmi8328.c:416:24: error: 'cmi' undeclared (first use in this function) sound/isa/cmi8328.c:416:24: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [sound/isa/cmi8328.o] Error 1 Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/cmi8328.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c
index aefafff50756..bde60139bb95 100644
--- a/sound/isa/cmi8328.c
+++ b/sound/isa/cmi8328.c
@@ -404,8 +404,9 @@ error:
404static int __devexit snd_cmi8328_remove(struct device *pdev, unsigned int dev) 404static int __devexit snd_cmi8328_remove(struct device *pdev, unsigned int dev)
405{ 405{
406 struct snd_card *card = dev_get_drvdata(pdev); 406 struct snd_card *card = dev_get_drvdata(pdev);
407#ifdef SUPPORT_JOYSTICK
408 struct snd_cmi8328 *cmi = card->private_data; 407 struct snd_cmi8328 *cmi = card->private_data;
408
409#ifdef SUPPORT_JOYSTICK
409 if (cmi->gameport) { 410 if (cmi->gameport) {
410 struct resource *res = gameport_get_port_data(cmi->gameport); 411 struct resource *res = gameport_get_port_data(cmi->gameport);
411 gameport_unregister_port(cmi->gameport); 412 gameport_unregister_port(cmi->gameport);