brcmfmac: remove use of unconditional access of struct wireless_dev::netdev
[deliverable/linux.git] / drivers / usb / otg / msm_otg.c
index 3b9f0d951132089f69a6c249dcda3216b5242314..749fbf41fb6f5d8b192d0705f9306860c120d804 100644 (file)
@@ -1756,18 +1756,7 @@ static struct platform_driver msm_otg_driver = {
        },
 };
 
-static int __init msm_otg_init(void)
-{
-       return platform_driver_probe(&msm_otg_driver, msm_otg_probe);
-}
-
-static void __exit msm_otg_exit(void)
-{
-       platform_driver_unregister(&msm_otg_driver);
-}
-
-module_init(msm_otg_init);
-module_exit(msm_otg_exit);
+module_platform_driver_probe(msm_otg_driver, msm_otg_probe);
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("MSM USB transceiver driver");
This page took 0.023644 seconds and 5 git commands to generate.