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/atiixp.c | |
parent | 68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff) |
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/atiixp.c')
-rw-r--r-- | sound/pci/atiixp.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 590682f115ef..156a94f8a123 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1700,7 +1700,7 @@ static void __devexit snd_atiixp_remove(struct pci_dev *pci) | |||
1700 | pci_set_drvdata(pci, NULL); | 1700 | pci_set_drvdata(pci, NULL); |
1701 | } | 1701 | } |
1702 | 1702 | ||
1703 | static struct pci_driver driver = { | 1703 | static struct pci_driver atiixp_driver = { |
1704 | .name = KBUILD_MODNAME, | 1704 | .name = KBUILD_MODNAME, |
1705 | .id_table = snd_atiixp_ids, | 1705 | .id_table = snd_atiixp_ids, |
1706 | .probe = snd_atiixp_probe, | 1706 | .probe = snd_atiixp_probe, |
@@ -1711,16 +1711,4 @@ static struct pci_driver driver = { | |||
1711 | #endif | 1711 | #endif |
1712 | }; | 1712 | }; |
1713 | 1713 | ||
1714 | 1714 | module_pci_driver(atiixp_driver); | |
1715 | static int __init alsa_card_atiixp_init(void) | ||
1716 | { | ||
1717 | return pci_register_driver(&driver); | ||
1718 | } | ||
1719 | |||
1720 | static void __exit alsa_card_atiixp_exit(void) | ||
1721 | { | ||
1722 | pci_unregister_driver(&driver); | ||
1723 | } | ||
1724 | |||
1725 | module_init(alsa_card_atiixp_init) | ||
1726 | module_exit(alsa_card_atiixp_exit) | ||