diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 13:32:01 +0800 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 10:51:08 +0300 |
commit | 86bf043897a61bc62a5b1f8fee9fc7681f330f90 (patch) | |
tree | 06c99a778cda8bd3c264b9eafcba12e4f7923bb3 | |
parent | 78145a95fb9ca3d1bb8b12be80391fa5993b90c6 (diff) | |
download | op-kernel-dev-86bf043897a61bc62a5b1f8fee9fc7681f330f90.zip op-kernel-dev-86bf043897a61bc62a5b1f8fee9fc7681f330f90.tar.gz |
Video / hecubafb: 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>
-rw-r--r-- | drivers/video/hecubafb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 59d2318..702b599 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -305,19 +305,7 @@ static struct platform_driver hecubafb_driver = { .name = "hecubafb", }, }; - -static int __init hecubafb_init(void) -{ - return platform_driver_register(&hecubafb_driver); -} - -static void __exit hecubafb_exit(void) -{ - platform_driver_unregister(&hecubafb_driver); -} - -module_init(hecubafb_init); -module_exit(hecubafb_exit); +module_platform_driver(hecubafb_driver); MODULE_DESCRIPTION("fbdev driver for Hecuba/Apollo controller"); MODULE_AUTHOR("Jaya Kumar"); |