aboutsummaryrefslogtreecommitdiff
path: root/drivers/nvmem/sunplus-ocotp.c
diff options
context:
space:
mode:
authorGravatar Rob Herring <robh@kernel.org> 2023-08-23 14:27:35 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-08-23 16:34:01 +0200
commit9bf75da0e2613d64c3d5e965d49fb80820d367cf (patch)
tree83ae183ccbde7185203b748b794d6aef402bd571 /drivers/nvmem/sunplus-ocotp.c
parentnvmem: add new NXP QorIQ eFuse driver (diff)
downloadlinux-9bf75da0e2613d64c3d5e965d49fb80820d367cf.tar.gz
linux-9bf75da0e2613d64c3d5e965d49fb80820d367cf.tar.bz2
linux-9bf75da0e2613d64c3d5e965d49fb80820d367cf.zip
nvmem: 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> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20230823132744.350618-14-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/sunplus-ocotp.c')
-rw-r--r--drivers/nvmem/sunplus-ocotp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c
index f85350b17d67..f3a18aa0a6c7 100644
--- a/drivers/nvmem/sunplus-ocotp.c
+++ b/drivers/nvmem/sunplus-ocotp.c
@@ -13,8 +13,8 @@
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/module.h>
+#include <linux/mod_devicetable.h>
#include <linux/nvmem-provider.h>
-#include <linux/of_device.h>
#include <linux/platform_device.h>
/*