summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-qcom-qspi.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:49:52 -0600
committerMark Brown <broonie@kernel.org>2023-07-14 20:53:00 +0100
commit749396cb29a7d82cb5e324bf61be3fc948d97141 (patch)
tree79d3f2a21e0d3c32e973b34bc6c7041d0f40a407 /drivers/spi/spi-qcom-qspi.c
parent75e308ffc4f0d36b895f1110ece8b77d4116fdb1 (diff)
downloadlinux-stable-749396cb29a7d82cb5e324bf61be3fc948d97141.tar.gz
linux-stable-749396cb29a7d82cb5e324bf61be3fc948d97141.tar.bz2
linux-stable-749396cb29a7d82cb5e324bf61be3fc948d97141.zip
spi: 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/20230714174955.4064174-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-qcom-qspi.c')
-rw-r--r--drivers/spi/spi-qcom-qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-qcom-qspi.c b/drivers/spi/spi-qcom-qspi.c
index 5a98c52bad32..a0ad9802b606 100644
--- a/drivers/spi/spi-qcom-qspi.c
+++ b/drivers/spi/spi-qcom-qspi.c
@@ -9,7 +9,7 @@
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
#include <linux/pinctrl/consumer.h>
#include <linux/pm_runtime.h>
#include <linux/pm_opp.h>