Skip to content

Commit

Permalink
[ALSA] ISA drivers bailing on first !enable[i]
Browse files Browse the repository at this point in the history
Fix the wrong check of enable option in cmi8330 driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Rene Herman authored and Jaroslav Kysela committed Mar 31, 2006
1 parent 4356011 commit 82756b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/isa/cmi8330.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 82756b2

Please sign in to comment.