Skip to content

Commit 32bc729

Browse files
committed
hte: 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. Acked-by: Dipen Patel <dipenp@nvidia.com> Link: https://lore.kernel.org/r/20230714174600.4057041-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 408d808 commit 32bc729

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/hte/hte-tegra194.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/stat.h>
1313
#include <linux/interrupt.h>
1414
#include <linux/of.h>
15-
#include <linux/of_device.h>
1615
#include <linux/platform_device.h>
1716
#include <linux/hte.h>
1817
#include <linux/uaccess.h>

drivers/hte/hte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
#include <linux/err.h>
1111
#include <linux/slab.h>
1212
#include <linux/of.h>
13-
#include <linux/of_device.h>
1413
#include <linux/mutex.h>
1514
#include <linux/uaccess.h>
1615
#include <linux/hte.h>
1716
#include <linux/delay.h>
1817
#include <linux/debugfs.h>
18+
#include <linux/device.h>
1919

2020
#define HTE_TS_NAME_LEN 10
2121

0 commit comments

Comments
 (0)