summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-18 08:30:23 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-25 18:20:02 +0200
commit484468fb0f7dbac88f050009a5145ed1ee744a7e (patch)
tree161f44daab762a0a694ef9ad0a38037bc1cf6ca2 /drivers/usb/core
parent48cb8ff3e250301a5a48925281a7096969ab3a48 (diff)
downloadlinux-stable-484468fb0f7dbac88f050009a5145ed1ee744a7e.tar.gz
linux-stable-484468fb0f7dbac88f050009a5145ed1ee744a7e.tar.bz2
linux-stable-484468fb0f7dbac88f050009a5145ed1ee744a7e.zip
usb: 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. Acked-by: Herve Codina <herve.codina@bootlin.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230718143027.1064731-1-robh@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/message.c1
-rw-r--r--drivers/usb/core/of.c1
-rw-r--r--drivers/usb/core/usb.c1
3 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index b5811620f1de..0d2bfc909019 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -9,6 +9,7 @@
#include <linux/pci.h> /* for scatterlist macros */
#include <linux/usb.h>
#include <linux/module.h>
+#include <linux/of.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/timer.h>
diff --git a/drivers/usb/core/of.c b/drivers/usb/core/of.c
index 617e92569b2c..db4ccf9ce3d9 100644
--- a/drivers/usb/core/of.c
+++ b/drivers/usb/core/of.c
@@ -8,7 +8,6 @@
*/
#include <linux/of.h>
-#include <linux/of_platform.h>
#include <linux/usb/of.h>
/**
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 39bdf9589b06..bba87e5b7f8a 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -25,6 +25,7 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
+#include <linux/of.h>
#include <linux/string.h>
#include <linux/bitops.h>
#include <linux/slab.h>