ALSA: ctxfi - Clean up / optimize

- Use static tables instead of assigining each funciton pointer
- Add __devinit* to appropriate places; pcm, mixer and timer cannot be
  marked because they are kept in the function table that lives long
- Move create_alsa_devs function out of struct ct_atc to mark it
  __devinit

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2009-06-05 16:34:10 +02:00
parent 775ffa1d3e
commit 2a36f67f8c
6 changed files with 243 additions and 248 deletions

View File

@@ -86,7 +86,7 @@ ct_card_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
card->private_data = atc;
/* Create alsa devices supported by this card */
err = atc->create_alsa_devs(atc);
err = ct_atc_create_alsa_devs(atc);
if (err < 0)
goto error;