Skip to content

Commit

Permalink
ide: gayle: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jingoo Han authored and davem330 committed Mar 8, 2013
1 parent 477c17d commit bf6b438
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/ide/gayle.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = {
},
};

static int __init amiga_gayle_ide_init(void)
{
return platform_driver_probe(&amiga_gayle_ide_driver,
amiga_gayle_ide_probe);
}

module_init(amiga_gayle_ide_init);

static void __exit amiga_gayle_ide_exit(void)
{
platform_driver_unregister(&amiga_gayle_ide_driver);
}

module_exit(amiga_gayle_ide_exit);
module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe);

MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:amiga-gayle-ide");

0 comments on commit bf6b438

Please sign in to comment.