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/rme32.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/rme32.c')
-rw-r--r-- | sound/pci/rme32.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index b4819d5e41db..46b3629dda22 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -1984,22 +1984,11 @@ static void __devexit snd_rme32_remove(struct pci_dev *pci) | |||
1984 | pci_set_drvdata(pci, NULL); | 1984 | pci_set_drvdata(pci, NULL); |
1985 | } | 1985 | } |
1986 | 1986 | ||
1987 | static struct pci_driver driver = { | 1987 | static struct pci_driver rme32_driver = { |
1988 | .name = KBUILD_MODNAME, | 1988 | .name = KBUILD_MODNAME, |
1989 | .id_table = snd_rme32_ids, | 1989 | .id_table = snd_rme32_ids, |
1990 | .probe = snd_rme32_probe, | 1990 | .probe = snd_rme32_probe, |
1991 | .remove = __devexit_p(snd_rme32_remove), | 1991 | .remove = __devexit_p(snd_rme32_remove), |
1992 | }; | 1992 | }; |
1993 | 1993 | ||
1994 | static int __init alsa_card_rme32_init(void) | 1994 | module_pci_driver(rme32_driver); |
1995 | { | ||
1996 | return pci_register_driver(&driver); | ||
1997 | } | ||
1998 | |||
1999 | static void __exit alsa_card_rme32_exit(void) | ||
2000 | { | ||
2001 | pci_unregister_driver(&driver); | ||
2002 | } | ||
2003 | |||
2004 | module_init(alsa_card_rme32_init) | ||
2005 | module_exit(alsa_card_rme32_exit) | ||