aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/gayle.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 11:27:36 -0500
committerDavid S. Miller <davem@davemloft.net>2013-03-08 12:38:15 -0500
commitbf6b4388c61cf88c6faa19cc45390fd36be8fb66 (patch)
treee128fa809ce72741e97c78724d9d91642cd7dae9 /drivers/ide/gayle.c
parent477c17dba125b9b500763f5437fa5051f75b95bf (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.c15
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
186static int __init amiga_gayle_ide_init(void) 186module_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
192module_init(amiga_gayle_ide_init);
193
194static void __exit amiga_gayle_ide_exit(void)
195{
196 platform_driver_unregister(&amiga_gayle_ide_driver);
197}
198
199module_exit(amiga_gayle_ide_exit);
200 187
201MODULE_LICENSE("GPL"); 188MODULE_LICENSE("GPL");
202MODULE_ALIAS("platform:amiga-gayle-ide"); 189MODULE_ALIAS("platform:amiga-gayle-ide");