Update of /cvsroot/alsa/alsa-kernel/pci/korg1212
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16582/pci/korg1212
Modified Files:
korg1212.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: korg1212.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/korg1212/korg1212.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- korg1212.c 7 Apr 2004 17:48:20 -0000 1.37
+++ korg1212.c 13 Apr 2004 14:59:02 -0000 1.38
@@ -2505,15 +2505,14 @@
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 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)
-------------------------------------------------------
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