summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/envctrl.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-26 19:04:25 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-04 10:46:58 -0800
commitdbf2b92d54e73e4a2524b90d29bd498ecc4aa593 (patch)
treef632c477fbee168e36ca42013c68cf761dff3f7b /drivers/sbus/char/envctrl.c
parente410471029ba99e85af5e2a1e7e747c7b4de2bc3 (diff)
downloadblackbird-op-linux-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.tar.gz
blackbird-op-linux-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.zip
sbus: convert drivers/sbus/char/* to use module_platform_driver()
This patch converts the drivers in drivers/sbus/char/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r--drivers/sbus/char/envctrl.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index be7b4e56154f..339fd6f65eda 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -1138,16 +1138,6 @@ static struct platform_driver envctrl_driver = {
.remove = __devexit_p(envctrl_remove),
};
-static int __init envctrl_init(void)
-{
- return platform_driver_register(&envctrl_driver);
-}
-
-static void __exit envctrl_exit(void)
-{
- platform_driver_unregister(&envctrl_driver);
-}
+module_platform_driver(envctrl_driver);
-module_init(envctrl_init);
-module_exit(envctrl_exit);
MODULE_LICENSE("GPL");
OpenPOWER on IntegriCloud