ALSA: cmi8330: fix MPU-401 PnP init copy&paste bug
authorOndrej Zary <linux@rainbow-software.org>
Sat, 27 Jun 2009 14:17:08 +0000 (16:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Jun 2009 06:06:10 +0000 (08:06 +0200)
Fix copy&paste bug in PnP MPU-401 initialization.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/cmi8330.c

index de83608719ea23138a793e2c557444add2f4001e..3ee0269e5bd08376fa47bf94731459b9ac4e0d03 100644 (file)
@@ -338,7 +338,7 @@ static int __devinit snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard,
                return -EBUSY;
 
        acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL);
-       if (acard->play == NULL)
+       if (acard->mpu == NULL)
                return -EBUSY;
 
        pdev = acard->cap;