diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-09 10:01:15 +0800 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-12-19 20:21:43 +0000 |
commit | 00f1f199eaab5589aed653dec953dd57d6c9bcda (patch) | |
tree | da771278615cec99dfe447bce96a774f68d91f02 /drivers/video | |
parent | 70f6255a488f62a8f054907479b0eb6615b9bcb5 (diff) | |
download | linux-3.10-00f1f199eaab5589aed653dec953dd57d6c9bcda.tar.gz linux-3.10-00f1f199eaab5589aed653dec953dd57d6c9bcda.tar.bz2 linux-3.10-00f1f199eaab5589aed653dec953dd57d6c9bcda.zip |
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')
-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 b2252fea285..6d30428e9cf 100644 --- a/drivers/video/pnx4008/pnxrgbfb.c +++ b/drivers/video/pnx4008/pnxrgbfb.c @@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = { .remove = rgbfb_remove, }; -static int __init rgbfb_init(void) -{ - return platform_driver_register(&rgbfb_driver); -} - -static void __exit rgbfb_exit(void) -{ - platform_driver_unregister(&rgbfb_driver); -} - -module_init(rgbfb_init); -module_exit(rgbfb_exit); +module_platform_driver(rgbfb_driver); MODULE_LICENSE("GPL"); diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c index 50e00395240..c5c741452ca 100644 --- a/drivers/video/pnx4008/sdum.c +++ b/drivers/video/pnx4008/sdum.c @@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = { .resume = sdum_resume, }; -int __init sdum_init(void) -{ - return platform_driver_register(&sdum_driver); -} - -static void __exit sdum_exit(void) -{ - platform_driver_unregister(&sdum_driver); -}; - -module_init(sdum_init); -module_exit(sdum_exit); +module_platform_driver(sdum_driver); MODULE_LICENSE("GPL"); |