[RFT/PATCH 03/10] cbus: retu: move module_* close to the matching symbol

Felipe Balbi
2011-01-03T07:50:09Z

Just to make checkpatch.pl a bit happier, move
subsys_initcall() and module_exit() closer to
the init and exit functions of the driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
drivers/cbus/retu.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c
index 39d4fa4..0053d43 100644
--- a/drivers/cbus/retu.c
+++ b/drivers/cbus/retu.c
@@ -498,25 +498,16 @@ static struct platform_driver retu_driver = {
},
};

-/**
- * retu_init - initialise Retu driver
- *
- * Initialise the Retu driver and return 0 if everything worked ok
- */
static int __init retu_init(void)
{
return platform_driver_probe(&retu_driver, retu_probe);
}
+subsys_initcall(retu_init);

-/*
- * Cleanup
- */
static void __exit retu_exit(void)
{
platform_driver_unregister(&retu_driver);
}
-
-subsys_initcall(retu_init);
module_exit(retu_exit);

MODULE_DESCRIPTION("Retu ASIC control");
--
1.7.3.4.598.g85356