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/ca0106/ca0106_main.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/ca0106/ca0106_main.c')
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 08d6ebfe5a61..e76d68a7081f 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1932,7 +1932,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_ca0106_ids) = { | |||
1932 | MODULE_DEVICE_TABLE(pci, snd_ca0106_ids); | 1932 | MODULE_DEVICE_TABLE(pci, snd_ca0106_ids); |
1933 | 1933 | ||
1934 | // pci_driver definition | 1934 | // pci_driver definition |
1935 | static struct pci_driver driver = { | 1935 | static struct pci_driver ca0106_driver = { |
1936 | .name = KBUILD_MODNAME, | 1936 | .name = KBUILD_MODNAME, |
1937 | .id_table = snd_ca0106_ids, | 1937 | .id_table = snd_ca0106_ids, |
1938 | .probe = snd_ca0106_probe, | 1938 | .probe = snd_ca0106_probe, |
@@ -1943,17 +1943,4 @@ static struct pci_driver driver = { | |||
1943 | #endif | 1943 | #endif |
1944 | }; | 1944 | }; |
1945 | 1945 | ||
1946 | // initialization of the module | 1946 | module_pci_driver(ca0106_driver); |
1947 | static int __init alsa_card_ca0106_init(void) | ||
1948 | { | ||
1949 | return pci_register_driver(&driver); | ||
1950 | } | ||
1951 | |||
1952 | // clean up the module | ||
1953 | static void __exit alsa_card_ca0106_exit(void) | ||
1954 | { | ||
1955 | pci_unregister_driver(&driver); | ||
1956 | } | ||
1957 | |||
1958 | module_init(alsa_card_ca0106_init) | ||
1959 | module_exit(alsa_card_ca0106_exit) | ||