summaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-28 10:15:04 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-30 21:08:27 +0100
commit98ef55f66f791a04877c9e0a272a8c50cceaf9a5 (patch)
tree0c93263b27d1b5f4da81558763d796c59021936a /net/rfkill/rfkill-regulator.c
parentiwlwifi: help to debug AGG SM inconsistencies (diff)
downloadlinux-98ef55f66f791a04877c9e0a272a8c50cceaf9a5.tar.xz
linux-98ef55f66f791a04877c9e0a272a8c50cceaf9a5.zip
net: rfkill: convert net/rfkill/* to use module_platform_driver()
This patch converts the drivers in net/rfkill/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: "David S. Miller" <davem@davemloft.net> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Antonio Ospite <ospite@studenti.unina.it> Cc: Rhyland Klein <rklein@nvidia.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill/rfkill-regulator.c')
-rw-r--r--net/rfkill/rfkill-regulator.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/net/rfkill/rfkill-regulator.c b/net/rfkill/rfkill-regulator.c
index 3ca7277a3c36..2ebfe8d0e873 100644
--- a/net/rfkill/rfkill-regulator.c
+++ b/net/rfkill/rfkill-regulator.c
@@ -144,17 +144,7 @@ static struct platform_driver rfkill_regulator_driver = {
},
};
-static int __init rfkill_regulator_init(void)
-{
- return platform_driver_register(&rfkill_regulator_driver);
-}
-module_init(rfkill_regulator_init);
-
-static void __exit rfkill_regulator_exit(void)
-{
- platform_driver_unregister(&rfkill_regulator_driver);
-}
-module_exit(rfkill_regulator_exit);
+module_platform_driver(rfkill_regulator_driver);
MODULE_AUTHOR("Guiming Zhuo <gmzhuo@gmail.com>");
MODULE_AUTHOR("Antonio Ospite <ospite@studenti.unina.it>");