Skip to content

Commit

Permalink
TTY: amiserial, use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 82b2313 commit fec6bee
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/tty/amiserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fec6bee

Please sign in to comment.