From 99c8ea3e57e7b5551ffd9cd401c4bf302b5664e3 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 27 Nov 2011 14:44:26 +0800 Subject: SATA/PATA: convert drivers/ata/* to use module_platform_driver() This patch converts the drivers in drivers/ata/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Viresh Kumar Cc: Jeff Garzik Cc: Arnaud Patard Cc: Alessandro Zummo Cc: Sylvain Munaut Cc: Anton Vorontsov Cc: Marek Vasut Cc: Florian Fainelli Cc: Mark Miesfeld Cc: Ashish Kalra Cc: Paul Mundt Signed-off-by: Axel Lin Signed-off-by: Jeff Garzik --- drivers/ata/pata_arasan_cf.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'drivers/ata/pata_arasan_cf.c') diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index e8574bba3ee4..048589fad2ca 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c @@ -963,17 +963,7 @@ static struct platform_driver arasan_cf_driver = { }, }; -static int __init arasan_cf_init(void) -{ - return platform_driver_register(&arasan_cf_driver); -} -module_init(arasan_cf_init); - -static void __exit arasan_cf_exit(void) -{ - platform_driver_unregister(&arasan_cf_driver); -} -module_exit(arasan_cf_exit); +module_platform_driver(arasan_cf_driver); MODULE_AUTHOR("Viresh Kumar "); MODULE_DESCRIPTION("Arasan ATA Compact Flash driver"); -- cgit v1.2.3