diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index c598fd7cbf3f1ede5b2c838f020f109e9d1cd15b..fbbfa2bccbcd86f439a96a4bec2959de9c89b0ce 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 ");