Skip to content

Commit 573cbf4

Browse files
robherringthierryreding
authored andcommitted
gpu/host1x: 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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e4681be commit 573cbf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/gpu/host1x/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <linux/device.h>
77
#include <linux/kref.h>
88
#include <linux/of.h>
9-
#include <linux/of_platform.h>
9+
#include <linux/of_device.h>
1010
#include <linux/pid.h>
1111
#include <linux/slab.h>
1212

drivers/gpu/host1x/dev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
#include <linux/io.h>
1212
#include <linux/list.h>
1313
#include <linux/module.h>
14-
#include <linux/of_device.h>
1514
#include <linux/of.h>
15+
#include <linux/of_platform.h>
16+
#include <linux/platform_device.h>
1617
#include <linux/pm_runtime.h>
1718
#include <linux/slab.h>
1819

0 commit comments

Comments
 (0)