summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:49:09 -0600
committerHans de Goede <hdegoede@redhat.com>2023-07-26 10:58:36 +0200
commitb9fe9c9ef97dcf9c87e778c2f5348d3be52091fc (patch)
tree1d5cad4df123d17547810682b2ed1b9b194cc4f7 /drivers/platform/chrome
parent81ad56950b7648c103940e74a8476bc71d4f9c55 (diff)
downloadlinux-stable-b9fe9c9ef97dcf9c87e778c2f5348d3be52091fc.tar.gz
linux-stable-b9fe9c9ef97dcf9c87e778c2f5348d3be52091fc.tar.bz2
linux-stable-b9fe9c9ef97dcf9c87e778c2f5348d3be52091fc.zip
platform: 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> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20230714174909.4062739-1-robh@kernel.org Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r--drivers/platform/chrome/cros_ec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
index 8b7949220382..5d36fbc75e1b 100644
--- a/drivers/platform/chrome/cros_ec.c
+++ b/drivers/platform/chrome/cros_ec.c
@@ -12,6 +12,7 @@
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/of_platform.h>
+#include <linux/platform_device.h>
#include <linux/platform_data/cros_ec_commands.h>
#include <linux/platform_data/cros_ec_proto.h>
#include <linux/slab.h>