diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-05 04:29:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 21:55:23 +0100 |
commit | fec6bee367357d9dd3ab3a7c56293214e49c371c (patch) | |
tree | 0d9ab084c407f81890a144c690595033414e76e9 /drivers/tty/amiserial.c | |
parent | serial: vt8500_serial: Convert to devm_ioremap_resource() (diff) | |
download | linux-fec6bee367357d9dd3ab3a7c56293214e49c371c.tar.xz linux-fec6bee367357d9dd3ab3a7c56293214e49c371c.zip |
TTY: amiserial, 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/amiserial.c')
-rw-r--r-- | drivers/tty/amiserial.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index fc700342d43f..083710e02367 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c @@ -1798,19 +1798,7 @@ static struct platform_driver amiga_serial_driver = { }, }; -static int __init amiga_serial_init(void) -{ - return platform_driver_probe(&amiga_serial_driver, amiga_serial_probe); -} - -module_init(amiga_serial_init); - -static void __exit amiga_serial_exit(void) -{ - platform_driver_unregister(&amiga_serial_driver); -} - -module_exit(amiga_serial_exit); +module_platform_driver_probe(amiga_serial_driver, amiga_serial_probe); #if defined(CONFIG_SERIAL_CONSOLE) && !defined(MODULE) |