MIPS: Remove not used 8250-platform.c
authorTiezhu Yang <yangtiezhu@loongson.cn>
Sat, 16 May 2020 02:15:49 +0000 (10:15 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sun, 17 May 2020 08:25:26 +0000 (10:25 +0200)
When CONFIG_HAVE_STD_PC_SERIAL_PORT is set, there exists build errors
of 8250-platform.c due to linux/module.h is not included.

CONFIG_HAVE_STD_PC_SERIAL_PORT is not used in arch/mips for many years,
8250-platform.c is also not built and used, so it is not necessary to
fix the build errors, just remove the not used file 8250-platform.c and
the related code in Kconfig and Makefile.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig
arch/mips/kernel/8250-platform.c [deleted file]
arch/mips/kernel/Makefile

index bfa9cd9..b2ff77f 100644 (file)
@@ -1358,9 +1358,6 @@ config MIPS_L1_CACHE_SHIFT
        default "4" if MIPS_L1_CACHE_SHIFT_4
        default "5"
 
-config HAVE_STD_PC_SERIAL_PORT
-       bool
-
 config ARC_CMDLINE_ONLY
        bool
 
diff --git a/arch/mips/kernel/8250-platform.c b/arch/mips/kernel/8250-platform.c
deleted file mode 100644 (file)
index 5c6b2ab..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
- */
-#include <linux/init.h>
-#include <linux/serial_8250.h>
-
-#define PORT(base, int)                                                        \
-{                                                                      \
-       .iobase         = base,                                         \
-       .irq            = int,                                          \
-       .uartclk        = 1843200,                                      \
-       .iotype         = UPIO_PORT,                                    \
-       .flags          = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,            \
-       .regshift       = 0,                                            \
-}
-
-static struct plat_serial8250_port uart8250_data[] = {
-       PORT(0x3F8, 4),
-       PORT(0x2F8, 3),
-       PORT(0x3E8, 4),
-       PORT(0x2E8, 3),
-       { },
-};
-
-static struct platform_device uart8250_device = {
-       .name                   = "serial8250",
-       .id                     = PLAT8250_DEV_PLATFORM,
-       .dev                    = {
-               .platform_data  = uart8250_data,
-       },
-};
-
-static int __init uart8250_init(void)
-{
-       return platform_device_register(&uart8250_device);
-}
-
-module_init(uart8250_init);
-
-MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
-MODULE_LICENSE("GPL");
-MODULE_DESCRIPTION("Generic 8250 UART probe driver");
index d6e97df..8c7a043 100644 (file)
@@ -98,8 +98,6 @@ obj-$(CONFIG_MIPSR2_TO_R6_EMULATOR)   += mips-r2-to-r6-emul.o
 
 CFLAGS_cpu-bugs64.o    = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -x c /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi)
 
-obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT)  += 8250-platform.o
-
 obj-$(CONFIG_PERF_EVENTS)      += perf_event.o
 obj-$(CONFIG_HW_PERF_EVENTS)   += perf_event_mipsxx.o