diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/cmi8328.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c index aefafff..bde6013 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); |