summaryrefslogtreecommitdiff
path: root/drivers/staging/panel
diff options
context:
space:
mode:
authorMariusz Gorski <marius.gorski@gmail.com>2014-11-27 21:36:46 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-03 00:34:34 (GMT)
commitd9114767d1d19a77ebfbab6764281abf84df7862 (patch)
tree6d47720f18f77fc0f5f545da1f0ffefe18f57f80 /drivers/staging/panel
parent59a66a24e2e0658cabbabe5b5426ef4aafe87b12 (diff)
downloadlinux-d9114767d1d19a77ebfbab6764281abf84df7862.tar.xz
staging: panel: Call init function directly
Remove useless function and let the kernel call the actual init function directly. Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com> Acked-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r--drivers/staging/panel/panel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 3dd318a..0d3f09e 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -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);