Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code
authorHanjun Guo <hanjun.guo@linaro.org>
Sun, 29 Sep 2013 05:32:02 +0000 (13:32 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 30 Sep 2013 07:51:08 +0000 (10:51 +0300)
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>
drivers/video/bfin-t350mcqb-fb.c

index 48c0c4e38a62a0e4be7bb43c4999e9927247ddc6..b5cf1307a3d9e546cab96fb9bdbc8f662ed88b52 100644 (file)
@@ -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);