mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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" <[email protected]> Cc: "John W. Linville" <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Antonio Ospite <[email protected]> Cc: Rhyland Klein <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Rhyland Klein <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
264827555b
commit
98ef55f66f
2 changed files with 2 additions and 23 deletions
|
|
@ -220,18 +220,7 @@ static struct platform_driver rfkill_gpio_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init rfkill_gpio_init(void)
|
||||
{
|
||||
return platform_driver_register(&rfkill_gpio_driver);
|
||||
}
|
||||
|
||||
static void __exit rfkill_gpio_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rfkill_gpio_driver);
|
||||
}
|
||||
|
||||
module_init(rfkill_gpio_init);
|
||||
module_exit(rfkill_gpio_exit);
|
||||
module_platform_driver(rfkill_gpio_driver);
|
||||
|
||||
MODULE_DESCRIPTION("gpio rfkill");
|
||||
MODULE_AUTHOR("NVIDIA");
|
||||
|
|
|
|||
|
|
@ -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 <[email protected]>");
|
||||
MODULE_AUTHOR("Antonio Ospite <[email protected]>");
|
||||
|
|
|
|||
Loading…
Reference in a new issue