summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-lpc24xx.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-24 22:54:54 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-07-27 23:31:29 +0200
commit48144c2890503b919bc8ee128b63e37008d69250 (patch)
treefa95781c05f6bb237eb51fbf7e228fc9964fc250 /drivers/rtc/rtc-lpc24xx.c
parentrtc: rv3028: Add support for "aux-voltage-chargeable" property (diff)
downloadlinux-48144c2890503b919bc8ee128b63e37008d69250.tar.xz
linux-48144c2890503b919bc8ee128b63e37008d69250.zip
rtc: 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> Link: https://lore.kernel.org/r/20230724205456.767430-1-robh@kernel.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-lpc24xx.c')
-rw-r--r--drivers/rtc/rtc-lpc24xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-lpc24xx.c b/drivers/rtc/rtc-lpc24xx.c
index a4612e543f35..df17c48ff086 100644
--- a/drivers/rtc/rtc-lpc24xx.c
+++ b/drivers/rtc/rtc-lpc24xx.c
@@ -9,9 +9,8 @@
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
#include <linux/module.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>