Skip to content

Commit

Permalink
phy: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
  • Loading branch information
trini committed May 7, 2024
1 parent 99fbb0e commit 5323767
Show file tree
Hide file tree
Showing 51 changed files with 3 additions and 51 deletions.
1 change: 0 additions & 1 deletion drivers/phy/allwinner/phy-sun4i-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* SPDX-License-Identifier: GPL-2.0+
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/bcm6318-usbh-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/bcm6348-usbh-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/bcm6358-usbh-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/bcm6368-usbh-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright 2013 Florian Fainelli <florian@openwrt.org>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/cadence/phy-cadence-sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*
*/
#include <common.h>
#include <clk.h>
#include <linux/delay.h>
#include <linux/clk-provider.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/cadence/phy-cadence-torrent.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*
*/

#include <common.h>
#include <clk.h>
#include <generic-phy.h>
#include <reset.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/keystone-usb-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/marvell/comphy_a3700.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Marvell International Ltd.
*/

#include <common.h>
#include <fdt_support.h>
#include <log.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/marvell/comphy_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/

#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <asm/global_data.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/phy/marvell/comphy_cp110.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Marvell International Ltd.
*/

#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/global_data.h>
Expand All @@ -12,6 +11,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/printk.h>

#include "comphy_core.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/marvell/comphy_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Marvell International Ltd.
*/

#include <common.h>
#include <log.h>
#include <asm/io.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-axg-mipi-dphy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-axg-mipi-pcie-analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-g12a-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Neil Armstrong <narmstron@baylibre.com>
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-g12a-usb3-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Neil Armstrong <narmstron@baylibre.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-gxbb-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Author: Beniamino Galvani <b.galvani@gmail.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/meson-gxl-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Neil Armstrong <narmstron@baylibre.com>
*/

#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <bitfield.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/mt76x8-usb-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <clk.h>
#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/nop-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include <clk.h>
#include <common.h>
#include <dm.h>
#include <dm/device.h>
#include <dm/device_compat.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/omap-usb2-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/

#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-ab8500-usb.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-apple-atc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2022 Mark Kettenis <kettenis@openbsd.org>
*/

#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-bcm-sr-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2019 Broadcom
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <asm/io.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/phy/phy-core-mipi-dphy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Copyright (C) 2018 Cadence Design Systems Inc.
*/

#include <common.h>
#include <div64.h>
#include <linux/kernel.h>
#include <linux/time.h>

#include <phy-mipi-dphy.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/phy/phy-da8xx-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* DT support added by: Adam Ford <aford173@gmail.com>
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <time.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
#include <asm/arch/hardware.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-imx8mq-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*
*/

#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-mtk-tphy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Ryder Lee <ryder.lee@mediatek.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-npcm-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2021 Nuvoton Technology Corp.
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <regmap.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-rcar-gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/

#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-rcar-gen3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
*/

#include <common.h>
#include <clk.h>
#include <div64.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-stm32-usbphyc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_PHY

#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-ti-am654.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Kishon Vijay Abraham I <kishon@ti.com>
*/

#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_PHY

#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/phy-zynqmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
*/

#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/qcom/msm8916-usbh-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2018 Ramon Fried <ramon.fried@gmail.com>
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/qcom/phy-qcom-ipq4019-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include <clk.h>
#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/qcom/phy-qcom-usb-hs-28nm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Based on Linux driver
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/qcom/phy-qcom-usb-ss.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Based on Linux driver
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/renesas/r8a779f0-ether-serdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <asm/io.h>
#include <clk-uclass.h>
#include <clk.h>
#include <common.h>
#include <div64.h>
#include <dm.h>
#include <dm/device_compat.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/lists.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright (C) 2016 ROCKCHIP, Inc.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-typec.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Kever Yang <kever.yang@rock-chips.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-usbdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2021 Rockchip Electronics Co., Ltd
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/sandbox-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/phy/socionext/phy-uniphier-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Copyright 2019-2021 Socionext, Inc.
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <linux/bitops.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/phy/socionext/phy-uniphier-usb3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Copyright 2019-2023 Socionext, Inc.
*/

#include <common.h>
#include <dm.h>
#include <generic-phy.h>

Expand Down
Loading

0 comments on commit 5323767

Please sign in to comment.