diff options
author | Devendra Naga <develkernel412222@gmail.com> | 2012-08-23 17:55:22 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-09-22 17:17:36 -0400 |
commit | 1d90a66f5bf25b60951b01f196bd7e4282c69b73 (patch) | |
tree | 14a52e9891d51e6088ef6f0406bbf723fbe56229 | |
parent | 58fc6ef6f8c8ae06a82f7dd3ae1fa09d4fcfc875 (diff) |
video: bfin-lq035q1: use module_platform_driver
the driver's module init and exit functions are calling
platform_driver_register and platform_driver_unregister and doing nothing
else.
This same as that of the module_platform_driver,
remove this init and exit functions and use the module_platform_driver instead
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
-rw-r--r-- | drivers/video/bfin-lq035q1-fb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c index 353c02fe8a95..1b21519c77e0 100644 --- a/drivers/video/bfin-lq035q1-fb.c +++ b/drivers/video/bfin-lq035q1-fb.c | |||
@@ -853,17 +853,7 @@ static struct platform_driver bfin_lq035q1_driver = { | |||
853 | }, | 853 | }, |
854 | }; | 854 | }; |
855 | 855 | ||
856 | static int __init bfin_lq035q1_driver_init(void) | 856 | module_platform_driver(bfin_lq035q1_driver); |
857 | { | ||
858 | return platform_driver_register(&bfin_lq035q1_driver); | ||
859 | } | ||
860 | module_init(bfin_lq035q1_driver_init); | ||
861 | |||
862 | static void __exit bfin_lq035q1_driver_cleanup(void) | ||
863 | { | ||
864 | platform_driver_unregister(&bfin_lq035q1_driver); | ||
865 | } | ||
866 | module_exit(bfin_lq035q1_driver_cleanup); | ||
867 | 857 | ||
868 | MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); | 858 | MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); |
869 | MODULE_LICENSE("GPL"); | 859 | MODULE_LICENSE("GPL"); |