]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/uio/uio_netx.c
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / uio / uio_netx.c
index 6a4ba5e83e376b7dd2994cb36b584eeab835dd22..28a766b9e198af4ded7bc8ddfe2c28181909ddea 100644 (file)
@@ -174,19 +174,7 @@ static struct pci_driver netx_pci_driver = {
        .remove = netx_pci_remove,
 };
 
-static int __init netx_init_module(void)
-{
-       return pci_register_driver(&netx_pci_driver);
-}
-
-static void __exit netx_exit_module(void)
-{
-       pci_unregister_driver(&netx_pci_driver);
-}
-
-module_init(netx_init_module);
-module_exit(netx_exit_module);
-
+module_pci_driver(netx_pci_driver);
 MODULE_DEVICE_TABLE(pci, netx_pci_ids);
 MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Hans J. Koch, Manuel Traut");