summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-cadence-ttc.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 19:44:09 +0200
committerRob Herring <robh@kernel.org>2023-08-28 20:30:57 +0200
commit6303d0693f7d6c44bb6eb0b29c906ee28156dd28 (patch)
tree04316c87d006db84af50007c57b23a035b89c7de /drivers/clocksource/timer-cadence-ttc.c
parentsparc: Explicitly include correct DT includes (diff)
downloadlinux-6303d0693f7d6c44bb6eb0b29c906ee28156dd28.tar.xz
linux-6303d0693f7d6c44bb6eb0b29c906ee28156dd28.zip
clocksource: 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 was 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. Link: https://lore.kernel.org/r/20230714174409.4053843-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/clocksource/timer-cadence-ttc.c')
-rw-r--r--drivers/clocksource/timer-cadence-ttc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-cadence-ttc.c b/drivers/clocksource/timer-cadence-ttc.c
index 0d52e28fea4d..32daaac9b132 100644
--- a/drivers/clocksource/timer-cadence-ttc.c
+++ b/drivers/clocksource/timer-cadence-ttc.c
@@ -13,6 +13,7 @@
#include <linux/clocksource.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
+#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/sched_clock.h>
#include <linux/module.h>