Update of /cvsroot/alsa/alsa-kernel/Documentation/DocBook In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16582/Documentation/DocBook
Modified Files: writing-an-alsa-driver.tmpl Log Message: - 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. Index: writing-an-alsa-driver.tmpl =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/Documentation/DocBook/writing-an-alsa-driver.tmpl,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- writing-an-alsa-driver.tmpl 8 Apr 2004 16:34:59 -0000 1.26 +++ writing-an-alsa-driver.tmpl 13 Apr 2004 14:58:59 -0000 1.27 @@ -1341,16 +1341,7 @@ // initialization of the module static int __init alsa_card_mychip_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { - #ifdef MODULE - printk(KERN_ERR "My chip soundcard not found " - "or device busy\n"); - #endif - return err; - } - return 0; + return pci_module_init(&driver); } // clean up the module @@ -1767,16 +1758,7 @@ <![CDATA[ static int __init alsa_card_mychip_init(void) { - int err; - - if ((err = pci_module_init(&driver)) < 0) { - #ifdef MODULE - printk(KERN_ERR "My chip soundcard not found" - " or device busy\n"); - #endif - return err; - } - return 0; + return pci_module_init(&driver); } static void __exit alsa_card_mychip_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