Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: samsung: drop earlycon support for unsupported platforms

Commit 1ea35b355722 ("ARM: s3c: remove s3c24xx specific hacks") removed
support here for several old platforms, but kept support for earlycon
for those same platforms.

As earlycon support for otherwise unsupported platforms doesn't seem to
be useful, just drop it as well.

Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20231019100639.4026283-1-andre.draszik@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

André Draszik and committed by
Greg Kroah-Hartman
9cffa831 f16f577b

+1 -15
+1 -15
drivers/tty/serial/samsung_tty.c
··· 2735 2735 .rxfifo_mask = S3C2410_UFSTAT_RXFULL | S3C2410_UFSTAT_RXMASK, 2736 2736 }; 2737 2737 2738 - static int __init s3c2410_early_console_setup(struct earlycon_device *device, 2739 - const char *opt) 2740 - { 2741 - device->port.private_data = &s3c2410_early_console_data; 2742 - return samsung_early_console_setup(device, opt); 2743 - } 2744 - 2745 - OF_EARLYCON_DECLARE(s3c2410, "samsung,s3c2410-uart", 2746 - s3c2410_early_console_setup); 2747 - 2748 - /* S3C2412, S3C2440, S3C64xx */ 2738 + /* S3C64xx */ 2749 2739 static struct samsung_early_console_data s3c2440_early_console_data = { 2750 2740 .txfull_mask = S3C2440_UFSTAT_TXFULL, 2751 2741 .rxfifo_mask = S3C2440_UFSTAT_RXFULL | S3C2440_UFSTAT_RXMASK, ··· 2748 2758 return samsung_early_console_setup(device, opt); 2749 2759 } 2750 2760 2751 - OF_EARLYCON_DECLARE(s3c2412, "samsung,s3c2412-uart", 2752 - s3c2440_early_console_setup); 2753 - OF_EARLYCON_DECLARE(s3c2440, "samsung,s3c2440-uart", 2754 - s3c2440_early_console_setup); 2755 2761 OF_EARLYCON_DECLARE(s3c6400, "samsung,s3c6400-uart", 2756 2762 s3c2440_early_console_setup); 2757 2763