summaryrefslogtreecommitdiffstats
path: root/drivers/video/bfin-t350mcqb-fb.c
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-09-29 13:32:02 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-30 10:51:08 +0300
commit688e6e22cda00fb145daf21c9fbc3b5a31f7ae31 (patch)
tree7189687f708d262e31e6111567d152282ae4a404 /drivers/video/bfin-t350mcqb-fb.c
parent86bf043897a61bc62a5b1f8fee9fc7681f330f90 (diff)
downloadlinux-688e6e22cda00fb145daf21c9fbc3b5a31f7ae31.tar.gz
linux-688e6e22cda00fb145daf21c9fbc3b5a31f7ae31.tar.bz2
linux-688e6e22cda00fb145daf21c9fbc3b5a31f7ae31.zip
Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code
Convert to module_platform_driver() to simplify code. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/bfin-t350mcqb-fb.c')
-rw-r--r--drivers/video/bfin-t350mcqb-fb.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
index 48c0c4e38a62..b5cf1307a3d9 100644
--- a/drivers/video/bfin-t350mcqb-fb.c
+++ b/drivers/video/bfin-t350mcqb-fb.c
@@ -664,19 +664,7 @@ static struct platform_driver bfin_t350mcqb_driver = {
.owner = THIS_MODULE,
},
};
-
-static int __init bfin_t350mcqb_driver_init(void)
-{
- return platform_driver_register(&bfin_t350mcqb_driver);
-}
-
-static void __exit bfin_t350mcqb_driver_cleanup(void)
-{
- platform_driver_unregister(&bfin_t350mcqb_driver);
-}
+module_platform_driver(bfin_t350mcqb_driver);
MODULE_DESCRIPTION("Blackfin TFT LCD Driver");
MODULE_LICENSE("GPL");
-
-module_init(bfin_t350mcqb_driver_init);
-module_exit(bfin_t350mcqb_driver_cleanup);