serial: 8250: of: Fix the driver and actually compile the 8250_of
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 18 Dec 2015 13:00:49 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2016 22:45:53 +0000 (14:45 -0800)
The 8250_of never compiled since in the Kconfig we have SERIAL_OF_PLATFORM
but in the makefile we expect to have SERIAL_8250_OF...

When the 8250_of.c is actually compiled we will have two errors:
missing linux/nwpserial.h and 8250/8250.h.
Fix those as well at the same time when enable the compilation of the
driver.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Fixes: afd7f88f1577 ("serial: 8250: move of_serial code to 8250 directory")
Reported-by: Guenter Roeck <linux@roeck-us.net>
CC: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_of.c
drivers/tty/serial/8250/Makefile

index d66fd24f87cf33b7e59cf90060dbc4deea4bed01..33021c1f7d5575cc0aa6f0c1c8e25ce53cbf3e1d 100644 (file)
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
-#include <linux/nwpserial.h>
 #include <linux/clk.h>
 
-#include "8250/8250.h"
+#include "8250.h"
 
 struct of_serial_info {
        struct clk *clk;
index 4ecb80d3549ae06fb5be27fd93485b07ef818bf1..b9b9bca5b6c3d860294fdd3dd2cab0187b062cf9 100644 (file)
@@ -28,6 +28,6 @@ obj-$(CONFIG_SERIAL_8250_MT6577)      += 8250_mtk.o
 obj-$(CONFIG_SERIAL_8250_UNIPHIER)     += 8250_uniphier.o
 obj-$(CONFIG_SERIAL_8250_INGENIC)      += 8250_ingenic.o
 obj-$(CONFIG_SERIAL_8250_MID)          += 8250_mid.o
-obj-$(CONFIG_SERIAL_8250_OF)           += 8250_of.o
+obj-$(CONFIG_SERIAL_OF_PLATFORM)       += 8250_of.o
 
 CFLAGS_8250_ingenic.o += -I$(srctree)/scripts/dtc/libfdt