diff options
Diffstat (limited to 'sound/pci/cmipci.c')
| -rw-r--r-- | sound/pci/cmipci.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index b098b51099c2..1eb3315d136d 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
| @@ -79,13 +79,6 @@ module_param_array(joystick_port, int, NULL, 0444); | |||
| 79 | MODULE_PARM_DESC(joystick_port, "Joystick port address."); | 79 | MODULE_PARM_DESC(joystick_port, "Joystick port address."); |
| 80 | #endif | 80 | #endif |
| 81 | 81 | ||
| 82 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8738 | ||
| 83 | #define PCI_DEVICE_ID_CMEDIA_CM8738 0x0111 | ||
| 84 | #endif | ||
| 85 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8738B | ||
| 86 | #define PCI_DEVICE_ID_CMEDIA_CM8738B 0x0112 | ||
| 87 | #endif | ||
| 88 | |||
| 89 | /* | 82 | /* |
| 90 | * CM8x38 registers definition | 83 | * CM8x38 registers definition |
| 91 | */ | 84 | */ |
| @@ -348,25 +341,6 @@ MODULE_PARM_DESC(joystick_port, "Joystick port address."); | |||
| 348 | 341 | ||
| 349 | 342 | ||
| 350 | /* | 343 | /* |
| 351 | * pci ids | ||
| 352 | */ | ||
| 353 | #ifndef PCI_VENDOR_ID_CMEDIA | ||
| 354 | #define PCI_VENDOR_ID_CMEDIA 0x13F6 | ||
| 355 | #endif | ||
| 356 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8338A | ||
| 357 | #define PCI_DEVICE_ID_CMEDIA_CM8338A 0x0100 | ||
| 358 | #endif | ||
| 359 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8338B | ||
| 360 | #define PCI_DEVICE_ID_CMEDIA_CM8338B 0x0101 | ||
| 361 | #endif | ||
| 362 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8738 | ||
| 363 | #define PCI_DEVICE_ID_CMEDIA_CM8738 0x0111 | ||
| 364 | #endif | ||
| 365 | #ifndef PCI_DEVICE_ID_CMEDIA_CM8738B | ||
| 366 | #define PCI_DEVICE_ID_CMEDIA_CM8738B 0x0112 | ||
| 367 | #endif | ||
| 368 | |||
| 369 | /* | ||
| 370 | * channels for playback / capture | 344 | * channels for playback / capture |
| 371 | */ | 345 | */ |
| 372 | #define CM_CH_PLAY 0 | 346 | #define CM_CH_PLAY 0 |
| @@ -2801,7 +2775,7 @@ static int __devinit snd_cmipci_create(snd_card_t *card, struct pci_dev *pci, | |||
| 2801 | if ((err = pci_enable_device(pci)) < 0) | 2775 | if ((err = pci_enable_device(pci)) < 0) |
| 2802 | return err; | 2776 | return err; |
| 2803 | 2777 | ||
| 2804 | cm = kcalloc(1, sizeof(*cm), GFP_KERNEL); | 2778 | cm = kzalloc(sizeof(*cm), GFP_KERNEL); |
| 2805 | if (cm == NULL) { | 2779 | if (cm == NULL) { |
| 2806 | pci_disable_device(pci); | 2780 | pci_disable_device(pci); |
| 2807 | return -ENOMEM; | 2781 | return -ENOMEM; |
| @@ -3063,6 +3037,7 @@ static void __devexit snd_cmipci_remove(struct pci_dev *pci) | |||
| 3063 | 3037 | ||
| 3064 | static struct pci_driver driver = { | 3038 | static struct pci_driver driver = { |
| 3065 | .name = "C-Media PCI", | 3039 | .name = "C-Media PCI", |
| 3040 | .owner = THIS_MODULE, | ||
| 3066 | .id_table = snd_cmipci_ids, | 3041 | .id_table = snd_cmipci_ids, |
| 3067 | .probe = snd_cmipci_probe, | 3042 | .probe = snd_cmipci_probe, |
| 3068 | .remove = __devexit_p(snd_cmipci_remove), | 3043 | .remove = __devexit_p(snd_cmipci_remove), |
