diff mbox series

[v1,6/7] tty: Drop unused efm32 serial driver

Message ID 20210114151630.128830-7-u.kleine-koenig@pengutronix.de (mailing list archive)
State Superseded
Headers show
Series Remove ARM platform efm32 | expand

Commit Message

Uwe Kleine-König Jan. 14, 2021, 3:16 p.m. UTC
Support for this machine was just removed, so drop the now unused UART
driver, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/tty/serial/Kconfig       | 13 -------------
 drivers/tty/serial/Makefile      |  1 -
 include/uapi/linux/serial_core.h |  3 ---
 3 files changed, 17 deletions(-)

Comments

Greg Kroah-Hartman Jan. 14, 2021, 3:34 p.m. UTC | #1
On Thu, Jan 14, 2021 at 04:16:29PM +0100, Uwe Kleine-König wrote:
> Support for this machine was just removed, so drop the now unused UART
> driver, too.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/tty/serial/Kconfig       | 13 -------------
>  drivers/tty/serial/Makefile      |  1 -
>  include/uapi/linux/serial_core.h |  3 ---
>  3 files changed, 17 deletions(-)

Shouldn't you delete the .c file for the serial driver in this patch as
well?

greg k-h
Uwe Kleine-König Jan. 14, 2021, 3:52 p.m. UTC | #2
On Thu, Jan 14, 2021 at 04:34:11PM +0100, Greg Kroah-Hartman wrote:
> On Thu, Jan 14, 2021 at 04:16:29PM +0100, Uwe Kleine-König wrote:
> > Support for this machine was just removed, so drop the now unused UART
> > driver, too.
> > 
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> >  drivers/tty/serial/Kconfig       | 13 -------------
> >  drivers/tty/serial/Makefile      |  1 -
> >  include/uapi/linux/serial_core.h |  3 ---
> >  3 files changed, 17 deletions(-)
> 
> Shouldn't you delete the .c file for the serial driver in this patch as
> well?

Yes indeed. I did so in the wrong patch (#1) :-\

I will fix this in my tree for v2.

Best regards
Uwe
diff mbox series

Patch

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 34a2899e69c0..83f6ca4bf210 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1295,14 +1295,6 @@  config SERIAL_AR933X_NR_UARTS
 	  Set this to the number of serial ports you want the driver
 	  to support.
 
-config SERIAL_EFM32_UART
-	tristate "EFM32 UART/USART port"
-	depends on ARM && (ARCH_EFM32 || COMPILE_TEST)
-	select SERIAL_CORE
-	help
-	  This driver support the USART and UART ports on
-	  Energy Micro's efm32 SoCs.
-
 config SERIAL_MPS2_UART_CONSOLE
 	bool "MPS2 UART console support"
 	depends on SERIAL_MPS2_UART
@@ -1316,11 +1308,6 @@  config SERIAL_MPS2_UART
 	help
 	  This driver support the UART ports on ARM MPS2.
 
-config SERIAL_EFM32_UART_CONSOLE
-	bool "EFM32 UART/USART console support"
-	depends on SERIAL_EFM32_UART=y
-	select SERIAL_CORE_CONSOLE
-
 config SERIAL_ARC
 	tristate "ARC UART driver support"
 	select SERIAL_CORE
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile
index b85d53f9e9ff..ec2b74091f0c 100644
--- a/drivers/tty/serial/Makefile
+++ b/drivers/tty/serial/Makefile
@@ -73,7 +73,6 @@  obj-$(CONFIG_SERIAL_SIRFSOC) += sirfsoc_uart.o
 obj-$(CONFIG_SERIAL_TEGRA) += serial-tegra.o
 obj-$(CONFIG_SERIAL_TEGRA_TCU) += tegra-tcu.o
 obj-$(CONFIG_SERIAL_AR933X)   += ar933x_uart.o
-obj-$(CONFIG_SERIAL_EFM32_UART) += efm32-uart.o
 obj-$(CONFIG_SERIAL_ARC)	+= arc_uart.o
 obj-$(CONFIG_SERIAL_RP2)	+= rp2.o
 obj-$(CONFIG_SERIAL_FSL_LPUART)	+= fsl_lpuart.o
diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h
index 62c22045fe65..c4042dcfdc0c 100644
--- a/include/uapi/linux/serial_core.h
+++ b/include/uapi/linux/serial_core.h
@@ -208,9 +208,6 @@ 
 /* Atheros AR933X SoC */
 #define PORT_AR933X	99
 
-/* Energy Micro efm32 SoC */
-#define PORT_EFMUART   100
-
 /* ARC (Synopsys) on-chip UART */
 #define PORT_ARC       101