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

Configure Feed

Select the types of activity you want to include in your feed.

soc: fsl: 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>
Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-23-d8de2cc88bff@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Rob Herring and committed by
Arnd Bergmann
5df5b2e0 1c37c34e

+5 -6
+2 -1
drivers/soc/fsl/dpaa2-console.c
··· 9 9 #define pr_fmt(fmt) "dpaa2-console: " fmt 10 10 11 11 #include <linux/module.h> 12 - #include <linux/of_device.h> 12 + #include <linux/of.h> 13 13 #include <linux/of_address.h> 14 14 #include <linux/miscdevice.h> 15 + #include <linux/platform_device.h> 15 16 #include <linux/uaccess.h> 16 17 #include <linux/slab.h> 17 18 #include <linux/fs.h>
+2 -1
drivers/soc/fsl/qe/qe.c
··· 25 25 #include <linux/iopoll.h> 26 26 #include <linux/crc32.h> 27 27 #include <linux/mod_devicetable.h> 28 - #include <linux/of_platform.h> 28 + #include <linux/of.h> 29 + #include <linux/platform_device.h> 29 30 #include <soc/fsl/qe/immap_qe.h> 30 31 #include <soc/fsl/qe/qe.h> 31 32
-1
drivers/soc/fsl/qe/qe_common.c
··· 16 16 #include <linux/genalloc.h> 17 17 #include <linux/init.h> 18 18 #include <linux/list.h> 19 - #include <linux/of_device.h> 20 19 #include <linux/spinlock.h> 21 20 #include <linux/export.h> 22 21 #include <linux/of.h>
+1 -3
drivers/soc/fsl/qe/qe_tdm.c
··· 9 9 */ 10 10 #include <linux/io.h> 11 11 #include <linux/kernel.h> 12 - #include <linux/of_address.h> 13 - #include <linux/of_irq.h> 14 - #include <linux/of_platform.h> 12 + #include <linux/of.h> 15 13 #include <soc/fsl/qe/qe_tdm.h> 16 14 17 15 static int set_tdm_framer(const char *tdm_framer_type)