Update of /cvsroot/alsa/alsa-kernel/pci/rme9652
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16582/pci/rme9652

Modified Files:
        hdsp.c rme9652.c 
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: hdsp.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- hdsp.c      7 Apr 2004 17:48:20 -0000       1.55
+++ hdsp.c      13 Apr 2004 14:59:02 -0000      1.56
@@ -5199,14 +5199,7 @@
 
 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)

Index: rme9652.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/rme9652.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- rme9652.c   7 Apr 2004 17:48:21 -0000       1.43
+++ rme9652.c   13 Apr 2004 14:59:17 -0000      1.44
@@ -2749,14 +2749,7 @@
 
 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)



-------------------------------------------------------
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