diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
commit | e9f66d9b9ce03f74a52894cebedf12b67f65dd24 (patch) | |
tree | 6fc07ea37548ac3c9f808ee25c10fcfeb34236ea /sound/pci/korg1212 | |
parent | 68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff) |
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/korg1212')
-rw-r--r-- | sound/pci/korg1212/korg1212.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 8fea45ab5882..e69ce5f9c31e 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -2476,22 +2476,11 @@ static void __devexit snd_korg1212_remove(struct pci_dev *pci) | |||
2476 | pci_set_drvdata(pci, NULL); | 2476 | pci_set_drvdata(pci, NULL); |
2477 | } | 2477 | } |
2478 | 2478 | ||
2479 | static struct pci_driver driver = { | 2479 | static struct pci_driver korg1212_driver = { |
2480 | .name = KBUILD_MODNAME, | 2480 | .name = KBUILD_MODNAME, |
2481 | .id_table = snd_korg1212_ids, | 2481 | .id_table = snd_korg1212_ids, |
2482 | .probe = snd_korg1212_probe, | 2482 | .probe = snd_korg1212_probe, |
2483 | .remove = __devexit_p(snd_korg1212_remove), | 2483 | .remove = __devexit_p(snd_korg1212_remove), |
2484 | }; | 2484 | }; |
2485 | 2485 | ||
2486 | static int __init alsa_card_korg1212_init(void) | 2486 | module_pci_driver(korg1212_driver); |
2487 | { | ||
2488 | return pci_register_driver(&driver); | ||
2489 | } | ||
2490 | |||
2491 | static void __exit alsa_card_korg1212_exit(void) | ||
2492 | { | ||
2493 | pci_unregister_driver(&driver); | ||
2494 | } | ||
2495 | |||
2496 | module_init(alsa_card_korg1212_init) | ||
2497 | module_exit(alsa_card_korg1212_exit) | ||