summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap/lcd_palmte.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-01-17 13:55:28 +0100
committerPaul Mundt <lethal@linux-sh.org>2012-01-17 13:55:28 +0100
commit0c929238ca4baefe47f4034732db4c154f2329c6 (patch)
tree2636079800fa045501982a70e1be0425c1b968c2 /drivers/video/omap/lcd_palmte.c
parentvideo: pvr2fb: Fix up spurious section mismatch warnings. (diff)
parentsh: fix the sh_mmcif_plat_data in board-sh7757lcr (diff)
downloadlinux-0c929238ca4baefe47f4034732db4c154f2329c6.tar.xz
linux-0c929238ca4baefe47f4034732db4c154f2329c6.zip
Merge branch 'sh/platform-updates' into sh-latest
Diffstat (limited to 'drivers/video/omap/lcd_palmte.c')
-rw-r--r--drivers/video/omap/lcd_palmte.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/video/omap/lcd_palmte.c b/drivers/video/omap/lcd_palmte.c
index 4cb301750d02..88c31eb0cd6c 100644
--- a/drivers/video/omap/lcd_palmte.c
+++ b/drivers/video/omap/lcd_palmte.c
@@ -97,7 +97,7 @@ static int palmte_panel_resume(struct platform_device *pdev)
return 0;
}
-struct platform_driver palmte_panel_driver = {
+static struct platform_driver palmte_panel_driver = {
.probe = palmte_panel_probe,
.remove = palmte_panel_remove,
.suspend = palmte_panel_suspend,
@@ -108,16 +108,4 @@ struct platform_driver palmte_panel_driver = {
},
};
-static int __init palmte_panel_drv_init(void)
-{
- return platform_driver_register(&palmte_panel_driver);
-}
-
-static void __exit palmte_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&palmte_panel_driver);
-}
-
-module_init(palmte_panel_drv_init);
-module_exit(palmte_panel_drv_cleanup);
-
+module_platform_driver(palmte_panel_driver);