Skip to content

Commit

Permalink
pci: 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.

Reviewed-by: Heiko Schocher <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed May 7, 2024
1 parent 9dea8fe commit 8db017c
Show file tree
Hide file tree
Showing 46 changed files with 10 additions and 46 deletions.
1 change: 0 additions & 1 deletion drivers/pci/pci-aardvark.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci-emul-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pci-rcar-gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) 2018 Marek Vasut <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <clk.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci-rcar-gen3.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Author: Phil Edworthy <[email protected]>
*/

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

#define LOG_CATEGORY UCLASS_PCI

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pci_auto.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Copyright (c) 2021 Maciej W. Rozycki <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_auto_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* Written by Simon Glass <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Wolfgang Denk, DENX Software Engineering, [email protected].
*/

#include <common.h>
#include <dm.h>
#include <env.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*
* Copyright (C) 2014 Google, Inc
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_ftpci100.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later

#include <common.h>
#include <pci.h>
#include <dm.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_mpc85xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Heiko Schocher, DENX Software Engineering, [email protected].
*
*/
#include <common.h>
#include <asm/bitops.h>
#include <pci.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_mvebu.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* Pali Rohár <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pci_rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#define LOG_CATEGORY UCLASS_PCI

#include <common.h>
#include <bios_emul.h>
#include <bloblist.h>
#include <bootstage.h>
Expand All @@ -36,6 +35,7 @@
#include <pci.h>
#include <pci_rom.h>
#include <spl.h>
#include <time.h>
#include <vesa.h>
#include <video.h>
#include <acpi/acpi_s3.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pci_sh7751.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <dm.h>
#include <pci.h>
#include <asm/processor.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#define pr_fmt(fmt) "tegra-pcie: " fmt

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pci_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2015 Google, Inc
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* Author: Marc Zyngier <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_brcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Copyright (C) 2020 Nicolas Saenz Julienne <[email protected]>
*/

#include <common.h>
#include <errno.h>
#include <dm.h>
#include <dm/ofnode.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_dw_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Copyright (C) 2018 Texas Instruments, Inc
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_dw_meson.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Copyright (c) 2021 Rockchip, Inc.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/pci/pcie_dw_mvebu.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* - drivers/pci/pcie_xilinx.c
*/

#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
#include <time.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_dw_rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (c) 2021 Rockchip, Inc.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_dw_sifive.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <asm/io.h>
#include <asm-generic/gpio.h>
#include <clk.h>
#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_dw_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2018 Texas Instruments, Inc
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_ecam_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright (C) 2016 Imagination Technologies
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <linux/ioport.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_ecam_synquacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Copyright (C) 2021 Linaro Ltd.
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pcie_fsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Hou Zhiqiang <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_fsl_fixup.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Hou Zhiqiang <[email protected]>
*/

#include <common.h>
#ifdef CONFIG_OF_BOARD_SETUP
#include <dm.h>
#include <fdt_support.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* those too in order to have a single modern PCIe iMX driver.
*/

#include <common.h>
#include <init.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_intel_fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_iproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*
*/

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

#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pcie_layerscape_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Layerscape PCIe EP driver
*/

#include <common.h>
#include <config.h>
#include <asm/arch/fsl_serdes.h>
#include <dm.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_layerscape_fixup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Layerscape PCIe driver
*/

#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pcie_layerscape_fixup_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*
*/

#include <common.h>
#include <init.h>
#include <asm/arch/clock.h>
#include <asm/arch/soc.h>
#include <linux/errno.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include "pcie_layerscape_fixup_common.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pcie_layerscape_gen4.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Hou Zhiqiang <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <log.h>
#include <asm/arch/fsl_serdes.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_layerscape_gen4_fixup.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_layerscape_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Layerscape PCIe driver
*/

#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <pci.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Honghui Zhang <[email protected]>
*/

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

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_plda_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* Bits taken from Linux Rockchip PCIe host controller.
*/

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

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_uniphier.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_compat.h>
#include <generic-phy.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/pci/pcie_xilinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2016 Imagination Technologies
*/

#include <common.h>
#include <dm.h>
#include <pci.h>
#include <linux/bitops.h>
Expand Down

0 comments on commit 8db017c

Please sign in to comment.