]> Git Repo - J-linux.git/commitdiff
pwm: pxa: Explicitly include correct DT includes
authorRob Herring <[email protected]>
Mon, 9 Oct 2023 17:29:17 +0000 (12:29 -0500)
committerThierry Reding <[email protected]>
Fri, 13 Oct 2023 08:07:18 +0000 (10:07 +0200)
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]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/pwm-pxa.c

index faf6b35b9336564a0dc09685a9f84aca332dc485..76685f926c758603307987f9b13205cf2dc7286a 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/clk.h>
 #include <linux/io.h>
 #include <linux/pwm.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 
 #include <asm/div64.h>
 
This page took 0.046848 seconds and 4 git commands to generate.