aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2023-07-24 20:54:54 +0000
committerAlexandre Belloni <[email protected]>2023-07-27 21:31:29 +0000
commit48144c2890503b919bc8ee128b63e37008d69250 (patch)
treefa95781c05f6bb237eb51fbf7e228fc9964fc250 /drivers/rtc/rtc-stm32.c
parentrtc: rv3028: Add support for "aux-voltage-chargeable" property (diff)
downloadkernel-48144c2890503b919bc8ee128b63e37008d69250.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
-rw-r--r--drivers/rtc/rtc-stm32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c
index 85689192fa7a..3ae875b19af8 100644
--- a/drivers/rtc/rtc-stm32.c
+++ b/drivers/rtc/rtc-stm32.c
@@ -11,7 +11,8 @@
#include <linux/ioport.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
#include <linux/pm_wakeirq.h>
#include <linux/regmap.h>
#include <linux/rtc.h>