[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191122135851.5145-1-liulichao@loongson.cn>
Date: Fri, 22 Nov 2019 21:58:51 +0800
From: Lichao Liu <liulichao@...ngson.cn>
To: chenhc@...ote.com, jiaxun.yang@...goat.com
Cc: ralf@...ux-mips.org, paulburton@...nel.org, jhogan@...nel.org,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
Lichao Liu <liulichao@...ngson.cn>
Subject: [PATCH] MIPS:Loongson64:Limit 8259.h by config
Not all platform config CONFIG_I8259, So Use the macro CONFIG_I8259
to control whether to include the asm/i8259.h header file.
Signed-off-by: Lichao Liu <liulichao@...ngson.cn>
---
arch/mips/loongson64/pm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/loongson64/pm.c b/arch/mips/loongson64/pm.c
index 7c8556f09781..08238a58107f 100644
--- a/arch/mips/loongson64/pm.c
+++ b/arch/mips/loongson64/pm.c
@@ -9,7 +9,9 @@
#include <linux/interrupt.h>
#include <linux/pm.h>
+#ifdef CONFIG_I8259
#include <asm/i8259.h>
+#endif
#include <asm/mipsregs.h>
#include <loongson.h>
--
2.17.1
Powered by blists - more mailing lists