mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
5d6147f101
commit
56244d0868
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user