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/oxygen | |
parent | 68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff) |
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen')
-rw-r--r-- | sound/pci/oxygen/oxygen.c | 13 | ||||
-rw-r--r-- | sound/pci/oxygen/virtuoso.c | 13 |
2 files changed, 2 insertions, 24 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c index eab663eef117..6bc589dc6799 100644 --- a/sound/pci/oxygen/oxygen.c +++ b/sound/pci/oxygen/oxygen.c | |||
@@ -870,15 +870,4 @@ static struct pci_driver oxygen_driver = { | |||
870 | #endif | 870 | #endif |
871 | }; | 871 | }; |
872 | 872 | ||
873 | static int __init alsa_card_oxygen_init(void) | 873 | module_pci_driver(oxygen_driver); |
874 | { | ||
875 | return pci_register_driver(&oxygen_driver); | ||
876 | } | ||
877 | |||
878 | static void __exit alsa_card_oxygen_exit(void) | ||
879 | { | ||
880 | pci_unregister_driver(&oxygen_driver); | ||
881 | } | ||
882 | |||
883 | module_init(alsa_card_oxygen_init) | ||
884 | module_exit(alsa_card_oxygen_exit) | ||
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index 3fdee4950174..19962c6d38c3 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -100,15 +100,4 @@ static struct pci_driver xonar_driver = { | |||
100 | .shutdown = oxygen_pci_shutdown, | 100 | .shutdown = oxygen_pci_shutdown, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static int __init alsa_card_xonar_init(void) | 103 | module_pci_driver(xonar_driver); |
104 | { | ||
105 | return pci_register_driver(&xonar_driver); | ||
106 | } | ||
107 | |||
108 | static void __exit alsa_card_xonar_exit(void) | ||
109 | { | ||
110 | pci_unregister_driver(&xonar_driver); | ||
111 | } | ||
112 | |||
113 | module_init(alsa_card_xonar_init) | ||
114 | module_exit(alsa_card_xonar_exit) | ||