Skip to content

Commit 57e493a

Browse files
robherringffainelli
authored andcommitted
soc: bcm: 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. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230726233130.3811017-1-robh@kernel.org Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent 06c2afb commit 57e493a

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

drivers/soc/bcm/bcm63xx/bcm-pmb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/io.h>
99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/platform_device.h>
1312
#include <linux/pm_domain.h>
1413
#include <linux/reset/bcm63xx_pmb.h>

drivers/soc/bcm/bcm63xx/bcm63xx-power.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <linux/platform_device.h>
1515
#include <linux/pm_domain.h>
1616
#include <linux/of.h>
17-
#include <linux/of_device.h>
1817

1918
struct bcm63xx_power_dev {
2019
struct generic_pm_domain genpd;

drivers/soc/bcm/raspberrypi-power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include <linux/module.h>
10-
#include <linux/of_platform.h>
10+
#include <linux/of.h>
1111
#include <linux/platform_device.h>
1212
#include <linux/pm_domain.h>
1313
#include <dt-bindings/power/raspberrypi-power.h>

0 commit comments

Comments
 (0)