summaryrefslogtreecommitdiff
path: root/drivers/staging/et131x
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-07-10 12:11:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-11 17:26:02 -0700
commit89812b1f5af666e531e4840e867edf86ed047db8 (patch)
tree467a4a3ebecf80d35116b06bcb9ab867fdd82fbf /drivers/staging/et131x
parent8e4763f67fe7279822c131bde4eadf5f7e456b2c (diff)
staging/et131x: use module_pci_driver macro
remove code duplicating module_pci_driver and also the obvious comments about the _init and _exit points. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x')
-rw-r--r--drivers/staging/et131x/et131x.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index 8f3fc5f85ec9..ac6897b593c9 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -5445,24 +5445,4 @@ static struct pci_driver et131x_driver = {
.driver.pm = ET131X_PM_OPS,
};
-/**
- * et131x_init_module - The "main" entry point called on driver initialization
- *
- * Returns 0 on success, errno on failure (as defined in errno.h)
- */
-static int __init et131x_init_module(void)
-{
- return pci_register_driver(&et131x_driver);
-}
-
-/**
- * et131x_cleanup_module - The entry point called on driver cleanup
- */
-static void __exit et131x_cleanup_module(void)
-{
- pci_unregister_driver(&et131x_driver);
-}
-
-module_init(et131x_init_module);
-module_exit(et131x_cleanup_module);
-
+module_pci_driver(et131x_driver);