diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c index aefafff5075615129ea43cbeb291712cc139ed7a..bde60139bb95e0ff49348bec3f869242e3c591e3 100644 --- a/sound/isa/cmi8328.c +++ b/sound/isa/cmi8328.c @@ -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);