]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Disable Amiga serial console support if modular
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 26 Oct 2008 18:51:14 +0000 (19:51 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 26 Oct 2008 19:11:21 +0000 (12:11 -0700)
commit0a2db68101354061178c0f2faa4c39a3e00e4e21
treed6b22893e372ecba9499389c5a9ab5056c31ea8e
parent3ad2ca74de3e075b76e51aeeb79f86177a7bc964
m68k: Disable Amiga serial console support if modular

If CONFIG_AMIGA_BUILTIN_SERIAL=m, I get the following warnings:

| drivers/char/amiserial.c: At top level:
| drivers/char/amiserial.c:2138: warning: data definition has no type or storage class
| drivers/char/amiserial.c:2138: warning: type defaults to 'int' in declaration of 'console_initcall'
| drivers/char/amiserial.c:2138: warning: parameter names (without types) in function declaration
| drivers/char/amiserial.c:2134: warning: 'amiserial_console_init' defined but not used

because console_initcall() is not defined (nor really sensible) in the
modular case.

So disable serial console support if the driver is modular.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/amiserial.c