From: Brian Norris Date: Fri, 2 Nov 2012 07:46:16 +0000 (-0700) Subject: ahci_platform: convert to module_platform_driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a99e4768a6dcfa50d1cda1b2f55c9ea5c4213cc;p=openwrt%2Fstaging%2Fblogic.git ahci_platform: convert to module_platform_driver The ahci_platform driver can now use the module_platform_driver() macro. Signed-off-by: Brian Norris Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index c598fd7cbf3f..fbbfa2bccbcd 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -336,18 +336,7 @@ static struct platform_driver ahci_driver = { }, .id_table = ahci_devtype, }; - -static int __init ahci_init(void) -{ - return platform_driver_register(&ahci_driver); -} -module_init(ahci_init); - -static void __exit ahci_exit(void) -{ - platform_driver_unregister(&ahci_driver); -} -module_exit(ahci_exit); +module_platform_driver(ahci_driver); MODULE_DESCRIPTION("AHCI SATA platform driver"); MODULE_AUTHOR("Anton Vorontsov ");