summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-lpc2k.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 20:46:16 +0300
committerWolfram Sang <wsa@kernel.org>2023-08-14 18:47:21 +0300
commit59738ab26644ecb9bd05378a948c4a6e036e4916 (patch)
tree2d7fe6996b7d7683c49dfb75f714f72f9d0e6f96 /drivers/i2c/busses/i2c-lpc2k.c
parent60c089b2e2c1c744de032c5b075f9349ae2d95c8 (diff)
downloadlinux-59738ab26644ecb9bd05378a948c4a6e036e4916.tar.xz
I2C: 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: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-lpc2k.c')
-rw-r--r--drivers/i2c/busses/i2c-lpc2k.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-lpc2k.c b/drivers/i2c/busses/i2c-lpc2k.c
index c61157f1409b..e3660333e91c 100644
--- a/drivers/i2c/busses/i2c-lpc2k.c
+++ b/drivers/i2c/busses/i2c-lpc2k.c
@@ -20,7 +20,6 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
-#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/sched.h>
#include <linux/time.h>