From: Rene Herman Date: Mon, 27 Mar 2006 11:50:11 +0000 (+0200) Subject: [ALSA] ISA drivers bailing on first !enable[i] X-Git-Tag: v2.6.17-rc1~6^2~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82756b2785c5f08204e7f3dab64e12d4533bfe89;p=linux-2.6 [ALSA] ISA drivers bailing on first !enable[i] Fix the wrong check of enable option in cmi8330 driver. Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index fa63048a8b..bc0f5ebf5d 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c @@ -693,9 +693,9 @@ static int __init alsa_card_cmi8330_init(void) if ((err = platform_driver_register(&snd_cmi8330_driver)) < 0) return err; - for (i = 0; i < SNDRV_CARDS && enable[i]; i++) { + for (i = 0; i < SNDRV_CARDS; i++) { struct platform_device *device; - if (is_isapnp_selected(i)) + if (! enable[i] || is_isapnp_selected(i)) continue; device = platform_device_register_simple(CMI8330_DRIVER, i, NULL, 0);