Skip to content

Commit 1402f75

Browse files
robherringarndb
authored andcommitted
ARM: mvebu: 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 <robh@kernel.org> Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-14-d8de2cc88bff@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent d6c97c9 commit 1402f75

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

arch/arm/mach-mvebu/kirkwood.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/of_address.h>
1616
#include <linux/of_net.h>
1717
#include <linux/of_platform.h>
18+
#include <linux/platform_device.h>
1819
#include <linux/slab.h>
1920
#include <asm/hardware/cache-feroceon-l2.h>
2021
#include <asm/mach/arch.h>

arch/arm/mach-mvebu/pmsu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#include <linux/kernel.h>
2424
#include <linux/mbus.h>
2525
#include <linux/mvebu-pmsu.h>
26+
#include <linux/of.h>
2627
#include <linux/of_address.h>
27-
#include <linux/of_device.h>
2828
#include <linux/platform_device.h>
2929
#include <linux/resource.h>
3030
#include <linux/slab.h>

0 commit comments

Comments
 (0)