diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-11-02 03:46:16 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-03 05:14:31 -0500 |
commit | 9a99e4768a6dcfa50d1cda1b2f55c9ea5c4213cc (patch) | |
tree | a5003dbf8bd0a838042d3d5107fc38afa6a2d79d /drivers/ata | |
parent | 941c77fd0f2f6f5964a3f9fba4e8779714faf832 (diff) |
ahci_platform: convert to module_platform_driver
The ahci_platform driver can now use the module_platform_driver() macro.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci_platform.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 = { | |||
336 | }, | 336 | }, |
337 | .id_table = ahci_devtype, | 337 | .id_table = ahci_devtype, |
338 | }; | 338 | }; |
339 | 339 | module_platform_driver(ahci_driver); | |
340 | static int __init ahci_init(void) | ||
341 | { | ||
342 | return platform_driver_register(&ahci_driver); | ||
343 | } | ||
344 | module_init(ahci_init); | ||
345 | |||
346 | static void __exit ahci_exit(void) | ||
347 | { | ||
348 | platform_driver_unregister(&ahci_driver); | ||
349 | } | ||
350 | module_exit(ahci_exit); | ||
351 | 340 | ||
352 | MODULE_DESCRIPTION("AHCI SATA platform driver"); | 341 | MODULE_DESCRIPTION("AHCI SATA platform driver"); |
353 | MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>"); | 342 | MODULE_AUTHOR("Anton Vorontsov <avorontsov@ru.mvista.com>"); |