Skip to content

Commit a2773f3

Browse files
robherringgclement
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> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
1 parent 06c2afb commit a2773f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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)