diff options
Diffstat (limited to 'sound/isa/ad1848/ad1848.c')
-rw-r--r-- | sound/isa/ad1848/ad1848.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/isa/ad1848/ad1848.c b/sound/isa/ad1848/ad1848.c index e091bbeffd2a..326a057f752f 100644 --- a/sound/isa/ad1848/ad1848.c +++ b/sound/isa/ad1848/ad1848.c | |||
@@ -187,8 +187,10 @@ static int __init alsa_card_ad1848_init(void) | |||
187 | return err; | 187 | return err; |
188 | 188 | ||
189 | cards = 0; | 189 | cards = 0; |
190 | for (i = 0; i < SNDRV_CARDS && enable[i]; i++) { | 190 | for (i = 0; i < SNDRV_CARDS; i++) { |
191 | struct platform_device *device; | 191 | struct platform_device *device; |
192 | if (! enable[i]) | ||
193 | continue; | ||
192 | device = platform_device_register_simple(SND_AD1848_DRIVER, | 194 | device = platform_device_register_simple(SND_AD1848_DRIVER, |
193 | i, NULL, 0); | 195 | i, NULL, 0); |
194 | if (IS_ERR(device)) { | 196 | if (IS_ERR(device)) { |