Skip to content
Snippets Groups Projects
Commit 82756b27 authored by Rene Herman's avatar Rene Herman Committed by Jaroslav Kysela
Browse files

[ALSA] ISA drivers bailing on first !enable[i]


Fix the wrong check of enable option in cmi8330 driver.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 43560116
No related branches found
No related tags found
No related merge requests found
...@@ -693,9 +693,9 @@ static int __init alsa_card_cmi8330_init(void) ...@@ -693,9 +693,9 @@ static int __init alsa_card_cmi8330_init(void)
if ((err = platform_driver_register(&snd_cmi8330_driver)) < 0) if ((err = platform_driver_register(&snd_cmi8330_driver)) < 0)
return err; return err;
for (i = 0; i < SNDRV_CARDS && enable[i]; i++) { for (i = 0; i < SNDRV_CARDS; i++) {
struct platform_device *device; struct platform_device *device;
if (is_isapnp_selected(i)) if (! enable[i] || is_isapnp_selected(i))
continue; continue;
device = platform_device_register_simple(CMI8330_DRIVER, device = platform_device_register_simple(CMI8330_DRIVER,
i, NULL, 0); i, NULL, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment