Merge tag 'arc-v3.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / video / omap / lcd_htcherald.c
index 4802419da83b486477140d8e7388499bfd558a73..20f477851d5495a4b548426abcc39b805f071ea3 100644 (file)
@@ -104,7 +104,7 @@ static int htcherald_panel_resume(struct platform_device *pdev)
        return 0;
 }
 
-struct platform_driver htcherald_panel_driver = {
+static struct platform_driver htcherald_panel_driver = {
        .probe          = htcherald_panel_probe,
        .remove         = htcherald_panel_remove,
        .suspend        = htcherald_panel_suspend,
@@ -115,16 +115,4 @@ struct platform_driver htcherald_panel_driver = {
        },
 };
 
-static int __init htcherald_panel_drv_init(void)
-{
-       return platform_driver_register(&htcherald_panel_driver);
-}
-
-static void __exit htcherald_panel_drv_cleanup(void)
-{
-       platform_driver_unregister(&htcherald_panel_driver);
-}
-
-module_init(htcherald_panel_drv_init);
-module_exit(htcherald_panel_drv_cleanup);
-
+module_platform_driver(htcherald_panel_driver);