Skip to content

Commit 9ac21f4

Browse files
committed
mux: 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. Link: https://lore.kernel.org/r/20230714174754.4060608-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 233d687 commit 9ac21f4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/mux/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/mux/consumer.h>
2020
#include <linux/mux/driver.h>
2121
#include <linux/of.h>
22-
#include <linux/of_platform.h>
2322
#include <linux/slab.h>
2423

2524
/*

drivers/mux/mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/mfd/syscon.h>
1111
#include <linux/module.h>
1212
#include <linux/mux/driver.h>
13-
#include <linux/of_platform.h>
13+
#include <linux/of.h>
1414
#include <linux/platform_device.h>
1515
#include <linux/property.h>
1616
#include <linux/regmap.h>

0 commit comments

Comments
 (0)