Re: [PATCH v1 1/1] serial: core: Remove unused PORT_* definitions

From: Andy Shevchenko
Date: Mon Aug 21 2023 - 04:22:55 EST


On Fri, Aug 18, 2023 at 02:12:29PM +0300, Andy Shevchenko wrote:
> For the last couple of years Linux kernel got rid of a few architectures
> and many platforms. Hence some PORT_* definitions in the serial_core.h
> become unused and redundant. Remove them for good.

Below are results via Debian Code Search.

Note, I excluded Linux kernel itself from the "user" and Hurd, which seems
to have Linux kernel v2.6 which is _provider_ of the definition(s).

...

> -#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */

ifdeffed, safe to remove.

> -#define PORT_S3C2410 55
> -#define PORT_LH7A40X 57
> -#define PORT_S3C2440 61
> -#define PORT_MPSC 63
> -#define PORT_S3C2400 67
> -#define PORT_M32R_SIO 68
> -#define PORT_S3C2412 73
> -#define PORT_BFIN 75
> -#define PORT_BFIN_SPORT 79
> -#define PORT_MN10300 80
> -#define PORT_MN10300_CTS 81
> -#define PORT_NWPSERIAL 85
> -#define PORT_TILEGX 106
> -#define PORT_CRIS 112

Unused.

--
With Best Regards,
Andy Shevchenko