ide: use module_platform_driver()
[deliverable/linux.git] / drivers / ide / au1xxx-ide.c
index 259786ca8b7551c8e0afd03d843e6eef5b4ea9bb..07ea58084068e459211e977cbd926e233db19733 100644 (file)
@@ -592,18 +592,7 @@ static struct platform_driver au1200_ide_driver = {
        .remove         = au_ide_remove,
 };
 
-static int __init au_ide_init(void)
-{
-       return platform_driver_register(&au1200_ide_driver);
-}
-
-static void __exit au_ide_exit(void)
-{
-       platform_driver_unregister(&au1200_ide_driver);
-}
+module_platform_driver(au1200_ide_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("AU1200 IDE driver");
-
-module_init(au_ide_init);
-module_exit(au_ide_exit);
This page took 0.034587 seconds and 5 git commands to generate.