diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 11:48:35 -0600 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-07-17 11:52:56 +0530 |
commit | 7559e7572c03e433efec7734af6a674fdd83dd68 (patch) | |
tree | 40eced5e24995541bbe54b68e9c3792f2ee94360 /drivers/phy/allwinner | |
parent | 1fdfa7cccd35519d97a1f301b8143ea4196b2d16 (diff) | |
download | linux-7559e7572c03e433efec7734af6a674fdd83dd68.tar.gz linux-7559e7572c03e433efec7734af6a674fdd83dd68.tar.bz2 linux-7559e7572c03e433efec7734af6a674fdd83dd68.zip |
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 <robh@kernel.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for drivers/phy/phy-can-transceiver.c
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20230714174841.4061919-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/allwinner')
-rw-r--r-- | drivers/phy/allwinner/phy-sun4i-usb.c | 2 | ||||
-rw-r--r-- | drivers/phy/allwinner/phy-sun50i-usb3.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 56d53f78d002..ec551464dd4f 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -23,8 +23,6 @@ #include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/of_gpio.h> #include <linux/phy/phy.h> #include <linux/phy/phy-sun4i-usb.h> diff --git a/drivers/phy/allwinner/phy-sun50i-usb3.c b/drivers/phy/allwinner/phy-sun50i-usb3.c index 84055b720016..363f9a0df503 100644 --- a/drivers/phy/allwinner/phy-sun50i-usb3.c +++ b/drivers/phy/allwinner/phy-sun50i-usb3.c @@ -16,6 +16,7 @@ #include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> |