From 00f1f199eaab5589aed653dec953dd57d6c9bcda Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 9 Dec 2011 10:01:15 +0800 Subject: 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 Signed-off-by: Axel Lin Signed-off-by: Florian Tobias Schandinat --- drivers/video/pnx4008/pnxrgbfb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'drivers/video/pnx4008/pnxrgbfb.c') 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"); -- cgit v1.2.3-70-g09d2