]> Git Repo - J-linux.git/commitdiff
clocksource: Explicitly include correct DT includes
authorRob Herring <[email protected]>
Fri, 14 Jul 2023 17:44:09 +0000 (11:44 -0600)
committerDaniel Lezcano <[email protected]>
Fri, 18 Aug 2023 10:16:01 +0000 (12:16 +0200)
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]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/clocksource/bcm2835_timer.c
drivers/clocksource/nomadik-mtu.c
drivers/clocksource/sh_cmt.c
drivers/clocksource/timer-cadence-ttc.c
drivers/clocksource/timer-gxp.c
drivers/clocksource/timer-integrator-ap.c
drivers/clocksource/timer-tegra186.c
drivers/clocksource/timer-ti-dm.c

index 1592650b2c92e0d84988c2ed45658140911c15ff..319c0c780a15a77473445d920f602fc3525ff53a 100644 (file)
@@ -10,9 +10,9 @@
 #include <linux/irqreturn.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/sched_clock.h>
index 1cf3304652d61729ebf007820b99ee2c50398a81..53d0159cc6be48645e6cf5d1054c48f88934963d 100644 (file)
@@ -10,9 +10,9 @@
 #include <linux/io.h>
 #include <linux/clockchips.h>
 #include <linux/clocksource.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <linux/clk.h>
 #include <linux/jiffies.h>
 #include <linux/delay.h>
index e81c588d9afe206912e12c0f77c48ff94fb82f8a..26919556ef5f0b70bd8b0e276831c6e68e85ffc7 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
index 0d52e28fea4ded6cd8aff791fefce2ad66484fb3..32daaac9b13208fc92604c89b625ec914ef3e357 100644 (file)
@@ -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>
index fe4fa8d7b3f1322d259f5c49a13261efe6b81dfa..57aa2e2cce53a513f56f6044275a24778908705a 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/sched_clock.h>
 
 #define TIMER0_FREQ    1000000
index b0fcbaac58b0d96d62f2bc06a88972a0d7f14303..a4c700b11dc0e81321fc56f855bf5f60deef0e94 100644 (file)
@@ -7,9 +7,9 @@
 
 #include <linux/clk.h>
 #include <linux/clocksource.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
-#include <linux/of_platform.h>
 #include <linux/clockchips.h>
 #include <linux/interrupt.h>
 #include <linux/sched_clock.h>
index 83d08591ea0a3d0b5e6a67786e301b37b5852817..304537dadf2c1c14ff08aa54b6f3b1bb457d20b0 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/watchdog.h>
index 349236a7ba5ff218be5cf90a035b457f82997639..09ab29cb7f6416c6849a5dd164e43935e1f82efb 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/err.h>
 #include <linux/pm_runtime.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/platform_data/dmtimer-omap.h>
 
This page took 0.073102 seconds and 4 git commands to generate.