Commit bf6b4388c61cf88c6faa19cc45390fd36be8fb66

Authored by Jingoo Han
Committed by David S. Miller
1 parent 477c17dba1

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>

Showing 1 changed file with 1 additions and 14 deletions Side-by-side Diff

... ... @@ -183,20 +183,7 @@
183 183 },
184 184 };
185 185  
186   -static int __init amiga_gayle_ide_init(void)
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);
  186 +module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe);
200 187  
201 188 MODULE_LICENSE("GPL");
202 189 MODULE_ALIAS("platform:amiga-gayle-ide");