Update of /cvsroot/alsa/alsa-kernel/isa/sb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22369

Modified Files:
        es968.c 
Log Message:
Fix against Dave's fix: put back the behaviour common to all ISA PnP modules

Index: es968.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/es968.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- es968.c     15 Mar 2004 19:36:11 -0000      1.23
+++ es968.c     15 Mar 2004 20:06:10 -0000      1.24
@@ -225,12 +225,14 @@
 
 static int __init alsa_card_es968_init(void)
 {
-       int res = pnp_register_card_driver(&es968_pnpc_driver);
+       int cards = pnp_register_card_driver(&es968_pnpc_driver);
 #ifdef MODULE
-       if (res == 0)
+       if (cards == 0) {
+               pnp_unregister_card_driver(&es968_pnpc_driver);
                snd_printk(KERN_ERR "no ES968 based soundcards found\n");
+       }
 #endif
-       return res < 0 ? res : 0;
+       return cards ? 0 : -ENODEV;
 }
 
 static void __exit alsa_card_es968_exit(void)



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to