aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/es1688
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/es1688')
-rw-r--r--sound/isa/es1688/es1688.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/isa/es1688/es1688.c b/sound/isa/es1688/es1688.c
index 50d23cf3d7cc..2b69fc829265 100644
--- a/sound/isa/es1688/es1688.c
+++ b/sound/isa/es1688/es1688.c
@@ -207,8 +207,10 @@ static int __init alsa_card_es1688_init(void)
207 return err; 207 return err;
208 208
209 cards = 0; 209 cards = 0;
210 for (i = 0; i < SNDRV_CARDS && enable[i]; i++) { 210 for (i = 0; i < SNDRV_CARDS; i++) {
211 struct platform_device *device; 211 struct platform_device *device;
212 if (! enable[i])
213 continue;
212 device = platform_device_register_simple(ES1688_DRIVER, 214 device = platform_device_register_simple(ES1688_DRIVER,
213 i, NULL, 0); 215 i, NULL, 0);
214 if (IS_ERR(device)) { 216 if (IS_ERR(device)) {