Skip to content

Commit 6922250

Browse files
robherringbroonie
authored andcommitted
spi: stm32: 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 was 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: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231017203352.2698326-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a8ecbc5 commit 6922250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
#include <linux/interrupt.h>
1414
#include <linux/iopoll.h>
1515
#include <linux/module.h>
16-
#include <linux/of_platform.h>
16+
#include <linux/of.h>
17+
#include <linux/platform_device.h>
1718
#include <linux/pinctrl/consumer.h>
1819
#include <linux/pm_runtime.h>
1920
#include <linux/reset.h>

0 commit comments

Comments
 (0)