summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/spear/pinctrl-spear300.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 19:48:54 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-07-20 21:41:24 +0200
commit060f03e95454a0f4a1deff3e5f912e461ae0f0c5 (patch)
treee6f60d6382c99a05ce9fa17eba046db952a30432 /drivers/pinctrl/spear/pinctrl-spear300.c
parentdt-bindings: pinctrl: qcom: lpass-lpi: Remove qcom,adsp-bypass-mode (diff)
downloadlinux-060f03e95454a0f4a1deff3e5f912e461ae0f0c5.tar.xz
linux-060f03e95454a0f4a1deff3e5f912e461ae0f0c5.zip
pinctrl: 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: Damien Le Moal <dlemoal@kernel.org> Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230714174901.4062397-1-robh@kernel.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/spear/pinctrl-spear300.c')
-rw-r--r--drivers/pinctrl/spear/pinctrl-spear300.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-spear300.c b/drivers/pinctrl/spear/pinctrl-spear300.c
index d53a04597cbe..7530252ef7bc 100644
--- a/drivers/pinctrl/spear/pinctrl-spear300.c
+++ b/drivers/pinctrl/spear/pinctrl-spear300.c
@@ -11,7 +11,7 @@
#include <linux/err.h>
#include <linux/init.h>
-#include <linux/of_device.h>
+#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include "pinctrl-spear3xx.h"