diff options
Diffstat (limited to 'sound/pci/maestro3.c')
-rw-r--r-- | sound/pci/maestro3.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 39b5e7db1543..2693b6f731f3 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -872,35 +872,6 @@ struct snd_m3 { | |||
872 | /* | 872 | /* |
873 | * pci ids | 873 | * pci ids |
874 | */ | 874 | */ |
875 | |||
876 | #ifndef PCI_VENDOR_ID_ESS | ||
877 | #define PCI_VENDOR_ID_ESS 0x125D | ||
878 | #endif | ||
879 | #ifndef PCI_DEVICE_ID_ESS_ALLEGRO_1 | ||
880 | #define PCI_DEVICE_ID_ESS_ALLEGRO_1 0x1988 | ||
881 | #endif | ||
882 | #ifndef PCI_DEVICE_ID_ESS_ALLEGRO | ||
883 | #define PCI_DEVICE_ID_ESS_ALLEGRO 0x1989 | ||
884 | #endif | ||
885 | #ifndef PCI_DEVICE_ID_ESS_CANYON3D_2LE | ||
886 | #define PCI_DEVICE_ID_ESS_CANYON3D_2LE 0x1990 | ||
887 | #endif | ||
888 | #ifndef PCI_DEVICE_ID_ESS_CANYON3D_2 | ||
889 | #define PCI_DEVICE_ID_ESS_CANYON3D_2 0x1992 | ||
890 | #endif | ||
891 | #ifndef PCI_DEVICE_ID_ESS_MAESTRO3 | ||
892 | #define PCI_DEVICE_ID_ESS_MAESTRO3 0x1998 | ||
893 | #endif | ||
894 | #ifndef PCI_DEVICE_ID_ESS_MAESTRO3_1 | ||
895 | #define PCI_DEVICE_ID_ESS_MAESTRO3_1 0x1999 | ||
896 | #endif | ||
897 | #ifndef PCI_DEVICE_ID_ESS_MAESTRO3_HW | ||
898 | #define PCI_DEVICE_ID_ESS_MAESTRO3_HW 0x199a | ||
899 | #endif | ||
900 | #ifndef PCI_DEVICE_ID_ESS_MAESTRO3_2 | ||
901 | #define PCI_DEVICE_ID_ESS_MAESTRO3_2 0x199b | ||
902 | #endif | ||
903 | |||
904 | static struct pci_device_id snd_m3_ids[] = { | 875 | static struct pci_device_id snd_m3_ids[] = { |
905 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID, | 876 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID, |
906 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, | 877 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, |
@@ -2689,7 +2660,7 @@ snd_m3_create(snd_card_t *card, struct pci_dev *pci, | |||
2689 | return -ENXIO; | 2660 | return -ENXIO; |
2690 | } | 2661 | } |
2691 | 2662 | ||
2692 | chip = kcalloc(1, sizeof(*chip), GFP_KERNEL); | 2663 | chip = kzalloc(sizeof(*chip), GFP_KERNEL); |
2693 | if (chip == NULL) { | 2664 | if (chip == NULL) { |
2694 | pci_disable_device(pci); | 2665 | pci_disable_device(pci); |
2695 | return -ENOMEM; | 2666 | return -ENOMEM; |
@@ -2890,6 +2861,7 @@ static void __devexit snd_m3_remove(struct pci_dev *pci) | |||
2890 | 2861 | ||
2891 | static struct pci_driver driver = { | 2862 | static struct pci_driver driver = { |
2892 | .name = "Maestro3", | 2863 | .name = "Maestro3", |
2864 | .owner = THIS_MODULE, | ||
2893 | .id_table = snd_m3_ids, | 2865 | .id_table = snd_m3_ids, |
2894 | .probe = snd_m3_probe, | 2866 | .probe = snd_m3_probe, |
2895 | .remove = __devexit_p(snd_m3_remove), | 2867 | .remove = __devexit_p(snd_m3_remove), |