Skip to content

Commit

Permalink
ALSA: cmi8328: Fix build error with CONFIG_GAMEPORT=n
Browse files Browse the repository at this point in the history
  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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Aug 24, 2012
1 parent 5d6147f commit 56244d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/isa/cmi8328.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ static int __devinit snd_cmi8328_probe(struct device *pdev, unsigned int ndev)
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);
Expand Down

0 comments on commit 56244d0

Please sign in to comment.