From: Takashi Iwai Date: Fri, 24 Aug 2012 05:52:03 +0000 (+0200) Subject: ALSA: cmi8328: Fix build error with CONFIG_GAMEPORT=n X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=56244d0868f48f233d1735541e7da3fd33434b3d;p=linux-beck.git 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 Signed-off-by: Takashi Iwai --- 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: static int __devexit snd_cmi8328_remove(struct device *pdev, unsigned int dev) { struct snd_card *card = dev_get_drvdata(pdev); -#ifdef SUPPORT_JOYSTICK struct snd_cmi8328 *cmi = card->private_data; + +#ifdef SUPPORT_JOYSTICK if (cmi->gameport) { struct resource *res = gameport_get_port_data(cmi->gameport); gameport_unregister_port(cmi->gameport);