]> err.no Git - linux-2.6/commitdiff
Char: riscom8, change rc_init_drivers prototype
authorJiri Slaby <jirislaby@gmail.com>
Thu, 7 Feb 2008 08:16:36 +0000 (00:16 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:33 +0000 (08:42 -0800)
Let compiler decide if the rc_init_drivers function will be inlined and
mark it as __init, because it's called only from __init function.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/riscom8.c

index d130b87d8ed793186e63e13dbb7fc139378076b7..9b19abf29a2b1ad1f22db65d31a3524f4c98d777 100644 (file)
@@ -1618,7 +1618,7 @@ static const struct tty_operations riscom_ops = {
        .tiocmset = rc_tiocmset,
 };
 
-static inline int rc_init_drivers(void)
+static int __init rc_init_drivers(void)
 {
        int error;
        int i;