Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9add4d81 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

dlink: dl2k: use the module_pci_driver macro



use the module_pci_driver macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3eeb7da9
Loading
Loading
Loading
Loading
+1 −15
Original line number Original line Diff line number Diff line
@@ -1758,21 +1758,7 @@ static struct pci_driver rio_driver = {
	.remove		= __devexit_p(rio_remove1),
	.remove		= __devexit_p(rio_remove1),
};
};


static int __init
module_pci_driver(rio_driver);
rio_init (void)
{
	return pci_register_driver(&rio_driver);
}

static void __exit
rio_exit (void)
{
	pci_unregister_driver (&rio_driver);
}

module_init (rio_init);
module_exit (rio_exit);

/*
/*


Compile command:
Compile command: