diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 11:27:36 -0500 |
---|---|---|
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) |
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 51beb85250d4..0a8440ae0565 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c | |||
@@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = { | |||
183 | }, | 183 | }, |
184 | }; | 184 | }; |
185 | 185 | ||
186 | static int __init amiga_gayle_ide_init(void) | 186 | module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe); |
187 | { | ||
188 | return platform_driver_probe(&amiga_gayle_ide_driver, | ||
189 | amiga_gayle_ide_probe); | ||
190 | } | ||
191 | |||
192 | module_init(amiga_gayle_ide_init); | ||
193 | |||
194 | static void __exit amiga_gayle_ide_exit(void) | ||
195 | { | ||
196 | platform_driver_unregister(&amiga_gayle_ide_driver); | ||
197 | } | ||
198 | |||
199 | module_exit(amiga_gayle_ide_exit); | ||
200 | 187 | ||
201 | MODULE_LICENSE("GPL"); | 188 | MODULE_LICENSE("GPL"); |
202 | MODULE_ALIAS("platform:amiga-gayle-ide"); | 189 | MODULE_ALIAS("platform:amiga-gayle-ide"); |