diff options
author | Christoph Jaeger <christophjaeger@linux.com> | 2014-04-09 09:28:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-06 06:16:46 +0200 |
commit | a53dae49b2fea43d8f4ec5aeca0e288bbc8d6895 (patch) | |
tree | ad43b4d4624ee1216d224795e34a89966ac3d17f /drivers/ide/au1xxx-ide.c | |
parent | Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-a53dae49b2fea43d8f4ec5aeca0e288bbc8d6895.tar.xz linux-a53dae49b2fea43d8f4ec5aeca0e288bbc8d6895.zip |
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/au1xxx-ide.c')
-rw-r--r-- | drivers/ide/au1xxx-ide.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/au1xxx-ide.c b/drivers/ide/au1xxx-ide.c index 259786ca8b75..07ea58084068 100644 --- a/drivers/ide/au1xxx-ide.c +++ b/drivers/ide/au1xxx-ide.c @@ -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); |