Skip to content

Commit

Permalink
ahci_platform: convert to module_platform_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Norris authored and Jeff Garzik committed Dec 3, 2012
1 parent 941c77f commit 9a99e47
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/ata/ahci_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <avorontsov@ru.mvista.com>");
Expand Down

0 comments on commit 9a99e47

Please sign in to comment.