summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/envctrl.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:50:48 -0600
committerRob Herring <robh@kernel.org>2023-08-28 13:36:24 -0500
commit878f27741f7eb8bb918ce82934d27fe7765abc82 (patch)
tree64bb8f7f1703258db0a136bbb9d817ae1b859955 /drivers/sbus/char/envctrl.c
parent9ac21f40c7e2524e4bc0774e7e2255e0cbe161df (diff)
downloadlinux-stable-878f27741f7eb8bb918ce82934d27fe7765abc82.tar.gz
linux-stable-878f27741f7eb8bb918ce82934d27fe7765abc82.tar.bz2
linux-stable-878f27741f7eb8bb918ce82934d27fe7765abc82.zip
sbus: 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: Sam Ravnborg <sam@ravnborg.org> Link: https://lore.kernel.org/r/20230714175048.4066006-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r--drivers/sbus/char/envctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index ea914a7eaa7f..3dd7274cb0a3 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -28,7 +28,7 @@
#include <linux/reboot.h>
#include <linux/slab.h>
#include <linux/of.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include <asm/envctrl.h>