summaryrefslogtreecommitdiff
path: root/drivers/ide/ide_platform.c
diff options
context:
space:
mode:
authorChristoph Jaeger <christophjaeger@linux.com>2014-04-09 09:28:01 +0200
committerDavid S. Miller <davem@davemloft.net>2014-08-05 21:16:46 -0700
commita53dae49b2fea43d8f4ec5aeca0e288bbc8d6895 (patch)
treead43b4d4624ee1216d224795e34a89966ac3d17f /drivers/ide/ide_platform.c
parente7fda6c4c3c1a7d6996dd75fd84670fa0b5d448f (diff)
ide: use module_platform_driver()
Eliminate boilerplate code by using module_platform_driver(). Signed-off-by: Christoph Jaeger <christophjaeger@linux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide_platform.c')
-rw-r--r--drivers/ide/ide_platform.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/ide_platform.c b/drivers/ide/ide_platform.c
index a8b4b6af80e7..d48de6de503e 100644
--- a/drivers/ide/ide_platform.c
+++ b/drivers/ide/ide_platform.c
@@ -131,19 +131,8 @@ static struct platform_driver platform_ide_driver = {
.remove = plat_ide_remove,
};
-static int __init platform_ide_init(void)
-{
- return platform_driver_register(&platform_ide_driver);
-}
-
-static void __exit platform_ide_exit(void)
-{
- platform_driver_unregister(&platform_ide_driver);
-}
+module_platform_driver(platform_ide_driver);
MODULE_DESCRIPTION("Platform IDE driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pata_platform");
-
-module_init(platform_ide_init);
-module_exit(platform_ide_exit);