diff options
Diffstat (limited to 'sound/pci/es1968.c')
-rw-r--r-- | sound/pci/es1968.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 9d7a28783930..ecdcada90ca2 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -160,25 +160,6 @@ MODULE_PARM_DESC(joystick, "Enable joystick."); | |||
160 | #endif | 160 | #endif |
161 | 161 | ||
162 | 162 | ||
163 | /* PCI Dev ID's */ | ||
164 | |||
165 | #ifndef PCI_VENDOR_ID_ESS | ||
166 | #define PCI_VENDOR_ID_ESS 0x125D | ||
167 | #endif | ||
168 | |||
169 | #define PCI_VENDOR_ID_ESS_OLD 0x1285 /* Platform Tech, the people the ESS | ||
170 | was bought form */ | ||
171 | |||
172 | #ifndef PCI_DEVICE_ID_ESS_M2E | ||
173 | #define PCI_DEVICE_ID_ESS_M2E 0x1978 | ||
174 | #endif | ||
175 | #ifndef PCI_DEVICE_ID_ESS_M2 | ||
176 | #define PCI_DEVICE_ID_ESS_M2 0x1968 | ||
177 | #endif | ||
178 | #ifndef PCI_DEVICE_ID_ESS_M1 | ||
179 | #define PCI_DEVICE_ID_ESS_M1 0x0100 | ||
180 | #endif | ||
181 | |||
182 | #define NR_APUS 64 | 163 | #define NR_APUS 64 |
183 | #define NR_APU_REGS 16 | 164 | #define NR_APU_REGS 16 |
184 | 165 | ||
@@ -1596,7 +1577,7 @@ static int snd_es1968_playback_open(snd_pcm_substream_t *substream) | |||
1596 | if (apu1 < 0) | 1577 | if (apu1 < 0) |
1597 | return apu1; | 1578 | return apu1; |
1598 | 1579 | ||
1599 | es = kcalloc(1, sizeof(*es), GFP_KERNEL); | 1580 | es = kzalloc(sizeof(*es), GFP_KERNEL); |
1600 | if (!es) { | 1581 | if (!es) { |
1601 | snd_es1968_free_apu_pair(chip, apu1); | 1582 | snd_es1968_free_apu_pair(chip, apu1); |
1602 | return -ENOMEM; | 1583 | return -ENOMEM; |
@@ -1641,7 +1622,7 @@ static int snd_es1968_capture_open(snd_pcm_substream_t *substream) | |||
1641 | return apu2; | 1622 | return apu2; |
1642 | } | 1623 | } |
1643 | 1624 | ||
1644 | es = kcalloc(1, sizeof(*es), GFP_KERNEL); | 1625 | es = kzalloc(sizeof(*es), GFP_KERNEL); |
1645 | if (!es) { | 1626 | if (!es) { |
1646 | snd_es1968_free_apu_pair(chip, apu1); | 1627 | snd_es1968_free_apu_pair(chip, apu1); |
1647 | snd_es1968_free_apu_pair(chip, apu2); | 1628 | snd_es1968_free_apu_pair(chip, apu2); |
@@ -2588,7 +2569,7 @@ static int __devinit snd_es1968_create(snd_card_t * card, | |||
2588 | return -ENXIO; | 2569 | return -ENXIO; |
2589 | } | 2570 | } |
2590 | 2571 | ||
2591 | chip = kcalloc(1, sizeof(*chip), GFP_KERNEL); | 2572 | chip = kzalloc(sizeof(*chip), GFP_KERNEL); |
2592 | if (! chip) { | 2573 | if (! chip) { |
2593 | pci_disable_device(pci); | 2574 | pci_disable_device(pci); |
2594 | return -ENOMEM; | 2575 | return -ENOMEM; |
@@ -2782,6 +2763,7 @@ static void __devexit snd_es1968_remove(struct pci_dev *pci) | |||
2782 | 2763 | ||
2783 | static struct pci_driver driver = { | 2764 | static struct pci_driver driver = { |
2784 | .name = "ES1968 (ESS Maestro)", | 2765 | .name = "ES1968 (ESS Maestro)", |
2766 | .owner = THIS_MODULE, | ||
2785 | .id_table = snd_es1968_ids, | 2767 | .id_table = snd_es1968_ids, |
2786 | .probe = snd_es1968_probe, | 2768 | .probe = snd_es1968_probe, |
2787 | .remove = __devexit_p(snd_es1968_remove), | 2769 | .remove = __devexit_p(snd_es1968_remove), |