Skip to content

Commit d4b564a

Browse files
robherringclaudiubeznea
authored andcommitted
ARM: at91: 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. A couple of other includes are unused and can be dropped too. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230717225429.3211307-1-robh@kernel.org Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent 11795e0 commit d4b564a

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

arch/arm/mach-at91/pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/of.h>
1313
#include <linux/of_fdt.h>
1414
#include <linux/of_platform.h>
15+
#include <linux/platform_device.h>
1516
#include <linux/parser.h>
1617
#include <linux/suspend.h>
1718

arch/arm/mach-at91/samv7.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
* Copyright (C) 2013 Atmel,
66
* 2016 Andras Szemzo <szemzo.andras@gmail.com>
77
*/
8-
#include <linux/of.h>
9-
#include <linux/of_platform.h>
10-
#include <linux/of_address.h>
11-
#include <linux/slab.h>
128
#include <asm/mach/arch.h>
13-
#include <asm/mach/map.h>
14-
#include <asm/system_misc.h>
15-
#include "generic.h"
169

1710
static const char *const samv7_dt_board_compat[] __initconst = {
1811
"atmel,samv7",

0 commit comments

Comments
 (0)