Skip to content

Commit 9e08ac1

Browse files
robherringbp3tk0v
authored andcommitted
EDAC/armada_xp: 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. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lore.kernel.org/r/20231013190342.246973-1-robh@kernel.org
1 parent 5f57b71 commit 9e08ac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/edac/armada_xp_edac.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
#include <linux/kernel.h>
77
#include <linux/edac.h>
8-
#include <linux/of_platform.h>
8+
#include <linux/of.h>
9+
#include <linux/of_device.h>
10+
#include <linux/platform_device.h>
911

1012
#include <asm/hardware/cache-l2x0.h>
1113
#include <asm/hardware/cache-aurora-l2.h>

0 commit comments

Comments
 (0)