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/cs5530.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/cs5530.c')
-rw-r--r-- | sound/pci/cs5530.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index c47cabff2bfa..f1e4229993af 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c | |||
@@ -291,23 +291,11 @@ static int __devinit snd_cs5530_probe(struct pci_dev *pci, | |||
291 | return 0; | 291 | return 0; |
292 | } | 292 | } |
293 | 293 | ||
294 | static struct pci_driver driver = { | 294 | static struct pci_driver cs5530_driver = { |
295 | .name = KBUILD_MODNAME, | 295 | .name = KBUILD_MODNAME, |
296 | .id_table = snd_cs5530_ids, | 296 | .id_table = snd_cs5530_ids, |
297 | .probe = snd_cs5530_probe, | 297 | .probe = snd_cs5530_probe, |
298 | .remove = __devexit_p(snd_cs5530_remove), | 298 | .remove = __devexit_p(snd_cs5530_remove), |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static int __init alsa_card_cs5530_init(void) | 301 | module_pci_driver(cs5530_driver); |
302 | { | ||
303 | return pci_register_driver(&driver); | ||
304 | } | ||
305 | |||
306 | static void __exit alsa_card_cs5530_exit(void) | ||
307 | { | ||
308 | pci_unregister_driver(&driver); | ||
309 | } | ||
310 | |||
311 | module_init(alsa_card_cs5530_init) | ||
312 | module_exit(alsa_card_cs5530_exit) | ||
313 | |||