Skip to content

Commit

Permalink
Char: riscom8, change rc_init_drivers prototype
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 7, 2008
1 parent 319fe7c commit 1386a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1386a82

Please sign in to comment.