serial: 8250_fsl: Move fsl8250_data to ACPI section
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 15 Sep 2021 12:58:34 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 14:59:13 +0000 (16:59 +0200)
The fsl8250_data structure is only used by ACPI support.
Hence move its definition to the driver's ACPI section.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/e406730a5eab880448d6bb55fbce492d281034ef.1631710623.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_fsl.c

index fc65a22..9c01c53 100644 (file)
 
 #include "8250.h"
 
-struct fsl8250_data {
-       int     line;
-};
-
 int fsl8250_handle_irq(struct uart_port *port)
 {
        unsigned char lsr, orig_lsr;
@@ -90,6 +86,10 @@ int fsl8250_handle_irq(struct uart_port *port)
 EXPORT_SYMBOL_GPL(fsl8250_handle_irq);
 
 #ifdef CONFIG_ACPI
+struct fsl8250_data {
+       int     line;
+};
+
 static int fsl8250_acpi_probe(struct platform_device *pdev)
 {
        struct fsl8250_data *data;