aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/serial/ma35d1_serial.c
diff options
context:
space:
mode:
authorGravatar Rob Herring <robh@kernel.org> 2023-07-24 14:54:38 -0600
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-07-25 20:19:05 +0200
commit29e5c442e553cea180682d54ac0e2e95250fa668 (patch)
treec7ed5c686ff0d33c2b164dbde69c80cd7a6e0bbb /drivers/tty/serial/ma35d1_serial.c
parentserial: qcom-geni: use icc tag defines (diff)
downloadlinux-29e5c442e553cea180682d54ac0e2e95250fa668.tar.gz
linux-29e5c442e553cea180682d54ac0e2e95250fa668.tar.bz2
linux-29e5c442e553cea180682d54ac0e2e95250fa668.zip
tty: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> # for imx Link: https://lore.kernel.org/r/20230724205440.767071-1-robh@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/ma35d1_serial.c')
-rw-r--r--drivers/tty/serial/ma35d1_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ma35d1_serial.c b/drivers/tty/serial/ma35d1_serial.c
index 2604b4d9fb78..789593495a80 100644
--- a/drivers/tty/serial/ma35d1_serial.c
+++ b/drivers/tty/serial/ma35d1_serial.c
@@ -8,7 +8,7 @@
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/of.h>
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
#include <linux/iopoll.h>
#include <linux/serial_core.h>
#include <linux/slab.h>