diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-08 21:01:15 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-12-19 15:21:43 -0500 |
commit | 00f1f199eaab5589aed653dec953dd57d6c9bcda (patch) | |
tree | da771278615cec99dfe447bce96a774f68d91f02 /drivers/video/pnx4008 | |
parent | 70f6255a488f62a8f054907479b0eb6615b9bcb5 (diff) |
video: pnx4008: convert drivers/video/pnx4008/* to use module_platform_driver()
This patch converts the drivers in drivers/video/pnx4008/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/pnx4008')
-rw-r--r-- | drivers/video/pnx4008/pnxrgbfb.c | 13 | ||||
-rw-r--r-- | drivers/video/pnx4008/sdum.c | 13 |
2 files changed, 2 insertions, 24 deletions
diff --git a/drivers/video/pnx4008/pnxrgbfb.c b/drivers/video/pnx4008/pnxrgbfb.c index b2252fea2858..6d30428e9cf9 100644 --- a/drivers/video/pnx4008/pnxrgbfb.c +++ b/drivers/video/pnx4008/pnxrgbfb.c | |||
@@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = { | |||
193 | .remove = rgbfb_remove, | 193 | .remove = rgbfb_remove, |
194 | }; | 194 | }; |
195 | 195 | ||
196 | static int __init rgbfb_init(void) | 196 | module_platform_driver(rgbfb_driver); |
197 | { | ||
198 | return platform_driver_register(&rgbfb_driver); | ||
199 | } | ||
200 | |||
201 | static void __exit rgbfb_exit(void) | ||
202 | { | ||
203 | platform_driver_unregister(&rgbfb_driver); | ||
204 | } | ||
205 | |||
206 | module_init(rgbfb_init); | ||
207 | module_exit(rgbfb_exit); | ||
208 | 197 | ||
209 | MODULE_LICENSE("GPL"); | 198 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c index 50e00395240f..c5c741452cac 100644 --- a/drivers/video/pnx4008/sdum.c +++ b/drivers/video/pnx4008/sdum.c | |||
@@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = { | |||
856 | .resume = sdum_resume, | 856 | .resume = sdum_resume, |
857 | }; | 857 | }; |
858 | 858 | ||
859 | int __init sdum_init(void) | 859 | module_platform_driver(sdum_driver); |
860 | { | ||
861 | return platform_driver_register(&sdum_driver); | ||
862 | } | ||
863 | |||
864 | static void __exit sdum_exit(void) | ||
865 | { | ||
866 | platform_driver_unregister(&sdum_driver); | ||
867 | }; | ||
868 | |||
869 | module_init(sdum_init); | ||
870 | module_exit(sdum_exit); | ||
871 | 860 | ||
872 | MODULE_LICENSE("GPL"); | 861 | MODULE_LICENSE("GPL"); |