提交 d9114767 编写于 作者: M Mariusz Gorski 提交者: Greg Kroah-Hartman

staging: panel: Call init function directly

Remove useless function and let the kernel call the actual
init function directly.
Signed-off-by: NMariusz Gorski <marius.gorski@gmail.com>
Acked-by: NWilly Tarreau <w@1wt.eu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 59a66a24
......@@ -2222,7 +2222,7 @@ static struct parport_driver panel_driver = {
};
/* init function */
static int panel_init(void)
static int __init panel_init_module(void)
{
/* for backwards compatibility */
if (keypad_type < 0)
......@@ -2334,11 +2334,6 @@ static int panel_init(void)
return 0;
}
static int __init panel_init_module(void)
{
return panel_init();
}
static void __exit panel_cleanup_module(void)
{
unregister_reboot_notifier(&panel_notifier);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册