From: Martin Sperl Date: Fri, 11 Sep 2015 11:38:03 +0000 (+0000) Subject: serial: of-serial: compile correctly when 8250 driver is compiled as module X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed4492fa91265ff7ffc69a4212533ebe3e7cbe18;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial: of-serial: compile correctly when 8250 driver is compiled as module If the 8250 driver is compiled as a module then CONFIG_SERIAL_8250_MODULE is defined and not CONFIG_SERIAL_8250. This results in all those code sections that require CONFIG_SERIAL_8250 to be defined are not included. This patch fixes the situation and allows 8250 and of-serial to be compiled as a module with the same functionality as when compiled into the kernel. Signed-off-by: Martin Sperl Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c index 6823df99bd76..10d8c9313e8a 100644 --- a/drivers/tty/serial/of_serial.c +++ b/drivers/tty/serial/of_serial.c @@ -21,6 +21,10 @@ #include #include +#ifdef CONFIG_SERIAL_8250_MODULE +#define CONFIG_SERIAL_8250 CONFIG_SERIAL_8250_MODULE +#endif + #include "8250/8250.h" struct of_serial_info {