diff options
author | Jaroslav Kysela <perex@suse.cz> | 2004-04-24 19:50:42 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2004-04-24 19:50:42 +0200 |
commit | 17ef74c1d3b650bd172c002da46dd227fcb0b5e1 (patch) | |
tree | d3f2f7d168532b8c9e9b942e62e1a2dbd70087aa /sound | |
parent | 5f0eb55a7a3022942a27bfcbc65d6e015854c766 (diff) | |
download | history-17ef74c1d3b650bd172c002da46dd227fcb0b5e1.tar.gz |
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
Documentation,ALS4000 driver,ATIIXP driver,AZT3328 driver,BT87x driver
CMIPCI driver,CS4281 driver,ENS1370/1+ driver,ES1938 driver
ES1968 driver,FM801 driver,Intel8x0 driver,Intel8x0-modem driver
Maestro3 driver,RME32 driver,RME96 driver,SonicVibes driver
VIA82xx driver,ALI5451 driver,au88x0 driver,CS46xx driver
EMU10K1/EMU10K2 driver,ICE1712 driver,ICE1724 driver,KORG1212 driver
MIXART driver,NM256 driver,RME HDSP driver,RME9652 driver
Trident driver,Digigram VX222 driver,YMFPCI driver
- removed superfluous warning messages after pci_module_init().
(2.6 kernel doesn't return the error anyway...)
- store card pointer in pci_drvdata instead of chip pointer.
this would make easier to add PM support.
Diffstat (limited to 'sound')
31 files changed, 46 insertions, 308 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index 7b47e3cc0905f0..bc4db989f18f2e 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c @@ -2275,15 +2275,7 @@ static struct pci_driver driver = { static int __init alsa_card_ali_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ALi pci audio not found or device busy.\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_ali_exit(void) diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 4b203ac3b94986..73b1d3a081c103 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c @@ -756,15 +756,7 @@ static struct pci_driver driver = { static int __init alsa_card_als4000_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "no ALS4000 based soundcards found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_als4000_exit(void) diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 8bfc32ecdcd187..14af96844301f2 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c @@ -1562,16 +1562,7 @@ static struct pci_driver driver = { static int __init alsa_card_atiixp_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ATI IXP AC97 controller not found or device busy\n"); -#endif - return err; - } - - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_atiixp_exit(void) diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index e05e4dbe711aaa..fe2377fdbf560c 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c @@ -353,7 +353,7 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) return err; } // (7) - pci_set_drvdata(pci, chip); + pci_set_drvdata(pci, card); dev++; vortex_connect_default(chip, 1); vortex_enable_int(chip); @@ -363,16 +363,8 @@ snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) // destructor -- see "Destructor" sub-section static void __devexit snd_vortex_remove(struct pci_dev *pci) { - vortex_t *vortex = snd_magic_cast(vortex_t, - pci_get_drvdata(pci), return); - - if (vortex) { - // Release ALSA stuff. - snd_card_free(vortex->card); - // Free Vortex struct. - pci_set_drvdata(pci, NULL); - } else - printk("snd_vortex_remove called more than one time!\n"); + snd_card_free(pci_get_drvdata(pci)); + pci_set_drvdata(pci, NULL); } // pci_driver definition @@ -386,16 +378,7 @@ static struct pci_driver driver = { // initialization of the module static int __init alsa_card_vortex_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Aureal soundcard not found " - "or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } // clean up the module diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index d2faffd624c6ab..9dc7de84dc353c 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c @@ -1268,6 +1268,10 @@ static int snd_azf3328_free(azf3328_t *chip) if (chip->irq < 0) goto __end_hw; + /* reset (close) mixer */ + snd_azf3328_mixer_set_mute(chip, IDX_MIXER_PLAY_MASTER, 1); /* first mute master volume */ + snd_azf3328_mixer_write(chip, IDX_MIXER_RESET, 0x0, WORD_VALUE); + /* interrupt setup - mask everything */ /* FIXME */ @@ -1541,7 +1545,7 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci, snd_azf3328_config_joystick(chip, joystick[dev]); #endif - pci_set_drvdata(pci, chip); + pci_set_drvdata(pci, card); dev++; snd_azf3328_dbgcallleave(); @@ -1550,16 +1554,8 @@ static int __devinit snd_azf3328_probe(struct pci_dev *pci, static void __devexit snd_azf3328_remove(struct pci_dev *pci) { - azf3328_t *chip = snd_magic_cast(azf3328_t, pci_get_drvdata(pci), return); - snd_azf3328_dbgcallenter(); - - /* reset (close) mixer */ - snd_azf3328_mixer_set_mute(chip, IDX_MIXER_PLAY_MASTER, 1); /* first mute master volume */ - snd_azf3328_mixer_write(chip, IDX_MIXER_RESET, 0x0, WORD_VALUE); - - if (chip) - snd_card_free(chip->card); + snd_card_free(pci_get_drvdata(pci)); pci_set_drvdata(pci, NULL); snd_azf3328_dbgcallleave(); } @@ -1574,18 +1570,10 @@ static struct pci_driver driver = { static int __init alsa_card_azf3328_init(void) { int err; - snd_azf3328_dbgcallenter(); - - if ((err = pci_module_init(&driver)) < 0) - { -#ifdef MODULE - printk(KERN_ERR "azt3328: no AZF3328 based soundcards found or device busy\n"); -#endif - return err; - } + err = pci_module_init(&driver); snd_azf3328_dbgcallleave(); - return 0; + return err; } static void __exit alsa_card_azf3328_exit(void) diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index cc50779592f291..3c232660fd406f 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c @@ -809,7 +809,7 @@ static int __devinit snd_bt87x_probe(struct pci_dev *pci, if (err < 0) goto _error; - pci_set_drvdata(pci, chip); + pci_set_drvdata(pci, card); ++dev; return 0; @@ -820,9 +820,7 @@ _error: static void __devexit snd_bt87x_remove(struct pci_dev *pci) { - bt87x_t *chip = snd_magic_cast(bt87x_t, pci_get_drvdata(pci), return); - if (chip) - snd_card_free(chip->card); + snd_card_free(pci_get_drvdata(pci)); pci_set_drvdata(pci, NULL); } @@ -852,16 +850,7 @@ static struct pci_driver driver = { static int __init alsa_card_bt87x_init(void) { - int err; - - err = pci_module_init(&driver); - if (err < 0) { -#ifdef MODULE - printk(KERN_ERR "Bt87x soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_bt87x_exit(void) diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 994963ab02815f..112014701e083b 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c @@ -3265,15 +3265,7 @@ static struct pci_driver driver = { static int __init alsa_card_cmipci_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "C-Media PCI soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_cmipci_exit(void) diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index 23bd6e9735f26e..623af1bc2a4f30 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c @@ -2121,15 +2121,7 @@ static struct pci_driver driver = { static int __init alsa_card_cs4281_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "CS4281 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_cs4281_exit(void) diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 2f663f792acd12..8b63705c4dd105 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c @@ -179,15 +179,7 @@ static struct pci_driver driver = { static int __init alsa_card_cs46xx_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Sound Fusion CS46xx soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_cs46xx_exit(void) diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index b9b40d118f8ea2..552bdee3148f19 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c @@ -212,15 +212,7 @@ static struct pci_driver driver = { static int __init alsa_card_emu10k1_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "EMU10K1/Audigy soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_emu10k1_exit(void) diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index 75ee6f7e440168..43e23d10c37124 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c @@ -2372,15 +2372,7 @@ static struct pci_driver driver = { static int __init alsa_card_ens137x_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Ensoniq AudioPCI soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_ens137x_exit(void) diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index e7ca9a0168926b..7924508aca3815 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c @@ -1701,15 +1701,7 @@ static struct pci_driver driver = { static int __init alsa_card_es1938_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ESS Solo-1 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_es1938_exit(void) diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 0d00d6e6eab242..76ab856412ba57 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c @@ -2743,22 +2743,11 @@ static struct pci_driver driver = { static int __init alsa_card_es1968_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ESS Maestro soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_es1968_exit(void) { -#if 0 // do we really need this? - unregister_reboot_notifier(&snd_es1968_nb); -#endif pci_unregister_driver(&driver); } diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 1e9df519662a02..f21a17dda09408 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c @@ -1483,15 +1483,7 @@ static struct pci_driver driver = { static int __init alsa_card_fm801_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ForteMedia FM801 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_fm801_exit(void) diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index c24bbd7a52b317..8044e700fbfd01 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c @@ -2660,15 +2660,7 @@ static struct pci_driver driver = { static int __init alsa_card_ice1712_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ICE1712 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_ice1712_exit(void) diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 9d2475534c59d3..878f4424e46374 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -2142,15 +2142,7 @@ static struct pci_driver driver = { static int __init alsa_card_ice1724_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "ICE1724 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_ice1724_exit(void) diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 782948dae72908..7a50c1826b7c25 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c @@ -2779,12 +2779,9 @@ static int __init alsa_card_intel8x0_init(void) { int err; - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Intel ICH soundcard not found or device busy\n"); -#endif + if ((err = pci_module_init(&driver)) < 0) return err; - } + #if defined(SUPPORT_JOYSTICK) || defined(SUPPORT_MIDI) if (pci_module_init(&joystick_driver) < 0) { snd_printdd(KERN_INFO "no joystick found\n"); diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index 3cb992bfe1a9d7..668335cd222a33 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c @@ -1409,16 +1409,7 @@ static struct pci_driver driver = { static int __init alsa_card_intel8x0m_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Intel ICH modemcard not found or device busy\n"); -#endif - return err; - } - - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_intel8x0m_exit(void) diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 47ba5384e2ca38..c2fc6e33914700 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c @@ -2505,15 +2505,14 @@ snd_korg1212_probe(struct pci_dev *pci, snd_card_free(card); return err; } - pci_set_drvdata(pci, korg1212); + pci_set_drvdata(pci, card); dev++; return 0; } static void __devexit snd_korg1212_remove(struct pci_dev *pci) { - korg1212_t *korg1212 = pci_get_drvdata(pci); - snd_card_free(korg1212->card); + snd_card_free(pci_get_drvdata(pci)); pci_set_drvdata(pci, NULL); } @@ -2526,15 +2525,7 @@ static struct pci_driver driver = { static int __init alsa_card_korg1212_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "No Korg 1212IO cards found\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_korg1212_exit(void) diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 209722aace2537..37a6fa76cdf01d 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c @@ -2721,15 +2721,7 @@ static struct pci_driver driver = { static int __init alsa_card_m3_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Maestro3/Allegro soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_m3_exit(void) diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 3fd2849abe221e..4b1a5b20f919ee 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c @@ -1433,15 +1433,7 @@ static struct pci_driver driver = { static int __init alsa_card_mixart_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - snd_printk(KERN_ERR "Digigram miXart soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_mixart_exit(void) diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 5cef1fabfcf6ed..4c03c5cbf5a59d 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c @@ -1624,14 +1624,7 @@ static struct pci_driver driver = { static int __init alsa_card_nm256_init(void) { - int err; - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "NeoMagic 256 audio soundchip not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_nm256_exit(void) diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 6d9a18fca374ee..1d19e7e08f3815 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c @@ -1996,15 +1996,7 @@ static struct pci_driver driver = { static int __init alsa_card_rme32_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - snd_printk("No RME Digi32 cards found\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_rme32_exit(void) diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index fce2dca828d753..cf1776b087009d 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c @@ -2566,15 +2566,7 @@ static struct pci_driver driver = { static int __init alsa_card_rme96_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "No RME Digi96 cards found\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_rme96_exit(void) diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 812e15e5237119..3bd22b52027a0f 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c @@ -5199,14 +5199,7 @@ static struct pci_driver driver = { static int __init alsa_card_hdsp_init(void) { - if (pci_module_init(&driver) < 0) { -#ifdef MODULE - printk(KERN_ERR "RME Hammerfall-DSP: no cards found\n"); -#endif - return -ENODEV; - } - - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_hdsp_exit(void) diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index fd380092535bb5..9a52693fd4a4d3 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c @@ -2749,14 +2749,7 @@ static struct pci_driver driver = { static int __init alsa_card_hammerfall_init(void) { - if (pci_module_init(&driver) < 0) { -#ifdef MODULE - printk(KERN_ERR "RME Digi9652/Digi9636: no cards found\n"); -#endif - return -ENODEV; - } - - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_hammerfall_exit(void) diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 06a4ecc33c2967..5f9475d2abdbbf 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c @@ -1536,15 +1536,7 @@ static struct pci_driver driver = { static int __init alsa_card_sonicvibes_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "S3 SonicVibes soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_sonicvibes_exit(void) diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index d96706f6fa5384..eb3a882ddef99e 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c @@ -191,15 +191,7 @@ static struct pci_driver driver = { static int __init alsa_card_trident_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Trident 4DWave PCI soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_trident_exit(void) diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index bee51256dcdcef..69560ca0013a82 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c @@ -2190,15 +2190,7 @@ static struct pci_driver driver = { static int __init alsa_card_via82xx_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "VIA 82xx soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_via82xx_exit(void) diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index 3940c1a45daa9d..9f4ef46f7afdd3 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c @@ -273,15 +273,7 @@ static struct pci_driver driver = { static int __init alsa_card_vx222_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Digigram VX222 soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_vx222_exit(void) diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 442a6fd050402f..8fbfc24b4a4c65 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c @@ -333,15 +333,7 @@ static struct pci_driver driver = { static int __init alsa_card_ymfpci_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { -#ifdef MODULE - printk(KERN_ERR "Yamaha DS-XG PCI soundcard not found or device busy\n"); -#endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_ymfpci_exit(void) |