Skip to content

Commit e1a7566

Browse files
robherringtsbogend
authored andcommitted
MIPS: More explicit DT include clean-ups
A couple more clean-ups in the MIPS code. 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: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 0723807 commit e1a7566

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

arch/mips/cavium-octeon/octeon-platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
*/
99

1010
#include <linux/etherdevice.h>
11+
#include <linux/of.h>
1112
#include <linux/of_platform.h>
1213
#include <linux/of_fdt.h>
14+
#include <linux/platform_device.h>
1315
#include <linux/libfdt.h>
1416

1517
#include <asm/octeon/octeon.h>

arch/mips/cavium-octeon/octeon-usb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
#include <linux/io.h>
1616
#include <linux/module.h>
1717
#include <linux/mutex.h>
18+
#include <linux/of.h>
1819
#include <linux/of_platform.h>
20+
#include <linux/platform_device.h>
1921

2022
/*
2123
* USB Control Register

arch/mips/ralink/ill_acc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
*/
66

77
#include <linux/interrupt.h>
8+
#include <linux/of.h>
89
#include <linux/of_platform.h>
910
#include <linux/of_irq.h>
11+
#include <linux/platform_device.h>
1012

1113
#include <asm/mach-ralink/ralink_regs.h>
1214

0 commit comments

Comments
 (0)