remove unused RS_TABLE definitions
PATCH 1/1 remove unused RS_TABLE definitions
RS_TABLE is defined by lots of architectures, but only referenced in arch/{mips,ppc}:
$ grep -r RS_TABLE * | grep -v '#define RS_TABLE'
arch/mips/mips-boards/generic/gdb_hook.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/boot/common/ns16550.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/4xx/ebony.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/4xx/ocotea.c:struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/ev64260_setup.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/lopec_setup.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/pplus_setup.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/platforms/prpmc800_setup.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {
arch/ppc/syslib/gen550_dbg.c:static struct serial_state rs_table[RS_TABLE_SIZE] = {This patch removes most of the unused definitions from 2.6.
include/asm-alpha/serial.h +0 -3
@@ -26,9 +26,6 @@#define FOURPORT_FLAGS ASYNC_FOURPORT#define ACCENT_FLAGS 0#define BOCA_FLAGS 0 -#define RS_TABLE_SIZE 64 -#else -#define RS_TABLE_SIZE 4#endif #define STD_SERIAL_PORT_DEFNS \
include/asm-arm/arch-adifcc/serial.h +0 -2
@@ -21,8 +21,6 @@#ifdef CONFIG_ARCH_ADI_EVB -#define RS_TABLE_SIZE 1 -/* * One serial port, int goes to FIQ, so we run in polled mode */
include/asm-arm/arch-anakin/serial.h +0 -1
@@ -20,7 +20,6 @@/* * UART3 and UART4 are not supported yet */ -#define RS_TABLE_SIZE 3#define STD_SERIAL_PORT_DEFNS \ { 0, 0, IO_BASE + UART0, IRQ_UART0, 0 }, \ { 0, 0, IO_BASE + UART1, IRQ_UART1, 0 }, \
include/asm-arm/arch-cl7500/serial.h +0 -2
@@ -22,8 +22,6 @@*/ #define BASE_BAUD (1843200 / 16) -#define RS_TABLE_SIZE 16 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* UART CLK PORT IRQ FLAGS */
include/asm-arm/arch-ebsa110/serial.h +0 -2
@@ -24,8 +24,6 @@#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 2 -/* UART CLK PORT IRQ FLAGS */ #define STD_SERIAL_PORT_DEFNS \ { 0, BASE_BAUD, 0x3F8, 1, STD_COM_FLAGS },/* ttyS0 */ \
include/asm-arm/arch-ebsa285/serial.h +0 -2
@@ -28,8 +28,6 @@#define _SER_IRQ0 IRQ_ISA_UART#define _SER_IRQ1 IRQ_ISA_UART2 -#define RS_TABLE_SIZE 16 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* UART CLK PORT IRQ FLAGS */
include/asm-arm/arch-epxa10db/serial.h +0 -2
@@ -36,8 +36,6 @@#define _SER_IRQ0 IRQ_UARTINT0#define _SER_IRQ1 IRQ_UARTINT1 -#define RS_TABLE_SIZE 2 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* UART CLK PORT IRQ FLAGS */
include/asm-arm/arch-integrator/serial.h +0 -2
@@ -35,8 +35,6 @@#define _SER_IRQ0 IRQ_UARTINT0#define _SER_IRQ1 IRQ_UARTINT1 -#define RS_TABLE_SIZE 2 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* UART CLK PORT IRQ FLAGS */
include/asm-arm/arch-iop3xx/serial.h +0 -4
@@ -20,8 +20,6 @@#define IRQ_UART1 IRQ_IQ80310_UART1#define IRQ_UART2 IRQ_IQ80310_UART2 -#define RS_TABLE_SIZE 2 -#define STD_SERIAL_PORT_DEFNS \/* UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, IQ80310_UART2, IRQ_UART2, STD_COM_FLAGS },/* ttyS0 */ \
@@ -32,8 +30,6 @@#ifdef CONFIG_ARCH_IQ80321 #define IRQ_UART1 IRQ_IQ80321_UART - -#define RS_TABLE_SIZE 1#define STD_SERIAL_PORT_DEFNS \/* UART CLK PORT IRQ FLAGS */ \
include/asm-arm/arch-l7200/serial.h +0 -2
@@ -27,8 +27,6 @@*/ #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 2 -#define STD_SERIAL_PORT_DEFNS \/* MAGIC UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, UART1_BASE, IRQ_UART_1, STD_COM_FLAGS },/* ttyLU0 */ \
include/asm-arm/arch-pxa/serial.h +0 -2
@@ -15,8 +15,6 @@/* Standard COM flags */ #define STD_COM_FLAGS (ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 5 -#define STD_SERIAL_PORT_DEFNS \ { \ type: PORT_PXA, \
include/asm-arm/arch-rpc/serial.h +0 -2
@@ -24,8 +24,6 @@#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 16 -/* UART CLK PORT IRQ FLAGS */ #define STD_SERIAL_PORT_DEFNS \ { 0, BASE_BAUD, 0x3F8, 10, STD_COM_FLAGS },/* ttyS0 */ \
include/asm-arm/arch-sa1100/serial.h +0 -4
@@ -19,16 +19,12 @@*/ #ifdef CONFIG_SA1100_TRIZEPS -#define RS_TABLE_SIZE 2 -#define STD_SERIAL_PORT_DEFNS \/* UART CLK PORT IRQ FLAGS */ \ { 0, 1500000, TRIZEPS_UART5, IRQ_GPIO16, STD_COM_FLAGS }, \ { 0, 1500000, TRIZEPS_UART6, IRQ_GPIO17, STD_COM_FLAGS }#else - -#define RS_TABLE_SIZE 4/* * This assumes you have a 1.8432 MHz clock for your UART.
include/asm-arm/arch-shark/serial.h +0 -2
@@ -20,8 +20,6 @@#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 2 -/* UART CLK PORT IRQ FLAGS */ #define STD_SERIAL_PORT_DEFNS \ { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },/* ttyS0 */ \
include/asm-arm/arch-tbox/serial.h +0 -2
@@ -20,8 +20,6 @@*/ #define BASE_BAUD (1843200 / 16) -#define RS_TABLE_SIZE 2 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* UART CLK PORT IRQ FLAGS */
include/asm-arm26/serial.h +0 -2
@@ -27,8 +27,6 @@#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) -#define RS_TABLE_SIZE 16 -#if defined(CONFIG_ARCH_A5K )/* UART CLK PORT IRQ FLAGS */
include/asm-i386/serial.h +0 -3
@@ -27,9 +27,6 @@#define ACCENT_FLAGS 0#define BOCA_FLAGS 0#define HUB6_FLAGS 0 -#define RS_TABLE_SIZE 64 -#else -#define RS_TABLE_SIZE #endif #define MCA_COM_FLAGS (STD_COM_FLAGS|ASYNC_BOOT_ONLYMCA)
include/asm-m68k/serial.h +0 -3
@@ -30,9 +30,6 @@#define FOURPORT_FLAGS ASYNC_FOURPORT#define ACCENT_FLAGS 0#define BOCA_FLAGS 0 -#define RS_TABLE_SIZE 64 -#else -#define RS_TABLE_SIZE 4#endif #define STD_SERIAL_PORT_DEFNS \
include/asm-sh/bigsur/serial.h +0 -3
@@ -11,9 +11,6 @@#define BASE_BAUD (3379200 / 16) -/* Leave 2 spare for possible PCMCIA serial cards */ -#define RS_TABLE_SIZE 3 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
include/asm-sh/ec3104/serial.h +0 -2
@@ -4,8 +4,6 @@* guess. */ #define BASE_BAUD (16800000 / 16) -#define RS_TABLE_SIZE 3 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* there is a fourth serial port with the expected values as well, but
include/asm-sh/serial-bigsur.h +0 -3
@@ -11,9 +11,6 @@#define BASE_BAUD (3379200 / 16) -/* Leave 2 spare for possible PCMCIA serial cards */ -#define RS_TABLE_SIZE 3 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
include/asm-sh/serial-ec3104.h +0 -2
@@ -4,8 +4,6 @@* guess. */ #define BASE_BAUD (16800000 / 16) -#define RS_TABLE_SIZE 3 -#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* there is a fourth serial port with the expected values as well, but
include/asm-sh/serial.h +0 -4
@@ -29,15 +29,11 @@#ifdef CONFIG_HD64465 #include <asm/hd64465.h> -#define RS_TABLE_SIZE 1 -#define STD_SERIAL_PORT_DEFNS \/* UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS }/* ttyS0 */ #else - -#define RS_TABLE_SIZE 2#define STD_SERIAL_PORT_DEFNS \/* UART CLK PORT IRQ FLAGS */ \
include/asm-v850/serial.h +0 -1
@@ -16,7 +16,6 @@#define irq_cannonicalize (x) (x)#define BASE_BAUD 250000/* (16MHz / (16 * 38400)) * 9600 */ -#define RS_TABLE_SIZE 1#define SERIAL_PORT_DFNS \ { 0, BASE_BAUD, CB_UART_BASE, IRQ_CB_EXTSIO, STD_COM_FLAGS },
include/asm-x86_64/serial.h +0 -3
@@ -27,9 +27,6 @@#define ACCENT_FLAGS 0#define BOCA_FLAGS 0#define HUB6_FLAGS 0 -#define RS_TABLE_SIZE 64 -#else -#define RS_TABLE_SIZE #endif #define MCA_COM_FLAGS (STD_COM_FLAGS|ASYNC_BOOT_ONLYMCA)