linux-sg2042/arch/mips/ath25
Matt Redfearn 9dd79fed1b MIPS: ath25: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE
Currently MIPS allnoconfig with CONFIG_ATH25=y fails to link due to
missing support for early_serial_setup():

  LD      vmlinux
arch/mips/ath25/devices.o: In function ath25_serial_setup':
devices.c:(.init.text+0x68): undefined reference to 'early_serial_setup'

Rather than adding dependencies to the platform to force inclusion of
SERIAL_8250_CONSOLE together with it's dependencies like TTY, HAS_IOMEM,
etc, just make ath25_serial_setup() a no-op when the dependency is not
selected in the kernel config.

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17700/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2018-01-10 16:37:28 +01:00
..
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
Platform
ar2315.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
ar2315.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ar2315_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
ar5312.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
ar5312.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ar5312_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
board.c MIPS: ATH25: Remove legacy __cpuinit section that crept in 2015-06-21 21:53:42 +02:00
devices.c MIPS: ath25: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE 2018-01-10 16:37:28 +01:00
devices.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
early_printk.c MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
prom.c