MIPS: Fix always CONFIG_LOONGSON_UART_BASE=y [Linux 2.6.38]

This Linux kernel change "MIPS: Fix always CONFIG_LOONGSON_UART_BASE=y" is included in the Linux 2.6.38 release. This change is authored by Yoichi Yuasa <yuasa [at] linux-mips.org> on Mon Feb 7 11:31:36 2011 +0900. The commit for this change in Linux stable tree is efe8dc5 (patch).

MIPS: Fix always CONFIG_LOONGSON_UART_BASE=y

Signed-off-by: Yoichi Yuasa <[email protected]>
Cc: linux-mips <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/2055/
Signed-off-by: Ralf Baechle <[email protected]>

There are 5 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/mips/loongson/Kconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/mips/loongson/Kconfig b/arch/mips/loongson/Kconfig
index 6e1b77f..aca93ee 100644
--- a/arch/mips/loongson/Kconfig
+++ b/arch/mips/loongson/Kconfig
@@ -1,6 +1,7 @@
+if MACH_LOONGSON
+
 choice
    prompt "Machine Type"
-   depends on MACH_LOONGSON

 config LEMOTE_FULOONG2E
    bool "Lemote Fuloong(2e) mini-PC"
@@ -87,3 +88,5 @@ config LOONGSON_UART_BASE
 config LOONGSON_MC146818
    bool
    default n
+
+endif # MACH_LOONGSON

Leave a Reply

Your email address will not be published. Required fields are marked *