summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-07-10 12:10:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-11 17:26:02 -0700
commit1cdb9c7c1d4846e04c28dbb41c6cef3a5e5f2b56 (patch)
treeaf3aea9c40d45204bffb4589bb3c376f19759972 /drivers
parent89812b1f5af666e531e4840e867edf86ed047db8 (diff)
downloadtalos-op-linux-1cdb9c7c1d4846e04c28dbb41c6cef3a5e5f2b56.tar.gz
talos-op-linux-1cdb9c7c1d4846e04c28dbb41c6cef3a5e5f2b56.zip
staging/sbe-2t3e3: use module_pci_driver macro
the _init and _exit functions do nothing but pci_register_driver, and pci_unregister_driver, so replace these and also the module _init and _exit macros with the module_pci_driver macro. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/sbe-2t3e3/module.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/sbe-2t3e3/module.c b/drivers/staging/sbe-2t3e3/module.c
index e87fe81f6bb3..cd778b3a02b2 100644
--- a/drivers/staging/sbe-2t3e3/module.c
+++ b/drivers/staging/sbe-2t3e3/module.c
@@ -194,17 +194,6 @@ static struct pci_driver t3e3_pci_driver = {
.remove = t3e3_remove_card,
};
-static int __init t3e3_init_module(void)
-{
- return pci_register_driver(&t3e3_pci_driver);
-}
-
-static void __exit t3e3_cleanup_module(void)
-{
- pci_unregister_driver(&t3e3_pci_driver);
-}
-
-module_init(t3e3_init_module);
-module_exit(t3e3_cleanup_module);
+module_pci_driver(t3e3_pci_driver);
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, t3e3_pci_tbl);
OpenPOWER on IntegriCloud