ALSA: pci: clean up using module_pci_driver()
[deliverable/linux.git] / sound / pci / pcxhr / pcxhr.c
index fd1809ab73b4e4c3a934e895a4039a32f8cc2ba6..0435f45e95132d59583a09c9d72a25f19d536408 100644 (file)
@@ -1607,22 +1607,11 @@ static void __devexit pcxhr_remove(struct pci_dev *pci)
        pci_set_drvdata(pci, NULL);
 }
 
-static struct pci_driver driver = {
+static struct pci_driver pcxhr_driver = {
        .name = KBUILD_MODNAME,
        .id_table = pcxhr_ids,
        .probe = pcxhr_probe,
        .remove = __devexit_p(pcxhr_remove),
 };
 
-static int __init pcxhr_module_init(void)
-{
-       return pci_register_driver(&driver);
-}
-
-static void __exit pcxhr_module_exit(void)
-{
-       pci_unregister_driver(&driver);
-}
-
-module_init(pcxhr_module_init)
-module_exit(pcxhr_module_exit)
+module_pci_driver(pcxhr_driver);
This page took 0.054333 seconds and 5 git commands to generate.