diff options
author | Fabio Porcedda <fabio.porcedda@gmail.com> | 2013-03-15 06:49:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 13:42:06 -0400 |
commit | 5bcdf0ce2bf31b09b8707f972c193c6118385526 (patch) | |
tree | de3d94fd447ea9aa1506898e97f4684b2b24dbdb | |
parent | cd9a8fb5a98d38aa81ef090e3b481c1f4f38ba95 (diff) |
parport: amiga: use module_platform_driver_probe()
Use module_platform_driver_probe() macro which makes the code smaller
and simpler.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Matt Porter <mporter@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/parport/parport_amiga.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/parport/parport_amiga.c b/drivers/parport/parport_amiga.c index ee78e0ee6e05..09503b8d12e6 100644 --- a/drivers/parport/parport_amiga.c +++ b/drivers/parport/parport_amiga.c | |||
@@ -244,20 +244,7 @@ static struct platform_driver amiga_parallel_driver = { | |||
244 | }, | 244 | }, |
245 | }; | 245 | }; |
246 | 246 | ||
247 | static int __init amiga_parallel_init(void) | 247 | module_platform_driver_probe(amiga_parallel_driver, amiga_parallel_probe); |
248 | { | ||
249 | return platform_driver_probe(&amiga_parallel_driver, | ||
250 | amiga_parallel_probe); | ||
251 | } | ||
252 | |||
253 | module_init(amiga_parallel_init); | ||
254 | |||
255 | static void __exit amiga_parallel_exit(void) | ||
256 | { | ||
257 | platform_driver_unregister(&amiga_parallel_driver); | ||
258 | } | ||
259 | |||
260 | module_exit(amiga_parallel_exit); | ||
261 | 248 | ||
262 | MODULE_AUTHOR("Joerg Dorchain <joerg@dorchain.net>"); | 249 | MODULE_AUTHOR("Joerg Dorchain <joerg@dorchain.net>"); |
263 | MODULE_DESCRIPTION("Parport Driver for Amiga builtin Port"); | 250 | MODULE_DESCRIPTION("Parport Driver for Amiga builtin Port"); |