From: Mariusz Gorski Date: Thu, 27 Nov 2014 21:36:46 +0000 (+0100) Subject: staging: panel: Call init function directly X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d9114767d1d19a77ebfbab6764281abf84df7862;p=deliverable%2Flinux.git staging: panel: Call init function directly Remove useless function and let the kernel call the actual init function directly. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c index 3dd318af1595..0d3f09e7ee4a 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);