uart: fix support sysrq function. [1/1]
authorYu Tu <yu.tu@amlogic.com>
Wed, 20 Jun 2018 03:14:39 +0000 (11:14 +0800)
committerYu Tu <yu.tu@amlogic.com>
Wed, 20 Jun 2018 03:18:30 +0000 (11:18 +0800)
PD#167742: uart: support sysrq

Change-Id: I67b183942047428a3aea35cbcf8ffae490319ac8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
drivers/amlogic/uart/meson_uart.c

index b86ef6e731aeace9ad975a873ed6ba56d5e5ec59..132fc0d53da989f291f05887a1d867aeb7205df1 100644 (file)
@@ -30,9 +30,8 @@
 #include <linux/pinctrl/consumer.h>
 #include <linux/clk-provider.h>
 #include <linux/amlogic/iomap.h>
-#include <linux/serial_core.h>
 
-#ifdef CONFIG_SUPPORT_SYSRQ
+#if defined(CONFIG_AMLOGIC_SERIAL_MESON_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
 #define SUPPORT_SYSRQ
 #endif
 #include <linux/serial_core.h>