sb16.c (b05005772f34497eb2b7415a651fe785cbe70e16) | sb16.c (8278ca8feb2748cf02d756ac6c5b9ab2e047c84a) |
---|---|
1/* 2 * Driver for SoundBlaster 16/AWE32/AWE64 soundcards 3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 698 unchanged lines hidden (view full) --- 707 708static int __init alsa_card_sb16_init(void) 709{ 710 int i, err, cards = 0; 711 712 if ((err = platform_driver_register(&snd_sb16_nonpnp_driver)) < 0) 713 return err; 714 | 1/* 2 * Driver for SoundBlaster 16/AWE32/AWE64 soundcards 3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 698 unchanged lines hidden (view full) --- 707 708static int __init alsa_card_sb16_init(void) 709{ 710 int i, err, cards = 0; 711 712 if ((err = platform_driver_register(&snd_sb16_nonpnp_driver)) < 0) 713 return err; 714 |
715 for (i = 0; i < SNDRV_CARDS && enable[i]; i++) { | 715 for (i = 0; i < SNDRV_CARDS; i++) { |
716 struct platform_device *device; | 716 struct platform_device *device; |
717 if (is_isapnp_selected(i)) | 717 if (! enable[i] || is_isapnp_selected(i)) |
718 continue; 719 device = platform_device_register_simple(SND_SB16_DRIVER, 720 i, NULL, 0); 721 if (IS_ERR(device)) { 722 err = PTR_ERR(device); 723 goto errout; 724 } 725 platform_devices[i] = device; --- 37 unchanged lines hidden --- | 718 continue; 719 device = platform_device_register_simple(SND_SB16_DRIVER, 720 i, NULL, 0); 721 if (IS_ERR(device)) { 722 err = PTR_ERR(device); 723 goto errout; 724 } 725 platform_devices[i] = device; --- 37 unchanged lines hidden --- |