Skip to content

Commit 7559e75

Browse files
robherringvinodkoul
authored andcommitted
phy: 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]> Acked-by: Marc Kleine-Budde <[email protected]> # for drivers/phy/phy-can-transceiver.c Acked-by: Heiko Stuebner <[email protected]> Acked-by: Sergio Paracuellos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1fdfa7c commit 7559e75

File tree

81 files changed

+65
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+65
-65
lines changed

drivers/phy/allwinner/phy-sun4i-usb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#include <linux/module.h>
2424
#include <linux/mutex.h>
2525
#include <linux/of.h>
26-
#include <linux/of_address.h>
27-
#include <linux/of_device.h>
2826
#include <linux/of_gpio.h>
2927
#include <linux/phy/phy.h>
3028
#include <linux/phy/phy-sun4i-usb.h>

drivers/phy/allwinner/phy-sun50i-usb3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/clk.h>
1717
#include <linux/err.h>
1818
#include <linux/io.h>
19+
#include <linux/mod_devicetable.h>
1920
#include <linux/module.h>
2021
#include <linux/phy/phy.h>
2122
#include <linux/platform_device.h>

drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include <linux/clk.h>
1414
#include <linux/delay.h>
1515
#include <linux/io.h>
16+
#include <linux/mod_devicetable.h>
1617
#include <linux/module.h>
17-
#include <linux/of_device.h>
1818
#include <linux/regmap.h>
1919
#include <linux/reset.h>
2020
#include <linux/phy/phy.h>

drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/regmap.h>
1212
#include <linux/delay.h>
1313
#include <linux/mfd/syscon.h>
14+
#include <linux/of.h>
1415
#include <linux/platform_device.h>
1516
#include <dt-bindings/phy/phy.h>
1617

drivers/phy/amlogic/phy-meson-axg-pcie.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*
55
* Copyright (C) 2020 Remi Pommarel <[email protected]>
66
*/
7+
#include <linux/mod_devicetable.h>
78
#include <linux/module.h>
89
#include <linux/phy/phy.h>
910
#include <linux/regmap.h>

drivers/phy/amlogic/phy-meson-g12a-mipi-dphy-analog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/regmap.h>
1414
#include <linux/delay.h>
1515
#include <linux/mfd/syscon.h>
16+
#include <linux/of.h>
1617
#include <linux/platform_device.h>
1718
#include <dt-bindings/phy/phy.h>
1819

drivers/phy/amlogic/phy-meson-g12a-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/delay.h>
1515
#include <linux/io.h>
1616
#include <linux/module.h>
17-
#include <linux/of_device.h>
17+
#include <linux/of.h>
1818
#include <linux/regmap.h>
1919
#include <linux/reset.h>
2020
#include <linux/phy/phy.h>

drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/bitops.h>
1212
#include <linux/clk.h>
1313
#include <linux/module.h>
14-
#include <linux/of_device.h>
14+
#include <linux/of.h>
1515
#include <linux/phy/phy.h>
1616
#include <linux/regmap.h>
1717
#include <linux/reset.h>

drivers/phy/amlogic/phy-meson-gxl-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <linux/clk.h>
99
#include <linux/delay.h>
1010
#include <linux/io.h>
11+
#include <linux/mod_devicetable.h>
1112
#include <linux/module.h>
12-
#include <linux/of_device.h>
1313
#include <linux/regmap.h>
1414
#include <linux/reset.h>
1515
#include <linux/phy/phy.h>

drivers/phy/amlogic/phy-meson8-hdmi-tx.c

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

0 commit comments

Comments
 (0)