Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
Browse files Browse the repository at this point in the history
Pull IDE cleanup from David Miller:
 "Just one minor cleanup"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
  ide: use module_platform_driver()
  • Loading branch information
torvalds committed Aug 6, 2014
2 parents 049711b + a53dae4 commit 85417ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions drivers/ide/au1xxx-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
13 changes: 1 addition & 12 deletions drivers/ide/ide_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 85417ae

Please sign in to comment.