]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: Remove __init from early_dbgp_init() prototype
authorChris Rorvick <chris@rorvick.com>
Wed, 5 Nov 2014 01:18:54 +0000 (19:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:02:38 +0000 (09:02 -0800)
Specifying these attributes in both the prototype and the function
definition is unnecessary and could cause confusion or bugs if they are
inconsistent.  As such, __init should only be specified at the function
definition.

Keith Owens suggested this as a janitorial task on LKML several years
ago:

  https://lkml.org/lkml/2006/1/14/305

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/ehci-dbgp.h

index 796c1cd6f26a5bb0580d25da4319284464a98c3b..7344d9e591cce044f3281723f16cb30977722160 100644 (file)
@@ -43,8 +43,7 @@ struct ehci_dbg_port {
 };
 
 #ifdef CONFIG_EARLY_PRINTK_DBGP
-#include <linux/init.h>
-extern int __init early_dbgp_init(char *s);
+extern int early_dbgp_init(char *s);
 extern struct console early_dbgp_console;
 #endif /* CONFIG_EARLY_PRINTK_DBGP */