aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-gpio.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2023-07-14 17:49:52 +0000
committerMark Brown <[email protected]>2023-07-14 19:53:00 +0000
commit749396cb29a7d82cb5e324bf61be3fc948d97141 (patch)
tree79d3f2a21e0d3c32e973b34bc6c7041d0f40a407 /drivers/spi/spi-gpio.c
parentspi: Use struct_size() helper (diff)
downloadkernel-749396cb29a7d82cb5e324bf61be3fc948d97141.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r--drivers/spi/spi-gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index 612db477ad12..8aa905e407a8 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -10,7 +10,6 @@
#include <linux/platform_device.h>
#include <linux/gpio/consumer.h>
#include <linux/of.h>
-#include <linux/of_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>