Skip to content

Commit 544885a

Browse files
robherringarndb
authored andcommitted
ARM: spear: 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. Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-15-d8de2cc88bff@kernel.org Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 1402f75 commit 544885a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-spear/spear1340.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define pr_fmt(fmt) "SPEAr1340: " fmt
1212

13-
#include <linux/of_platform.h>
13+
#include <linux/platform_device.h>
1414
#include <asm/mach/arch.h>
1515
#include "generic.h"
1616

0 commit comments

Comments
 (0)