diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 16:27:36 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-08 12:38:15 -0500 |
commit | bf6b4388c61cf88c6faa19cc45390fd36be8fb66 (patch) | |
tree | e128fa809ce72741e97c78724d9d91642cd7dae9 /drivers/ide/gayle.c | |
parent | 477c17dba125b9b500763f5437fa5051f75b95bf (diff) | |
download | op-kernel-dev-bf6b4388c61cf88c6faa19cc45390fd36be8fb66.zip op-kernel-dev-bf6b4388c61cf88c6faa19cc45390fd36be8fb66.tar.gz |
ide: gayle: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/gayle.c')
-rw-r--r-- | drivers/ide/gayle.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c index 51beb85..0a8440a 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c @@ -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"); |