Skip to contentSkip to conversation

mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig

PATCH In review Tom Rini 15 participants 136 messages May 2, 2024 – May 10, 2024 Page 4 of 5

Subsystems (123)
Network drivers Arm (32-bit) x86 SCSI +119 more subsystems
lore
Share & tools
lore
Tested-by on v1 53/81
#85 lore raw

Re: [PATCH 53/81] pwm: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).

Thanks a lot!

Quoted 215 lines

---
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Johan Jonker <[email protected]>

---
  drivers/pwm/cros_ec_pwm.c     | 1 -
  drivers/pwm/exynos_pwm.c      | 1 -
  drivers/pwm/pwm-aspeed.c      | 1 -
  drivers/pwm/pwm-at91.c        | 1 -
  drivers/pwm/pwm-cadence-ttc.c | 1 -
  drivers/pwm/pwm-imx.c         | 1 -
  drivers/pwm/pwm-meson.c       | 1 -
  drivers/pwm/pwm-mtk.c         | 1 -
  drivers/pwm/pwm-sifive.c      | 1 -
  drivers/pwm/pwm-ti-ehrpwm.c   | 1 -
  drivers/pwm/pwm-uclass.c      | 1 -
  drivers/pwm/rk_pwm.c          | 1 -
  drivers/pwm/sandbox_pwm.c     | 1 -
  drivers/pwm/sunxi_pwm.c       | 1 -
  drivers/pwm/tegra_pwm.c       | 1 -
  15 files changed, 15 deletions(-)
drivers/pwm/cros_ec_pwm.c +0 -1
index 4a39c319aa2a..b89f00f151b0 100644
@@ -1,6 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
  #include <cros_ec.h>
  #include <dm.h>
  #include <errno.h>
drivers/pwm/exynos_pwm.c +0 -1
index 609025d680d2..5ded60978f47 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Google Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pwm.h>
drivers/pwm/pwm-aspeed.c +0 -1
index b03472d2345c..ebc9d9a89752 100644
@@ -38,7 +38,6 @@
   *   This improvement can disable/enable through PWM_ASPEED_CTRL_DUTY_SYNC_DISABLE.
   */
 
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <pwm.h>
drivers/pwm/pwm-at91.c +0 -1
index 3ff1fb6d5c30..ffc37180eb42 100644
@@ -9,7 +9,6 @@
   * Based on drivers/pwm/pwm-atmel.c from Linux.
   */
  #include <clk.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <linux/bitops.h>
drivers/pwm/pwm-cadence-ttc.c +0 -1
index d9f6736a7aee..767628833bc0 100644
@@ -6,7 +6,6 @@
  #define LOG_CATEGORY UCLASS_PWM
 
  #include <clk.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <log.h>
drivers/pwm/pwm-imx.c +0 -1
index 8fbb40cc2767..320ea7c4239a 100644
@@ -6,7 +6,6 @@
   * Basic support for the pwm module on imx6.
   */
 
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <log.h>
drivers/pwm/pwm-meson.c +0 -1
index 60959720dac8..c2597d8b6698 100644
@@ -16,7 +16,6 @@
   * current period to complete first).
   */
 
-#include <common.h>
  #include <clk.h>
  #include <div64.h>
  #include <dm.h>
drivers/pwm/pwm-mtk.c +0 -1
index ad845ed9662e..9776a41ff48e 100644
@@ -5,7 +5,6 @@
   * Author: Sam Shih <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <pwm.h>
drivers/pwm/pwm-sifive.c +0 -1
index b9813a3b6bbe..e9777c71f5e0 100644
@@ -12,7 +12,6 @@
   * - The hardware generates only inverted output.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <div64.h>
  #include <dm.h>
drivers/pwm/pwm-ti-ehrpwm.c +0 -1
index fefa3c65ec45..563109ef0f80 100644
@@ -7,7 +7,6 @@
   * Based on Linux kernel drivers/pwm/pwm-tiehrpwm.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <div64.h>
  #include <dm.h>
drivers/pwm/pwm-uclass.c +0 -1
index 648d0757ba62..6543db1d623d 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PWM
 
-#include <common.h>
  #include <dm.h>
  #include <pwm.h>
 
drivers/pwm/rk_pwm.c +0 -1
index 1858d5973386..0a64eb01dc2b 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <div64.h>
  #include <dm.h>
drivers/pwm/sandbox_pwm.c +0 -1
index 4df15f0a2e8f..0d798609ddaf 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <pwm.h>
drivers/pwm/sunxi_pwm.c +0 -1
index bb1bec05ec34..2140a05b6796 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017-2018 Vasily Khoruzhick <[email protected]>
   */
 
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <log.h>
drivers/pwm/tegra_pwm.c +0 -1
index 87034706060c..e3f1417f2ad0 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Google Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pwm.h>
author
#86 lore raw

PATCH 54/81 ram: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Ralph Siemsen <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Yanhong Wang <[email protected]>
Cc: Andre Przywara <[email protected]>

---
 drivers/ram/aspeed/sdram_ast2500.c          | 2 +-
 drivers/ram/aspeed/sdram_ast2600.c          | 2 +-
 drivers/ram/bmips_ram.c                     | 1 -
 drivers/ram/cadence/ddr_ctrl.c              | 1 -
 drivers/ram/imxrt_sdram.c                   | 1 -
 drivers/ram/k3-am654-ddrss.c                | 1 -
 drivers/ram/k3-ddrss/k3-ddrss.c             | 1 -
 drivers/ram/mediatek/ddr3-mt7629.c          | 2 +-
 drivers/ram/mpc83xx_sdram.c                 | 1 -
 drivers/ram/ram-uclass.c                    | 1 -
 drivers/ram/renesas/rzn1/ddr_async.c        | 1 -
 drivers/ram/rockchip/dmc-rk3368.c           | 2 +-
 drivers/ram/rockchip/sdram_common.c         | 2 +-
 drivers/ram/rockchip/sdram_pctl_px30.c      | 1 -
 drivers/ram/rockchip/sdram_phy_px30.c       | 1 -
 drivers/ram/rockchip/sdram_px30.c           | 2 +-
 drivers/ram/rockchip/sdram_rk3066.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3128.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3188.c         | 2 +-
 drivers/ram/rockchip/sdram_rk322x.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3288.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3308.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3328.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3399.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3568.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3588.c         | 2 +-
 drivers/ram/rockchip/sdram_rv1126.c         | 2 +-
 drivers/ram/sandbox_ram.c                   | 1 -
 drivers/ram/sifive/sifive_ddr.c             | 1 -
 drivers/ram/starfive/ddrcsr_boot.c          | 1 -
 drivers/ram/starfive/ddrphy_start.c         | 1 -
 drivers/ram/starfive/ddrphy_train.c         | 2 +-
 drivers/ram/starfive/ddrphy_utils.c         | 2 +-
 drivers/ram/starfive/starfive_ddr.c         | 1 -
 drivers/ram/starfive/starfive_ddr.h         | 2 ++
 drivers/ram/stm32_sdram.c                   | 1 -
 drivers/ram/stm32mp1/stm32mp1_ddr.c         | 1 -
 drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 -
 drivers/ram/stm32mp1/stm32mp1_ram.c         | 1 -
 drivers/ram/stm32mp1/stm32mp1_tests.c       | 1 -
 drivers/ram/sunxi/dram_sun20i_d1.c          | 2 +-
 41 files changed, 22 insertions(+), 40 deletions(-)
drivers/ram/aspeed/sdram_ast2500.c +1 -1
index dc466a88e712..0d6ab79f96fc 100644
@@ -5,7 +5,7 @@
  * Copyright 2016 Google, Inc
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/ram/aspeed/sdram_ast2600.c +1 -1
index d463933363ee..55e80fba3dc0 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright (C) ASPEED Technology Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/ram/bmips_ram.c +0 -1
index 98045248ecfb..760bebdbba04 100644
@@ -7,7 +7,6 @@
  *	Copyright (C) 2009 Florian Fainelli <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/ram/cadence/ddr_ctrl.c +0 -1
index 3e5959a84a37..0fa60e766a7e 100644
@@ -24,7 +24,6 @@
  * bandwidth allocated to each AXI slave can be set.
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
 #include <asm/io.h>
drivers/ram/imxrt_sdram.c +0 -1
index 6a15242c20cc..3df106c9b79a 100644
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/ram/k3-am654-ddrss.c +0 -1
index cff8ffc89295..21ff9d761e1b 100644
@@ -6,7 +6,6 @@
  *	Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/ram/k3-ddrss/k3-ddrss.c +0 -1
index a5c9b82cf1da..525b6d5b79fc 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <config.h>
 #include <clk.h>
 #include <div64.h>
drivers/ram/mediatek/ddr3-mt7629.c +1 -1
index f65fcf179cf6..c27c4593b9d9 100644
@@ -8,7 +8,7 @@
  */
 
 #include <clk.h>
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <asm/io.h>
drivers/ram/mpc83xx_sdram.c +0 -1
index 11676d4fae7e..28a663289a23 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
drivers/ram/ram-uclass.c +0 -1
index 4e21240fd4cb..a33d583cc448 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <ram.h>
 #include <dm.h>
 #include <errno.h>
drivers/ram/renesas/rzn1/ddr_async.c +0 -1
index 7a81497bc92b..4d470aae1914 100644
@@ -7,7 +7,6 @@
  *
  * Copyright (C) 2015 Renesas Electronics Europe Ltd
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/ram/rockchip/dmc-rk3368.c +1 -1
index 5279bf0a1548..42114a5aa917 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <hang.h>
drivers/ram/rockchip/sdram_common.c +1 -1
index 60fc90d0a5c0..b7a8fce607c8 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <ram.h>
 #include <asm/io.h>
drivers/ram/rockchip/sdram_pctl_px30.c +0 -1
index e5c80fb83b3f..3ec98af536e8 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
drivers/ram/rockchip/sdram_phy_px30.c +0 -1
index f7f6de1ba98b..5416eef38788 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
drivers/ram/rockchip/sdram_px30.c +1 -1
index 21498e89570f..37e621205047 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <init.h>
drivers/ram/rockchip/sdram_rk3066.c +1 -1
index 562cf544c909..a280e2d9fa1d 100644
@@ -6,7 +6,7 @@
  * Adapted from the very similar rk3188 ddr init.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3128.c +1 -1
index ded65393806e..66611f80b2da 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <log.h>
 #include <ram.h>
drivers/ram/rockchip/sdram_rk3188.c +1 -1
index e1b28c6e5933..618bce5c9f49 100644
@@ -6,7 +6,7 @@
  * Adapted from the very similar rk3288 ddr init.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk322x.c +1 -1
index 5fc23c11193f..a48a50911844 100644
@@ -2,7 +2,7 @@
 /*
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3288.c +1 -1
index 242d564a7d26..c9f61e933e9a 100644
@@ -6,7 +6,7 @@
  * Adapted from coreboot.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3308.c +1 -1
index 264366291cf8..8071997f8d86 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
drivers/ram/rockchip/sdram_rk3328.c +1 -1
index b5ca8ca436f5..99690d67a501 100644
@@ -2,7 +2,7 @@
 /*
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <debug_uart.h>
 #include <dm.h>
drivers/ram/rockchip/sdram_rk3399.c +1 -1
index 02cc4a38cf0b..ef9a1824b2b3 100644
@@ -5,7 +5,7 @@
  * Adapted from coreboot.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3568.c +1 -1
index f661615c1b91..a252d5c70106 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
drivers/ram/rockchip/sdram_rk3588.c +1 -1
index cf56e2a94121..a144b432d76f 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
drivers/ram/rockchip/sdram_rv1126.c +1 -1
index 849e15a91932..4fbb088a8d98 100644
@@ -4,7 +4,7 @@
  * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <ram.h>
drivers/ram/sandbox_ram.c +0 -1
index 910dce623e90..2097da565322 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <ram.h>
drivers/ram/sifive/sifive_ddr.c +0 -1
index 4bd69a62be2b..bd2f438d7271 100644
@@ -6,7 +6,6 @@
  *   Pragnesh Patel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <init.h>
drivers/ram/starfive/ddrcsr_boot.c +0 -1
index f2dd55f74a08..6764b3ed5cc9 100644
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/regs.h>
 #include <linux/delay.h>
drivers/ram/starfive/ddrphy_start.c +0 -1
index 479b6ef10418..efe3f8a181a5 100644
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 
 #include "starfive_ddr.h"
drivers/ram/starfive/ddrphy_train.c +1 -1
index 0740f49be5bb..0aff1e8727ef 100644
@@ -4,7 +4,7 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/io.h>
 
 static const u32 ddr_train_data[] = {
drivers/ram/starfive/ddrphy_utils.c +1 -1
index 1c9fe0a78465..d6dd6ee7a859 100644
@@ -4,7 +4,7 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/io.h>
 
 static const  u32 ddr_phy_data[] = {
drivers/ram/starfive/starfive_ddr.c +0 -1
index a0a3d6b33dc2..b31ed3bcf617 100644
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/regs.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/ram/starfive/starfive_ddr.h +2 -0
index d0ec1c1da807..c29d26b510c9 100644
@@ -7,6 +7,8 @@
 #ifndef __STARFIVE_DDR_H__
 #define __STARFIVE_DDR_H__
 
+#include <linux/kernel.h>
+
 #define SEC_CTRL_ADDR		0x1000
 #define PHY_BASE_ADDR		0x800
 #define PHY_AC_BASE_ADDR	0x1000
drivers/ram/stm32_sdram.c +0 -1
index 891f4137813e..10dc05dd6404 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
drivers/ram/stm32mp1/stm32mp1_ddr.c +0 -1
index 8ee4e24f39df..d7834b322992 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <ram.h>
drivers/ram/stm32mp1/stm32mp1_interactive.c +0 -1
index 2c19847c6633..6340afbb8709 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <cli.h>
drivers/ram/stm32mp1/stm32mp1_ram.c +0 -1
index a82b1db7592d..debc458c0e2e 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
drivers/ram/stm32mp1/stm32mp1_tests.c +0 -1
index c5f33544144f..6108faa70730 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <console.h>
 #include <init.h>
 #include <log.h>
drivers/ram/sunxi/dram_sun20i_d1.c +1 -1
index 38379281d739..a1794032f3b8 100644
@@ -13,7 +13,7 @@
  */
 
 #include <asm/io.h>
-#include <common.h>
+#include <config.h>
 #ifdef CONFIG_RAM
   #include <dm.h>
   #include <ram.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 54/81
#87 lore raw

Re: [PATCH 54/81] ram: Remove <common.h> and add needed includes

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 578 lines

---
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Ralph Siemsen <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Yanhong Wang <[email protected]>
Cc: Andre Przywara <[email protected]>

---
  drivers/ram/aspeed/sdram_ast2500.c          | 2 +-
  drivers/ram/aspeed/sdram_ast2600.c          | 2 +-
  drivers/ram/bmips_ram.c                     | 1 -
  drivers/ram/cadence/ddr_ctrl.c              | 1 -
  drivers/ram/imxrt_sdram.c                   | 1 -
  drivers/ram/k3-am654-ddrss.c                | 1 -
  drivers/ram/k3-ddrss/k3-ddrss.c             | 1 -
  drivers/ram/mediatek/ddr3-mt7629.c          | 2 +-
  drivers/ram/mpc83xx_sdram.c                 | 1 -
  drivers/ram/ram-uclass.c                    | 1 -
  drivers/ram/renesas/rzn1/ddr_async.c        | 1 -
  drivers/ram/rockchip/dmc-rk3368.c           | 2 +-
  drivers/ram/rockchip/sdram_common.c         | 2 +-
  drivers/ram/rockchip/sdram_pctl_px30.c      | 1 -
  drivers/ram/rockchip/sdram_phy_px30.c       | 1 -
  drivers/ram/rockchip/sdram_px30.c           | 2 +-
  drivers/ram/rockchip/sdram_rk3066.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3128.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3188.c         | 2 +-
  drivers/ram/rockchip/sdram_rk322x.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3288.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3308.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3328.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3399.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3568.c         | 2 +-
  drivers/ram/rockchip/sdram_rk3588.c         | 2 +-
  drivers/ram/rockchip/sdram_rv1126.c         | 2 +-
  drivers/ram/sandbox_ram.c                   | 1 -
  drivers/ram/sifive/sifive_ddr.c             | 1 -
  drivers/ram/starfive/ddrcsr_boot.c          | 1 -
  drivers/ram/starfive/ddrphy_start.c         | 1 -
  drivers/ram/starfive/ddrphy_train.c         | 2 +-
  drivers/ram/starfive/ddrphy_utils.c         | 2 +-
  drivers/ram/starfive/starfive_ddr.c         | 1 -
  drivers/ram/starfive/starfive_ddr.h         | 2 ++
  drivers/ram/stm32_sdram.c                   | 1 -
  drivers/ram/stm32mp1/stm32mp1_ddr.c         | 1 -
  drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 -
  drivers/ram/stm32mp1/stm32mp1_ram.c         | 1 -
  drivers/ram/stm32mp1/stm32mp1_tests.c       | 1 -
  drivers/ram/sunxi/dram_sun20i_d1.c          | 2 +-
  41 files changed, 22 insertions(+), 40 deletions(-)
drivers/ram/aspeed/sdram_ast2500.c +1 -1
index dc466a88e712..0d6ab79f96fc 100644
@@ -5,7 +5,7 @@
   * Copyright 2016 Google, Inc
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/ram/aspeed/sdram_ast2600.c +1 -1
index d463933363ee..55e80fba3dc0 100644
@@ -2,7 +2,7 @@
  /*
   * Copyright (C) ASPEED Technology Inc.
   */
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/ram/bmips_ram.c +0 -1
index 98045248ecfb..760bebdbba04 100644
@@ -7,7 +7,6 @@
   *	Copyright (C) 2009 Florian Fainelli <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <init.h>
drivers/ram/cadence/ddr_ctrl.c +0 -1
index 3e5959a84a37..0fa60e766a7e 100644
@@ -24,7 +24,6 @@
   * bandwidth allocated to each AXI slave can be set.
   */
 
-#include <common.h>
  #include <linux/delay.h>
  #include <linux/sizes.h>
  #include <asm/io.h>
drivers/ram/imxrt_sdram.c +0 -1
index 6a15242c20cc..3df106c9b79a 100644
@@ -4,7 +4,6 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/ram/k3-am654-ddrss.c +0 -1
index cff8ffc89295..21ff9d761e1b 100644
@@ -6,7 +6,6 @@
   *	Lokesh Vutla <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <log.h>
drivers/ram/k3-ddrss/k3-ddrss.c +0 -1
index a5c9b82cf1da..525b6d5b79fc 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
   */
 
-#include <common.h>
  #include <config.h>
  #include <clk.h>
  #include <div64.h>
drivers/ram/mediatek/ddr3-mt7629.c +1 -1
index f65fcf179cf6..c27c4593b9d9 100644
@@ -8,7 +8,7 @@
   */
 
  #include <clk.h>
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <ram.h>
  #include <asm/io.h>
drivers/ram/mpc83xx_sdram.c +0 -1
index 11676d4fae7e..28a663289a23 100644
@@ -4,7 +4,6 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <init.h>
  #include <log.h>
drivers/ram/ram-uclass.c +0 -1
index 4e21240fd4cb..a33d583cc448 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <ram.h>
  #include <dm.h>
  #include <errno.h>
drivers/ram/renesas/rzn1/ddr_async.c +0 -1
index 7a81497bc92b..4d470aae1914 100644
@@ -7,7 +7,6 @@
   *
   * Copyright (C) 2015 Renesas Electronics Europe Ltd
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/ram/rockchip/dmc-rk3368.c +1 -1
index 5279bf0a1548..42114a5aa917 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <hang.h>
drivers/ram/rockchip/sdram_common.c +1 -1
index 60fc90d0a5c0..b7a8fce607c8 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <debug_uart.h>
  #include <ram.h>
  #include <asm/io.h>
drivers/ram/rockchip/sdram_pctl_px30.c +0 -1
index e5c80fb83b3f..3ec98af536e8 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
  #include <ram.h>
  #include <asm/io.h>
  #include <asm/arch-rockchip/sdram.h>
drivers/ram/rockchip/sdram_phy_px30.c +0 -1
index f7f6de1ba98b..5416eef38788 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
  #include <ram.h>
  #include <asm/io.h>
  #include <asm/arch-rockchip/sdram.h>
drivers/ram/rockchip/sdram_px30.c +1 -1
index 21498e89570f..37e621205047 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <debug_uart.h>
  #include <dm.h>
  #include <init.h>
drivers/ram/rockchip/sdram_rk3066.c +1 -1
index 562cf544c909..a280e2d9fa1d 100644
@@ -6,7 +6,7 @@
   * Adapted from the very similar rk3188 ddr init.
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3128.c +1 -1
index ded65393806e..66611f80b2da 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <log.h>
  #include <ram.h>
drivers/ram/rockchip/sdram_rk3188.c +1 -1
index e1b28c6e5933..618bce5c9f49 100644
@@ -6,7 +6,7 @@
   * Adapted from the very similar rk3288 ddr init.
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk322x.c +1 -1
index 5fc23c11193f..a48a50911844 100644
@@ -2,7 +2,7 @@
  /*
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3288.c +1 -1
index 242d564a7d26..c9f61e933e9a 100644
@@ -6,7 +6,7 @@
   * Adapted from coreboot.
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3308.c +1 -1
index 264366291cf8..8071997f8d86 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2019 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <ram.h>
  #include <syscon.h>
drivers/ram/rockchip/sdram_rk3328.c +1 -1
index b5ca8ca436f5..99690d67a501 100644
@@ -2,7 +2,7 @@
  /*
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
   */
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <debug_uart.h>
  #include <dm.h>
drivers/ram/rockchip/sdram_rk3399.c +1 -1
index 02cc4a38cf0b..ef9a1824b2b3 100644
@@ -5,7 +5,7 @@
   * Adapted from coreboot.
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/ram/rockchip/sdram_rk3568.c +1 -1
index f661615c1b91..a252d5c70106 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <ram.h>
  #include <syscon.h>
drivers/ram/rockchip/sdram_rk3588.c +1 -1
index cf56e2a94121..a144b432d76f 100644
@@ -3,7 +3,7 @@
   * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <ram.h>
  #include <syscon.h>
drivers/ram/rockchip/sdram_rv1126.c +1 -1
index 849e15a91932..4fbb088a8d98 100644
@@ -4,7 +4,7 @@
   * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
   */
 
-#include <common.h>
+#include <config.h>
  #include <debug_uart.h>
  #include <dm.h>
  #include <ram.h>
drivers/ram/sandbox_ram.c +0 -1
index 910dce623e90..2097da565322 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <ram.h>
drivers/ram/sifive/sifive_ddr.c +0 -1
index 4bd69a62be2b..bd2f438d7271 100644
@@ -6,7 +6,6 @@
   *   Pragnesh Patel <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <init.h>
drivers/ram/starfive/ddrcsr_boot.c +0 -1
index f2dd55f74a08..6764b3ed5cc9 100644
@@ -4,7 +4,6 @@
   * Author: Yanhong Wang<[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch/regs.h>
  #include <linux/delay.h>
drivers/ram/starfive/ddrphy_start.c +0 -1
index 479b6ef10418..efe3f8a181a5 100644
@@ -4,7 +4,6 @@
   * Author: Yanhong Wang<[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
 
  #include "starfive_ddr.h"
drivers/ram/starfive/ddrphy_train.c +1 -1
index 0740f49be5bb..0aff1e8727ef 100644
@@ -4,7 +4,7 @@
   * Author: Yanhong Wang<[email protected]>
   */
 
-#include <common.h>
+#include <linux/kernel.h>
  #include <asm/io.h>
 
  static const u32 ddr_train_data[] = {
drivers/ram/starfive/ddrphy_utils.c +1 -1
index 1c9fe0a78465..d6dd6ee7a859 100644
@@ -4,7 +4,7 @@
   * Author: Yanhong Wang<[email protected]>
   */
 
-#include <common.h>
+#include <linux/kernel.h>
  #include <asm/io.h>
 
  static const  u32 ddr_phy_data[] = {
drivers/ram/starfive/starfive_ddr.c +0 -1
index a0a3d6b33dc2..b31ed3bcf617 100644
@@ -4,7 +4,6 @@
   * Author: Yanhong Wang<[email protected]>
   */
 
-#include <common.h>
  #include <asm/arch/regs.h>
  #include <asm/io.h>
  #include <clk.h>
drivers/ram/starfive/starfive_ddr.h +2 -0
index d0ec1c1da807..c29d26b510c9 100644
@@ -7,6 +7,8 @@
  #ifndef __STARFIVE_DDR_H__
  #define __STARFIVE_DDR_H__
 
+#include <linux/kernel.h>
+
  #define SEC_CTRL_ADDR		0x1000
  #define PHY_BASE_ADDR		0x800
  #define PHY_AC_BASE_ADDR	0x1000
drivers/ram/stm32_sdram.c +0 -1
index 891f4137813e..10dc05dd6404 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <init.h>
drivers/ram/stm32mp1/stm32mp1_ddr.c +0 -1
index 8ee4e24f39df..d7834b322992 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <clk.h>
  #include <log.h>
  #include <ram.h>
drivers/ram/stm32mp1/stm32mp1_interactive.c +0 -1
index 2c19847c6633..6340afbb8709 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <command.h>
  #include <console.h>
  #include <cli.h>
drivers/ram/stm32mp1/stm32mp1_ram.c +0 -1
index a82b1db7592d..debc458c0e2e 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <init.h>
drivers/ram/stm32mp1/stm32mp1_tests.c +0 -1
index c5f33544144f..6108faa70730 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
  #include <console.h>
  #include <init.h>
  #include <log.h>
drivers/ram/sunxi/dram_sun20i_d1.c +1 -1
index 38379281d739..a1794032f3b8 100644
@@ -13,7 +13,7 @@
   */
 
  #include <asm/io.h>
-#include <common.h>
+#include <config.h>
  #ifdef CONFIG_RAM
    #include <dm.h>
    #include <ram.h>
author
#88 lore raw

PATCH 55/81 reboot-mode: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Sean Anderson <[email protected]>

---
 drivers/reboot-mode/reboot-mode-gpio.c   | 1 -
 drivers/reboot-mode/reboot-mode-nvmem.c  | 1 -
 drivers/reboot-mode/reboot-mode-rtc.c    | 1 -
 drivers/reboot-mode/reboot-mode-uclass.c | 1 -
 4 files changed, 4 deletions(-)
drivers/reboot-mode/reboot-mode-gpio.c +0 -1
index 305174736ede..22ee40c34333 100644
@@ -3,7 +3,6 @@
  * Copyright (c), Vaisala Oyj
  */
 
-#include <common.h>
 #include <asm/gpio.h>
 #include <dm.h>
 #include <dm/devres.h>
drivers/reboot-mode/reboot-mode-nvmem.c +0 -1
index da41ca41d9a1..b9af242520a0 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <nvmem.h>
 #include <reboot-mode/reboot-mode.h>
drivers/reboot-mode/reboot-mode-rtc.c +0 -1
index 972d0cdbcb5b..4f4ad63febc1 100644
@@ -3,7 +3,6 @@
  * Copyright (c), Vaisala Oyj
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <reboot-mode/reboot-mode-rtc.h>
drivers/reboot-mode/reboot-mode-uclass.c +0 -1
index 2b38aa26b859..7cbe02eb4ed4 100644
@@ -3,7 +3,6 @@
  * Copyright (c), Vaisala Oyj
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
Signature · 1 line
2.34.1
author
#89 lore raw

PATCH 56/81 remoteproc: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Ravi Gunasekaran <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: MD Danish Anwar <[email protected]>

---
 drivers/remoteproc/ipu_rproc.c            | 1 -
 drivers/remoteproc/k3_system_controller.c | 1 -
 drivers/remoteproc/pru_rproc.c            | 1 -
 drivers/remoteproc/rproc-elf-loader.c     | 1 -
 drivers/remoteproc/rproc-uclass.c         | 1 -
 drivers/remoteproc/sandbox_testproc.c     | 1 -
 drivers/remoteproc/stm32_copro.c          | 1 -
 drivers/remoteproc/ti_k3_arm64_rproc.c    | 1 -
 drivers/remoteproc/ti_k3_dsp_rproc.c      | 1 -
 drivers/remoteproc/ti_k3_r5f_rproc.c      | 1 -
 drivers/remoteproc/ti_power_proc.c        | 1 -
 11 files changed, 11 deletions(-)
drivers/remoteproc/ipu_rproc.c +0 -1
index 996e658e8718..2ca78b550a7e 100644
@@ -8,7 +8,6 @@
  *      Keerthy <[email protected]>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/remoteproc/k3_system_controller.c +0 -1
index 071de40fbd6f..71238a6058a4 100644
@@ -6,7 +6,6 @@
  *	Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <remoteproc.h>
drivers/remoteproc/pru_rproc.c +0 -1
index 6ec55e27d9dd..115c342244af 100644
@@ -6,7 +6,6 @@
  *	Keerthy <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <elf.h>
 #include <dm/of_access.h>
drivers/remoteproc/rproc-elf-loader.c +0 -1
index 5e070e5076e1..ab1836b3f078 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <elf.h>
drivers/remoteproc/rproc-uclass.c +0 -1
index aa7f7586a814..3ba2b40dca38 100644
@@ -7,7 +7,6 @@
 #define LOG_CATEGORY UCLASS_REMOTEPROC
 
 #define pr_fmt(fmt) "%s: " fmt, __func__
-#include <common.h>
 #include <elf.h>
 #include <errno.h>
 #include <log.h>
drivers/remoteproc/sandbox_testproc.c +0 -1
index f76f68ebeb43..ad575a7c10fd 100644
@@ -4,7 +4,6 @@
  * Texas Instruments Incorporated - https://www.ti.com/
  */
 #define pr_fmt(fmt) "%s: " fmt, __func__
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/remoteproc/stm32_copro.c +0 -1
index 3e322c4d7191..f45da9a68ac6 100644
@@ -4,7 +4,6 @@
  */
 #define LOG_CATEGORY UCLASS_REMOTEPROC
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/remoteproc/ti_k3_arm64_rproc.c +0 -1
index 767493c1383c..d3eb957b2e49 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <remoteproc.h>
 #include <errno.h>
drivers/remoteproc/ti_k3_dsp_rproc.c +0 -1
index e790406324a9..57fe1037da02 100644
@@ -7,7 +7,6 @@
  *	Suman Anna <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/remoteproc/ti_k3_r5f_rproc.c +0 -1
index 631e548dccef..b55b1dc10d4a 100644
@@ -7,7 +7,6 @@
  *	Suman Anna <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/remoteproc/ti_power_proc.c +0 -1
index f55df4a91195..cf150af4ef97 100644
@@ -4,7 +4,6 @@
  * Texas Instruments Incorporated - https://www.ti.com/
  */
 #define pr_fmt(fmt) "%s: " fmt, __func__
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
Signature · 1 line
2.34.1
author
#90 lore raw

PATCH 57/81 reset: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Yang Xiwen <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: John Keeping <[email protected]>
Cc: Etienne Carriere <[email protected]>
Cc: AKASHI Takahiro <[email protected]>

---
 drivers/reset/reset-ast2500.c      | 1 -
 drivers/reset/reset-ast2600.c      | 1 -
 drivers/reset/reset-bcm6345.c      | 1 -
 drivers/reset/reset-dra7.c         | 1 -
 drivers/reset/reset-hisilicon.c    | 1 -
 drivers/reset/reset-hsdk.c         | 1 -
 drivers/reset/reset-imx7.c         | 1 -
 drivers/reset/reset-jh7110.c       | 1 -
 drivers/reset/reset-mediatek.c     | 1 -
 drivers/reset/reset-meson.c        | 1 -
 drivers/reset/reset-mtmips.c       | 1 -
 drivers/reset/reset-raspberrypi.c  | 1 -
 drivers/reset/reset-rockchip.c     | 1 -
 drivers/reset/reset-scmi.c         | 1 -
 drivers/reset/reset-sifive.c       | 1 -
 drivers/reset/reset-socfpga.c      | 1 -
 drivers/reset/reset-sunxi.c        | 1 -
 drivers/reset/reset-syscon.c       | 1 -
 drivers/reset/reset-ti-sci.c       | 1 -
 drivers/reset/reset-uclass.c       | 1 -
 drivers/reset/reset-uniphier.c     | 1 -
 drivers/reset/reset-zynqmp.c       | 1 -
 drivers/reset/rst-rk3588.c         | 1 -
 drivers/reset/sandbox-reset-test.c | 1 -
 drivers/reset/sandbox-reset.c      | 1 -
 drivers/reset/sti-reset.c          | 1 -
 drivers/reset/stm32-reset.c        | 1 -
 drivers/reset/tegra-car-reset.c    | 1 -
 drivers/reset/tegra186-reset.c     | 1 -
 29 files changed, 29 deletions(-)
drivers/reset/reset-ast2500.c +0 -1
index d9cecf3a72e8..0ed5396b3e91 100644
@@ -4,7 +4,6 @@
  * Copyright 2020 ASPEED Technology Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/reset/reset-ast2600.c +0 -1
index 1732a450efc0..ec7b9b6625dc 100644
@@ -3,7 +3,6 @@
  * Copyright 2020 ASPEED Technology Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/reset/reset-bcm6345.c +0 -1
index 5383f59ca375..6f140574216d 100644
@@ -6,7 +6,6 @@
  *	Copyright (C) 2012 Jonas Gorski <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/reset/reset-dra7.c +0 -1
index 05101a94f9bc..2f0ec4c042f7 100644
@@ -7,7 +7,6 @@
  */
 
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <reset-uclass.h>
 #include <dm/device_compat.h>
drivers/reset/reset-hisilicon.c +0 -1
index 85e02b296b02..aca54cd6701c 100644
@@ -6,7 +6,6 @@
 #include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <dt-bindings/reset/ti-syscon.h>
 #include <reset-uclass.h>
drivers/reset/reset-hsdk.c +0 -1
index 74b1173e8878..747e73b17fcb 100644
@@ -8,7 +8,6 @@
 
 #include <log.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <linux/bitops.h>
 #include <linux/iopoll.h>
drivers/reset/reset-imx7.c +0 -1
index a3b3132f2fae..65a352b71fd7 100644
@@ -6,7 +6,6 @@
 #include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <dt-bindings/reset/imx7-reset.h>
 #include <dt-bindings/reset/imx8mp-reset.h>
drivers/reset/reset-jh7110.c +0 -1
index d6bdf6bb00c4..adf722d5871a 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/ofnode.h>
 #include <dt-bindings/reset/starfive,jh7110-crg.h>
drivers/reset/reset-mediatek.c +0 -1
index 97ed221f739a..4b3afab92ea7 100644
@@ -6,7 +6,6 @@
  *	   Weijie Gao <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/reset-meson.c +0 -1
index 9d0c8b354f4a..6337cdaaffa2 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/reset-mtmips.c +0 -1
index 7bb8469823c8..2db6766280f2 100644
@@ -5,7 +5,6 @@
  * Author: Weijie Gao <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/reset/reset-raspberrypi.c +0 -1
index 804e32b8dd14..1792f0813f79 100644
@@ -4,7 +4,6 @@
  *
  * Copyright (C) 2020 Nicolas Saenz Julienne <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <reset-uclass.h>
 #include <asm/arch/msg.h>
drivers/reset/reset-rockchip.c +0 -1
index 6cabaa10a35b..876eb7dddaa8 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/reset-scmi.c +0 -1
index b76711f0a8fb..6dc1fcb33653 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <reset-uclass.h>
drivers/reset/reset-sifive.c +0 -1
index 23513b2f541b..65f857149b96 100644
@@ -4,7 +4,6 @@
  * Author: Sagar Kadam <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
drivers/reset/reset-socfpga.c +0 -1
index 6e3f03e24843..866437fd24fe 100644
@@ -12,7 +12,6 @@
  * Maxime Ripard <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/reset-sunxi.c +0 -1
index e484d1fff449..fd47e1f9e377 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/reset/reset-syscon.c +0 -1
index ff387ab6b22f..5be8c9492af2 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Sean Anderson
  */
 
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <reset.h>
drivers/reset/reset-ti-sci.c +0 -1
index fd654a08f13a..e69bcd41cbe8 100644
@@ -8,7 +8,6 @@
  * Loosely based on Linux kernel reset-ti-sci.c...
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/reset/reset-uclass.c +0 -1
index b972faf01328..fe4cebf54f15 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/reset/reset-uniphier.c +0 -1
index 35e3ccebd72e..49b001f05942 100644
@@ -5,7 +5,6 @@
  *   Author: Kunihiko Hayashi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/reset-zynqmp.c +0 -1
index 87b4df5bf81a..b9c4f09fdfde 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <reset-uclass.h>
drivers/reset/rst-rk3588.c +0 -1
index 2c524e4c4033..eae2eb10de24 100644
@@ -5,7 +5,6 @@
  * Author: Sebastian Reichel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/arch-rockchip/clock.h>
 #include <dt-bindings/reset/rockchip,rk3588-cru.h>
drivers/reset/sandbox-reset-test.c +0 -1
index 51b79810c89e..dfacb764bc77 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/sandbox-reset.c +0 -1
index 97b1b92e4a6c..adf9eedcba6d 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/sti-reset.c +0 -1
index 5305270fbf20..412a0c5b452b 100644
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/stm32-reset.c +0 -1
index 0bbde29810b4..9d4f361b2519 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/reset/tegra-car-reset.c +0 -1
index 501e9cab8f7c..e3ecc8d37357 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/reset/tegra186-reset.c +0 -1
index d43da454114d..89624227c293 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 57/81
#91 lore raw

Re: [PATCH 57/81] reset: Remove <common.h> and add needed includes

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 409 lines

---
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Yang Xiwen <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: John Keeping <[email protected]>
Cc: Etienne Carriere <[email protected]>
Cc: AKASHI Takahiro <[email protected]>

---
  drivers/reset/reset-ast2500.c      | 1 -
  drivers/reset/reset-ast2600.c      | 1 -
  drivers/reset/reset-bcm6345.c      | 1 -
  drivers/reset/reset-dra7.c         | 1 -
  drivers/reset/reset-hisilicon.c    | 1 -
  drivers/reset/reset-hsdk.c         | 1 -
  drivers/reset/reset-imx7.c         | 1 -
  drivers/reset/reset-jh7110.c       | 1 -
  drivers/reset/reset-mediatek.c     | 1 -
  drivers/reset/reset-meson.c        | 1 -
  drivers/reset/reset-mtmips.c       | 1 -
  drivers/reset/reset-raspberrypi.c  | 1 -
  drivers/reset/reset-rockchip.c     | 1 -
  drivers/reset/reset-scmi.c         | 1 -
  drivers/reset/reset-sifive.c       | 1 -
  drivers/reset/reset-socfpga.c      | 1 -
  drivers/reset/reset-sunxi.c        | 1 -
  drivers/reset/reset-syscon.c       | 1 -
  drivers/reset/reset-ti-sci.c       | 1 -
  drivers/reset/reset-uclass.c       | 1 -
  drivers/reset/reset-uniphier.c     | 1 -
  drivers/reset/reset-zynqmp.c       | 1 -
  drivers/reset/rst-rk3588.c         | 1 -
  drivers/reset/sandbox-reset-test.c | 1 -
  drivers/reset/sandbox-reset.c      | 1 -
  drivers/reset/sti-reset.c          | 1 -
  drivers/reset/stm32-reset.c        | 1 -
  drivers/reset/tegra-car-reset.c    | 1 -
  drivers/reset/tegra186-reset.c     | 1 -
  29 files changed, 29 deletions(-)
drivers/reset/reset-ast2500.c +0 -1
index d9cecf3a72e8..0ed5396b3e91 100644
@@ -4,7 +4,6 @@
   * Copyright 2020 ASPEED Technology Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/reset/reset-ast2600.c +0 -1
index 1732a450efc0..ec7b9b6625dc 100644
@@ -3,7 +3,6 @@
   * Copyright 2020 ASPEED Technology Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/reset/reset-bcm6345.c +0 -1
index 5383f59ca375..6f140574216d 100644
@@ -6,7 +6,6 @@
   *	Copyright (C) 2012 Jonas Gorski <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/reset/reset-dra7.c +0 -1
index 05101a94f9bc..2f0ec4c042f7 100644
@@ -7,7 +7,6 @@
   */
 
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <reset-uclass.h>
  #include <dm/device_compat.h>
drivers/reset/reset-hisilicon.c +0 -1
index 85e02b296b02..aca54cd6701c 100644
@@ -6,7 +6,6 @@
  #include <log.h>
  #include <malloc.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <dt-bindings/reset/ti-syscon.h>
  #include <reset-uclass.h>
drivers/reset/reset-hsdk.c +0 -1
index 74b1173e8878..747e73b17fcb 100644
@@ -8,7 +8,6 @@
 
  #include <log.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <linux/bitops.h>
  #include <linux/iopoll.h>
drivers/reset/reset-imx7.c +0 -1
index a3b3132f2fae..65a352b71fd7 100644
@@ -6,7 +6,6 @@
  #include <log.h>
  #include <malloc.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <dt-bindings/reset/imx7-reset.h>
  #include <dt-bindings/reset/imx8mp-reset.h>
drivers/reset/reset-jh7110.c +0 -1
index d6bdf6bb00c4..adf722d5871a 100644
@@ -5,7 +5,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/ofnode.h>
  #include <dt-bindings/reset/starfive,jh7110-crg.h>
drivers/reset/reset-mediatek.c +0 -1
index 97ed221f739a..4b3afab92ea7 100644
@@ -6,7 +6,6 @@
   *	   Weijie Gao <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/reset-meson.c +0 -1
index 9d0c8b354f4a..6337cdaaffa2 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/reset-mtmips.c +0 -1
index 7bb8469823c8..2db6766280f2 100644
@@ -5,7 +5,6 @@
   * Author: Weijie Gao <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/reset/reset-raspberrypi.c +0 -1
index 804e32b8dd14..1792f0813f79 100644
@@ -4,7 +4,6 @@
   *
   * Copyright (C) 2020 Nicolas Saenz Julienne <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <reset-uclass.h>
  #include <asm/arch/msg.h>
drivers/reset/reset-rockchip.c +0 -1
index 6cabaa10a35b..876eb7dddaa8 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/reset-scmi.c +0 -1
index b76711f0a8fb..6dc1fcb33653 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <reset-uclass.h>
drivers/reset/reset-sifive.c +0 -1
index 23513b2f541b..65f857149b96 100644
@@ -4,7 +4,6 @@
   * Author: Sagar Kadam <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <reset-uclass.h>
  #include <asm/io.h>
drivers/reset/reset-socfpga.c +0 -1
index 6e3f03e24843..866437fd24fe 100644
@@ -12,7 +12,6 @@
   * Maxime Ripard <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/reset-sunxi.c +0 -1
index e484d1fff449..fd47e1f9e377 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/reset/reset-syscon.c +0 -1
index ff387ab6b22f..5be8c9492af2 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Sean Anderson
   */
 
-#include <common.h>
  #include <dm.h>
  #include <regmap.h>
  #include <reset.h>
drivers/reset/reset-ti-sci.c +0 -1
index fd654a08f13a..e69bcd41cbe8 100644
@@ -8,7 +8,6 @@
   * Loosely based on Linux kernel reset-ti-sci.c...
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/reset/reset-uclass.c +0 -1
index b972faf01328..fe4cebf54f15 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <log.h>
drivers/reset/reset-uniphier.c +0 -1
index 35e3ccebd72e..49b001f05942 100644
@@ -5,7 +5,6 @@
   *   Author: Kunihiko Hayashi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/reset-zynqmp.c +0 -1
index 87b4df5bf81a..b9c4f09fdfde 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <reset-uclass.h>
drivers/reset/rst-rk3588.c +0 -1
index 2c524e4c4033..eae2eb10de24 100644
@@ -5,7 +5,6 @@
   * Author: Sebastian Reichel <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/arch-rockchip/clock.h>
  #include <dt-bindings/reset/rockchip,rk3588-cru.h>
drivers/reset/sandbox-reset-test.c +0 -1
index 51b79810c89e..dfacb764bc77 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/sandbox-reset.c +0 -1
index 97b1b92e4a6c..adf9eedcba6d 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/sti-reset.c +0 -1
index 5305270fbf20..412a0c5b452b 100644
@@ -4,7 +4,6 @@
   * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/stm32-reset.c +0 -1
index 0bbde29810b4..9d4f361b2519 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_RESET
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/reset/tegra-car-reset.c +0 -1
index 501e9cab8f7c..e3ecc8d37357 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/reset/tegra186-reset.c +0 -1
index d43da454114d..89624227c293 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
author
#92 lore raw

PATCH 58/81 rtc: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Michal Simek <[email protected]>

---
 drivers/rtc/abx80x.c       | 1 -
 drivers/rtc/davinci.c      | 1 -
 drivers/rtc/ds1307.c       | 2 +-
 drivers/rtc/ds1337.c       | 2 +-
 drivers/rtc/ds1374.c       | 2 +-
 drivers/rtc/ds3231.c       | 2 +-
 drivers/rtc/ds3232.c       | 1 -
 drivers/rtc/emul_rtc.c     | 2 +-
 drivers/rtc/ht1380.c       | 1 -
 drivers/rtc/i2c_rtc_emul.c | 1 -
 drivers/rtc/isl1208.c      | 1 -
 drivers/rtc/m41t62.c       | 2 +-
 drivers/rtc/mc13xxx-rtc.c  | 1 -
 drivers/rtc/mc146818.c     | 1 -
 drivers/rtc/mcfrtc.c       | 1 -
 drivers/rtc/mvrtc.c        | 1 -
 drivers/rtc/mxsrtc.c       | 1 -
 drivers/rtc/pcf2127.c      | 1 -
 drivers/rtc/pcf8563.c      | 2 +-
 drivers/rtc/pl031.c        | 1 -
 drivers/rtc/pt7c4338.c     | 2 +-
 drivers/rtc/rtc-uclass.c   | 1 -
 drivers/rtc/rv3029.c       | 1 -
 drivers/rtc/rv8803.c       | 1 -
 drivers/rtc/rx8010sj.c     | 2 +-
 drivers/rtc/rx8025.c       | 1 -
 drivers/rtc/s35392a.c      | 1 -
 drivers/rtc/sandbox_rtc.c  | 1 -
 drivers/rtc/stm32_rtc.c    | 1 -
 drivers/rtc/zynqmp_rtc.c   | 1 -
 30 files changed, 9 insertions(+), 30 deletions(-)
drivers/rtc/abx80x.c +0 -1
index 823aff03f5f0..1235b840ab04 100644
@@ -12,7 +12,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
drivers/rtc/davinci.c +0 -1
index c7ce41bbf5cc..a20b73e1990a 100644
@@ -4,7 +4,6 @@
  * Heiko Schocher <[email protected]>
  * Copyright (C) 2021 Dario Binacchi <[email protected]>
  */
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <clk.h>
drivers/rtc/ds1307.c +1 -1
index 0e9d3d24dd89..ba06ff9f0bee 100644
@@ -13,7 +13,7 @@
  * based on ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/ds1337.c +1 -1
index 2c780ab8edfa..7eccf1cb8c54 100644
@@ -11,7 +11,7 @@
  * DS1337 Real Time Clock (RTC).
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/ds1374.c +1 -1
index 89442f9386ba..895dbbaf1c74 100644
@@ -13,7 +13,7 @@
  * based on ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <rtc.h>
 #include <i2c.h>
drivers/rtc/ds3231.c +1 -1
index bd32ed2dbf91..d6267d660d0d 100644
@@ -14,7 +14,7 @@
  * copied from ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/ds3232.c +0 -1
index 16501cfe5d3f..7314ba219dac 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2019, Vaisala Oyj
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
drivers/rtc/emul_rtc.c +1 -1
index 6f47d82522ba..97a8d9bb7df5 100644
@@ -5,11 +5,11 @@
  * This driver emulates a real time clock based on timer ticks.
  */
 
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <env.h>
 #include <rtc.h>
+#include <time.h>
 #include <timestamp.h>
 
 /**
drivers/rtc/ht1380.c +0 -1
index 85fcee3e71e6..c202261e9999 100644
@@ -15,7 +15,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <rtc.h>
 #include <bcd.h>
drivers/rtc/i2c_rtc_emul.c +0 -1
index c307d6036dd5..ea11c72c964c 100644
@@ -13,7 +13,6 @@
  * time-keeping. It does not change the system time.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/rtc/isl1208.c +0 -1
index 59a60b75b307..83db505afe9e 100644
@@ -11,7 +11,6 @@
  * ISL1208 Real Time Clock (RTC).
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
drivers/rtc/m41t62.c +1 -1
index 891fe09d311b..7bfea9e0b315 100644
@@ -16,7 +16,7 @@
 
 /* #define	DEBUG	*/
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/mc13xxx-rtc.c +0 -1
index 6c2aef89758b..9e396bcdae95 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2008, Guennadi Liakhovetski <[email protected]>
  */
 
-#include <common.h>
 #include <rtc.h>
 #include <spi.h>
 #include <power/pmic.h>
drivers/rtc/mc146818.c +0 -1
index 03ce081d5764..c0d86c6d063d 100644
@@ -8,7 +8,6 @@
  * Date & Time support for the MC146818 (PIXX4) RTC
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
drivers/rtc/mcfrtc.c +0 -1
index d2ac889c3095..b5cc6b968816 100644
@@ -4,7 +4,6 @@
  * TsiChung Liew ([email protected])
  */
 
-#include <common.h>
 
 #include <command.h>
 #include <rtc.h>
drivers/rtc/mvrtc.c +0 -1
index 50240d57fa9e..f070c681b94e 100644
@@ -8,7 +8,6 @@
  * Date & Time support for Marvell Integrated RTC
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
drivers/rtc/mxsrtc.c +0 -1
index be899a925408..69d22a4bdcb6 100644
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
drivers/rtc/pcf2127.c +0 -1
index 2f3fafb4968f..27a340f07d68 100644
@@ -5,7 +5,6 @@
 
 /*	#define	DEBUG	*/
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
drivers/rtc/pcf8563.c +1 -1
index 91a412440b85..03bef68051ba 100644
@@ -10,7 +10,7 @@
 
 /* #define	DEBUG	*/
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/pl031.c +0 -1
index a1d376611d65..855ee9134168 100644
@@ -6,7 +6,6 @@
  * reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
drivers/rtc/pt7c4338.c +1 -1
index e0a7bd3662fb..79df07814a6b 100644
@@ -18,7 +18,7 @@
  * It has 56 bytes of nonvolatile RAM.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/rtc-uclass.c +0 -1
index e5ae6ea4d5f3..8f6c0c6a0a78 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/rtc/rv3029.c +0 -1
index 9c53c7f7dbc7..a82acec6f7e5 100644
@@ -7,7 +7,6 @@
  *   Michael Buesch <[email protected]>
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
drivers/rtc/rv8803.c +0 -1
index 06a4ae89fa96..82b43722ff51 100644
@@ -10,7 +10,6 @@
  *
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/rtc/rx8010sj.c +1 -1
index bf93b557748b..0d778f4c328e 100644
@@ -17,7 +17,7 @@
  */
 
 #include <command.h>
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
drivers/rtc/rx8025.c +0 -1
index 1394c2306a44..c7895244283c 100644
@@ -8,7 +8,6 @@
  * Epson RX8025 RTC driver.
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
drivers/rtc/s35392a.c +0 -1
index 80f55c86233a..03fb9a0be914 100644
@@ -18,7 +18,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <linux/bitrev.h>
drivers/rtc/sandbox_rtc.c +0 -1
index 657e5c7be2cf..4404501c2f65 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
drivers/rtc/stm32_rtc.c +0 -1
index ec7584c3d70c..ee70c11c8bcb 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/rtc/zynqmp_rtc.c +0 -1
index ab9b93ca9793..15122a048382 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <dm.h>
 #include <rtc.h>
 #include <asm/io.h>
Signature · 1 line
2.34.1
author
#93 lore raw

PATCH 59/81 scsi: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Nikita Yushchenko <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Bin Meng <[email protected]>

---
 drivers/scsi/sandbox_scsi.c | 1 -
 drivers/scsi/scsi-uclass.c  | 1 -
 drivers/scsi/scsi.c         | 1 -
 drivers/scsi/scsi_bootdev.c | 1 -
 drivers/scsi/scsi_emul.c    | 1 -
 5 files changed, 5 deletions(-)
drivers/scsi/sandbox_scsi.c +0 -1
index a7ac33cb1c4b..544a0247083d 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_SCSI
 
-#include <common.h>
 #include <dm.h>
 #include <os.h>
 #include <malloc.h>
drivers/scsi/scsi-uclass.c +0 -1
index a7c1eaf0cf50..1ee8236c05c8 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY UCLASS_SCSI
 
-#include <common.h>
 #include <dm.h>
 #include <scsi.h>
 
drivers/scsi/scsi.c +0 -1
index 79ee400d12f0..73cb83548eb8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY	UCLASS_SCSI
 
-#include <common.h>
 #include <blk.h>
 #include <bootdev.h>
 #include <bootstage.h>
drivers/scsi/scsi_bootdev.c +0 -1
index 218221fa3062..28e4612f337c 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <init.h>
drivers/scsi/scsi_emul.c +0 -1
index 6b8468f79947..d1bb926b713a 100644
@@ -11,7 +11,6 @@
 
 #define LOG_CATEGORY UCLASS_SCSI
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <scsi.h>
Signature · 1 line
2.34.1
author
#94 lore raw

PATCH 60/81 serial: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: This contributor prefers not to receive mails <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Anastasiia Lukianenko <[email protected]>
Cc: Oleksandr Andrushchenko <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Maksim Kiselev <[email protected]>
Cc: Algapally Santosh Sagar <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: "Sébastien Szymanski" <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Sam Shih <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Yang Xiwen <[email protected]>

---
 drivers/serial/altera_jtag_uart.c     | 1 -
 drivers/serial/altera_uart.c          | 1 -
 drivers/serial/arm_dcc.c              | 1 -
 drivers/serial/atmel_usart.c          | 1 -
 drivers/serial/ns16550.c              | 2 +-
 drivers/serial/sandbox.c              | 1 -
 drivers/serial/serial-uclass.c        | 2 +-
 drivers/serial/serial.c               | 2 +-
 drivers/serial/serial_ar933x.c        | 1 -
 drivers/serial/serial_arc.c           | 1 -
 drivers/serial/serial_bcm283x_mu.c    | 1 -
 drivers/serial/serial_bcm283x_pl011.c | 1 -
 drivers/serial/serial_coreboot.c      | 1 -
 drivers/serial/serial_cortina.c       | 1 -
 drivers/serial/serial_efi.c           | 1 -
 drivers/serial/serial_htif.c          | 1 -
 drivers/serial/serial_intel_mid.c     | 1 -
 drivers/serial/serial_linflexuart.c   | 1 -
 drivers/serial/serial_lpuart.c        | 1 -
 drivers/serial/serial_mcf.c           | 1 -
 drivers/serial/serial_meson.c         | 1 -
 drivers/serial/serial_mpc8xx.c        | 1 -
 drivers/serial/serial_msm.c           | 1 -
 drivers/serial/serial_msm_geni.c      | 1 -
 drivers/serial/serial_mtk.c           | 2 +-
 drivers/serial/serial_mvebu_a3700.c   | 1 -
 drivers/serial/serial_mxc.c           | 1 -
 drivers/serial/serial_mxs.c           | 1 -
 drivers/serial/serial_npcm.c          | 1 -
 drivers/serial/serial_ns16550.c       | 2 +-
 drivers/serial/serial_nulldev.c       | 1 -
 drivers/serial/serial_omap.c          | 2 +-
 drivers/serial/serial_owl.c           | 1 -
 drivers/serial/serial_pic32.c         | 1 -
 drivers/serial/serial_pl01x.c         | 1 -
 drivers/serial/serial_rockchip.c      | 1 -
 drivers/serial/serial_s5p4418_pl011.c | 1 -
 drivers/serial/serial_semihosting.c   | 1 -
 drivers/serial/serial_sifive.c        | 1 -
 drivers/serial/serial_sti_asc.c       | 1 -
 drivers/serial/serial_stm32.c         | 1 -
 drivers/serial/serial_uniphier.c      | 1 -
 drivers/serial/serial_xen.c           | 1 -
 drivers/serial/serial_xuartlite.c     | 1 -
 drivers/serial/serial_zynq.c          | 1 -
 drivers/serial/usbtty.c               | 1 -
 46 files changed, 6 insertions(+), 46 deletions(-)
drivers/serial/altera_jtag_uart.c +0 -1
index 9e39da7dd246..3f706e1839f2 100644
@@ -4,7 +4,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <serial.h>
drivers/serial/altera_uart.c +0 -1
index 35920480841a..3c13ef25bb49 100644
@@ -4,7 +4,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <serial.h>
drivers/serial/arm_dcc.c +0 -1
index a402a123b6d6..66af136695d0 100644
@@ -15,7 +15,6 @@
  * this file might be covered by the GNU General Public License.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 
drivers/serial/atmel_usart.c +0 -1
index 9827c006fa88..7e45a80969e8 100644
@@ -5,7 +5,6 @@
  * Modified to support C structur SoC access by
  * Andreas Bießmann <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/ns16550.c +1 -1
index 6deb1d8ddc56..4963385dc1c1 100644
@@ -5,7 +5,7 @@
  */
 
 #include <clock_legacy.h>
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/sandbox.c +0 -1
index f6ac3d228526..ec0068e33d34 100644
@@ -9,7 +9,6 @@
  * U-Boot.
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <os.h>
drivers/serial/serial-uclass.c +1 -1
index e4fa3933bc8f..84f02f7ac76a 100644
@@ -5,7 +5,7 @@
 
 #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env_internal.h>
 #include <errno.h>
drivers/serial/serial.c +1 -1
index 787edd536027..dc4bb06fa992 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <env_internal.h>
 #include <hang.h>
 #include <serial.h>
drivers/serial/serial_ar933x.c +0 -1
index 4f9163497626..4d92752690fc 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2016 Wills Wang <[email protected]>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <dm.h>
 #include <div64.h>
drivers/serial/serial_arc.c +0 -1
index c2fc8a901e25..c0930cf7334a 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 #include <asm/global_data.h>
drivers/serial/serial_bcm283x_mu.c +0 -1
index 7585f790d22a..7fa26244b1ca 100644
@@ -14,7 +14,6 @@
 
 /* Simple U-Boot driver for the BCM283x mini UART */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_bcm283x_pl011.c +0 -1
index 09a9868a38f1..2abc1c4658f3 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Alexander Graf <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/gpio.h>
 #include <dm/pinctrl.h>
drivers/serial/serial_coreboot.c +0 -1
index 23066e4d0543..b1f69f6998cf 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATGEGORY	UCLASS_SERIAL
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <ns16550.h>
drivers/serial/serial_cortina.c +0 -1
index 6dc81a775d3f..3ae8fb465848 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_efi.c +0 -1
index 0067576389d1..5733eaaf9d41 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <efi.h>
drivers/serial/serial_htif.c +0 -1
index 5d2bf0aaeba3..2a93bbbcc9f8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Ventana Micro Systems Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/serial/serial_intel_mid.c +0 -1
index bbf19057c4d1..4b528e452926 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Intel Corporation
  */
 
-#include <common.h>
 #include <dm.h>
 #include <ns16550.h>
 #include <serial.h>
drivers/serial/serial_linflexuart.c +0 -1
index b449e55a6506..ff66e69b9d7b 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_lpuart.c +0 -1
index 3f2be72b8302..a06e6dc2505d 100644
@@ -4,7 +4,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <clk.h>
 #include <dm.h>
drivers/serial/serial_mcf.c +0 -1
index bb2afd0d8cd6..76143575fa98 100644
@@ -15,7 +15,6 @@
  * as serial console interface.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/platform_data/serial_coldfire.h>
drivers/serial/serial_meson.c +0 -1
index be5f380f8500..bb79b9729579 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Beniamino Galvani <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/serial/serial_mpc8xx.c +0 -1
index d82760c7f10a..9ce3fc3d9ec4 100644
@@ -4,7 +4,6 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_msm.c +0 -1
index a472e0b36833..757e5eaf974f 100644
@@ -8,7 +8,6 @@
  * Based on Linux driver.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/serial_msm_geni.c +0 -1
index 5260474fb9a4..cb6c09fdd09e 100644
@@ -9,7 +9,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/delay.h>
drivers/serial/serial_mtk.c +1 -1
index f146f2b006e8..3f569c68f22a 100644
@@ -7,7 +7,7 @@
  */
 
 #include <clk.h>
-#include <common.h>
+#include <config.h>
 #include <div64.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/serial/serial_mvebu_a3700.c +0 -1
index b2017c645565..1a0b85e170ab 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2021 Pali Rohár <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_mxc.c +0 -1
index cc85a502726e..c5fd740be4de 100644
@@ -3,7 +3,6 @@
  * (c) 2007 Sascha Hauer <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_mxs.c +0 -1
index 3659948b8728..071bd09fef69 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2023 Marek Vasut <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <serial.h>
drivers/serial/serial_npcm.c +0 -1
index 6bf3a943a2fc..661daf1aefa3 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_ns16550.c +1 -1
index 4014f6820400..577864bc2195 100644
@@ -4,7 +4,7 @@
  * Rob Taylor, Flying Pig Systems. [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <ns16550.h>
 #include <serial.h>
drivers/serial/serial_nulldev.c +0 -1
index f3ca7f525591..78a9e0b195fa 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 National Instruments
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 
drivers/serial/serial_omap.c +1 -1
index 49ced8f9fae4..94672655c288 100644
@@ -6,7 +6,7 @@
  *	Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <log.h>
drivers/serial/serial_owl.c +0 -1
index 3b795785f780..8ce8aa32a21e 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/serial_pic32.c +0 -1
index 0a03a9a25497..a49c4139b5ae 100644
@@ -3,7 +3,6 @@
  * (c) 2015 Paul Thacker <[email protected]>
  *
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/serial/serial_pl01x.c +0 -1
index f04c21e08264..80c35963b8f2 100644
@@ -10,7 +10,6 @@
 
 /* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
 
-#include <common.h>
 #include <asm/global_data.h>
 /* For get_bus_freq() */
 #include <clock_legacy.h>
drivers/serial/serial_rockchip.c +0 -1
index f4e9422ed91c..8a15173f238f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/serial/serial_s5p4418_pl011.c +0 -1
index e4492e662e92..1fb954e80c2a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022  Stefan Bosch <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/reset.h>
drivers/serial/serial_semihosting.c +0 -1
index cfa1ec3148c5..56a5ec72428a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <serial.h>
drivers/serial/serial_sifive.c +0 -1
index c449f3fd02d9..e47828e4d6ad 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Anup Patel <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <debug_uart.h>
 #include <dm.h>
drivers/serial/serial_sti_asc.c +0 -1
index 40381b57b08e..ef68e585dd62 100644
@@ -6,7 +6,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <serial.h>
drivers/serial/serial_stm32.c +0 -1
index fb039546a41b..1ee58142b3f8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/serial/serial_uniphier.c +0 -1
index 27e4b92c3997..a566ba7a47d5 100644
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
drivers/serial/serial_xen.c +0 -1
index ab318b06462b..e05805f63726 100644
@@ -3,7 +3,6 @@
  * (C) 2018 NXP
  * (C) 2020 EPAM Systems Inc.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_xuartlite.c +0 -1
index 35df413321fe..eb234108746d 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
drivers/serial/serial_zynq.c +0 -1
index 1847d1f6ecd2..55f13c00ddf6 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/usbtty.c +0 -1
index ecb6ba853df7..ae3ac8070d34 100644
@@ -7,7 +7,6 @@
  * Bryan O'Donoghue, [email protected]
  */
 
-#include <common.h>
 #include <config.h>
 #include <circbuf.h>
 #include <env.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 60/81
#95 lore raw

Re: [PATCH 60/81] serial: Remove <common.h> and add needed includes

Quoted 5 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Looks good.

Quoted 652 lines

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: This contributor prefers not to receive mails <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Anastasiia Lukianenko <[email protected]>
Cc: Oleksandr Andrushchenko <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Maksim Kiselev <[email protected]>
Cc: Algapally Santosh Sagar <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: "Sébastien Szymanski" <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Sam Shih <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Yang Xiwen <[email protected]>

---
 drivers/serial/altera_jtag_uart.c     | 1 -
 drivers/serial/altera_uart.c          | 1 -
 drivers/serial/arm_dcc.c              | 1 -
 drivers/serial/atmel_usart.c          | 1 -
 drivers/serial/ns16550.c              | 2 +-
 drivers/serial/sandbox.c              | 1 -
 drivers/serial/serial-uclass.c        | 2 +-
 drivers/serial/serial.c               | 2 +-
 drivers/serial/serial_ar933x.c        | 1 -
 drivers/serial/serial_arc.c           | 1 -
 drivers/serial/serial_bcm283x_mu.c    | 1 -
 drivers/serial/serial_bcm283x_pl011.c | 1 -
 drivers/serial/serial_coreboot.c      | 1 -
 drivers/serial/serial_cortina.c       | 1 -
 drivers/serial/serial_efi.c           | 1 -
 drivers/serial/serial_htif.c          | 1 -
 drivers/serial/serial_intel_mid.c     | 1 -
 drivers/serial/serial_linflexuart.c   | 1 -
 drivers/serial/serial_lpuart.c        | 1 -
 drivers/serial/serial_mcf.c           | 1 -
 drivers/serial/serial_meson.c         | 1 -
 drivers/serial/serial_mpc8xx.c        | 1 -
 drivers/serial/serial_msm.c           | 1 -
 drivers/serial/serial_msm_geni.c      | 1 -
 drivers/serial/serial_mtk.c           | 2 +-
 drivers/serial/serial_mvebu_a3700.c   | 1 -
 drivers/serial/serial_mxc.c           | 1 -
 drivers/serial/serial_mxs.c           | 1 -
 drivers/serial/serial_npcm.c          | 1 -
 drivers/serial/serial_ns16550.c       | 2 +-
 drivers/serial/serial_nulldev.c       | 1 -
 drivers/serial/serial_omap.c          | 2 +-
 drivers/serial/serial_owl.c           | 1 -
 drivers/serial/serial_pic32.c         | 1 -
 drivers/serial/serial_pl01x.c         | 1 -
 drivers/serial/serial_rockchip.c      | 1 -
 drivers/serial/serial_s5p4418_pl011.c | 1 -
 drivers/serial/serial_semihosting.c   | 1 -
 drivers/serial/serial_sifive.c        | 1 -
 drivers/serial/serial_sti_asc.c       | 1 -
 drivers/serial/serial_stm32.c         | 1 -
 drivers/serial/serial_uniphier.c      | 1 -
 drivers/serial/serial_xen.c           | 1 -
 drivers/serial/serial_xuartlite.c     | 1 -
 drivers/serial/serial_zynq.c          | 1 -
 drivers/serial/usbtty.c               | 1 -
 46 files changed, 6 insertions(+), 46 deletions(-)
drivers/serial/altera_jtag_uart.c +0 -1
index 9e39da7dd246..3f706e1839f2 100644
@@ -4,7 +4,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <serial.h>
drivers/serial/altera_uart.c +0 -1
index 35920480841a..3c13ef25bb49 100644
@@ -4,7 +4,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <serial.h>
drivers/serial/arm_dcc.c +0 -1
index a402a123b6d6..66af136695d0 100644
@@ -15,7 +15,6 @@
  * this file might be covered by the GNU General Public License.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 
drivers/serial/atmel_usart.c +0 -1
index 9827c006fa88..7e45a80969e8 100644
@@ -5,7 +5,6 @@
  * Modified to support C structur SoC access by
  * Andreas Bießmann <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/ns16550.c +1 -1
index 6deb1d8ddc56..4963385dc1c1 100644
@@ -5,7 +5,7 @@
  */
 
 #include <clock_legacy.h>
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/sandbox.c +0 -1
index f6ac3d228526..ec0068e33d34 100644
@@ -9,7 +9,6 @@
  * U-Boot.
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <os.h>
drivers/serial/serial-uclass.c +1 -1
index e4fa3933bc8f..84f02f7ac76a 100644
@@ -5,7 +5,7 @@
 
 #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env_internal.h>
 #include <errno.h>
drivers/serial/serial.c +1 -1
index 787edd536027..dc4bb06fa992 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <env_internal.h>
 #include <hang.h>
 #include <serial.h>
drivers/serial/serial_ar933x.c +0 -1
index 4f9163497626..4d92752690fc 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2016 Wills Wang <[email protected]>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <dm.h>
 #include <div64.h>
drivers/serial/serial_arc.c +0 -1
index c2fc8a901e25..c0930cf7334a 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 #include <asm/global_data.h>
drivers/serial/serial_bcm283x_mu.c +0 -1
index 7585f790d22a..7fa26244b1ca 100644
@@ -14,7 +14,6 @@
 
 /* Simple U-Boot driver for the BCM283x mini UART */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_bcm283x_pl011.c +0 -1
index 09a9868a38f1..2abc1c4658f3 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Alexander Graf <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/gpio.h>
 #include <dm/pinctrl.h>
drivers/serial/serial_coreboot.c +0 -1
index 23066e4d0543..b1f69f6998cf 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATGEGORY  UCLASS_SERIAL
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <ns16550.h>
drivers/serial/serial_cortina.c +0 -1
index 6dc81a775d3f..3ae8fb465848 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_efi.c +0 -1
index 0067576389d1..5733eaaf9d41 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <efi.h>
drivers/serial/serial_htif.c +0 -1
index 5d2bf0aaeba3..2a93bbbcc9f8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Ventana Micro Systems Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/serial/serial_intel_mid.c +0 -1
index bbf19057c4d1..4b528e452926 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Intel Corporation
  */
 
-#include <common.h>
 #include <dm.h>
 #include <ns16550.h>
 #include <serial.h>
drivers/serial/serial_linflexuart.c +0 -1
index b449e55a6506..ff66e69b9d7b 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_lpuart.c +0 -1
index 3f2be72b8302..a06e6dc2505d 100644
@@ -4,7 +4,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <clk.h>
 #include <dm.h>
drivers/serial/serial_mcf.c +0 -1
index bb2afd0d8cd6..76143575fa98 100644
@@ -15,7 +15,6 @@
  * as serial console interface.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/platform_data/serial_coldfire.h>
drivers/serial/serial_meson.c +0 -1
index be5f380f8500..bb79b9729579 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Beniamino Galvani <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/serial/serial_mpc8xx.c +0 -1
index d82760c7f10a..9ce3fc3d9ec4 100644
@@ -4,7 +4,6 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_msm.c +0 -1
index a472e0b36833..757e5eaf974f 100644
@@ -8,7 +8,6 @@
  * Based on Linux driver.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/serial_msm_geni.c +0 -1
index 5260474fb9a4..cb6c09fdd09e 100644
@@ -9,7 +9,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/delay.h>
drivers/serial/serial_mtk.c +1 -1
index f146f2b006e8..3f569c68f22a 100644
@@ -7,7 +7,7 @@
  */
 
 #include <clk.h>
-#include <common.h>
+#include <config.h>
 #include <div64.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/serial/serial_mvebu_a3700.c +0 -1
index b2017c645565..1a0b85e170ab 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2021 Pali Rohár <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_mxc.c +0 -1
index cc85a502726e..c5fd740be4de 100644
@@ -3,7 +3,6 @@
  * (c) 2007 Sascha Hauer <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <watchdog.h>
drivers/serial/serial_mxs.c +0 -1
index 3659948b8728..071bd09fef69 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2023 Marek Vasut <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <serial.h>
drivers/serial/serial_npcm.c +0 -1
index 6bf3a943a2fc..661daf1aefa3 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_ns16550.c +1 -1
index 4014f6820400..577864bc2195 100644
@@ -4,7 +4,7 @@
  * Rob Taylor, Flying Pig Systems. [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <ns16550.h>
 #include <serial.h>
drivers/serial/serial_nulldev.c +0 -1
index f3ca7f525591..78a9e0b195fa 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 National Instruments
  */
 
-#include <common.h>
 #include <dm.h>
 #include <serial.h>
 
drivers/serial/serial_omap.c +1 -1
index 49ced8f9fae4..94672655c288 100644
@@ -6,7 +6,7 @@
  *     Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <log.h>
drivers/serial/serial_owl.c +0 -1
index 3b795785f780..8ce8aa32a21e 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/serial_pic32.c +0 -1
index 0a03a9a25497..a49c4139b5ae 100644
@@ -3,7 +3,6 @@
  * (c) 2015 Paul Thacker <[email protected]>
  *
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/serial/serial_pl01x.c +0 -1
index f04c21e08264..80c35963b8f2 100644
@@ -10,7 +10,6 @@
 
 /* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
 
-#include <common.h>
 #include <asm/global_data.h>
 /* For get_bus_freq() */
 #include <clock_legacy.h>
drivers/serial/serial_rockchip.c +0 -1
index f4e9422ed91c..8a15173f238f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/serial/serial_s5p4418_pl011.c +0 -1
index e4492e662e92..1fb954e80c2a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022  Stefan Bosch <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/reset.h>
drivers/serial/serial_semihosting.c +0 -1
index cfa1ec3148c5..56a5ec72428a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <serial.h>
drivers/serial/serial_sifive.c +0 -1
index c449f3fd02d9..e47828e4d6ad 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Anup Patel <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <debug_uart.h>
 #include <dm.h>
drivers/serial/serial_sti_asc.c +0 -1
index 40381b57b08e..ef68e585dd62 100644
@@ -6,7 +6,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <serial.h>
drivers/serial/serial_stm32.c +0 -1
index fb039546a41b..1ee58142b3f8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/serial/serial_uniphier.c +0 -1
index 27e4b92c3997..a566ba7a47d5 100644
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
drivers/serial/serial_xen.c +0 -1
index ab318b06462b..e05805f63726 100644
@@ -3,7 +3,6 @@
  * (C) 2018 NXP
  * (C) 2020 EPAM Systems Inc.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <serial.h>
drivers/serial/serial_xuartlite.c +0 -1
index 35df413321fe..eb234108746d 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
drivers/serial/serial_zynq.c +0 -1
index 1847d1f6ecd2..55f13c00ddf6 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <errno.h>
drivers/serial/usbtty.c +0 -2
index ecb6ba853df7..ae3ac8070d34 100644
@@ -7,7 +7,6 @@
  * Bryan O'Donoghue, [email protected]
  */
 
-#include <common.h>
 #include <config.h>
 #include <circbuf.h>
 #include <env.h>
--

2.34.1

Tested-by on v1 60/81
#96 lore raw

Re: [PATCH 60/81] serial: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).

Thanks a lot!

Quoted 649 lines

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: This contributor prefers not to receive mails <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Anastasiia Lukianenko <[email protected]>
Cc: Oleksandr Andrushchenko <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Maksim Kiselev <[email protected]>
Cc: Algapally Santosh Sagar <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: "Sébastien Szymanski" <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Sam Shih <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Yang Xiwen <[email protected]>

---
  drivers/serial/altera_jtag_uart.c     | 1 -
  drivers/serial/altera_uart.c          | 1 -
  drivers/serial/arm_dcc.c              | 1 -
  drivers/serial/atmel_usart.c          | 1 -
  drivers/serial/ns16550.c              | 2 +-
  drivers/serial/sandbox.c              | 1 -
  drivers/serial/serial-uclass.c        | 2 +-
  drivers/serial/serial.c               | 2 +-
  drivers/serial/serial_ar933x.c        | 1 -
  drivers/serial/serial_arc.c           | 1 -
  drivers/serial/serial_bcm283x_mu.c    | 1 -
  drivers/serial/serial_bcm283x_pl011.c | 1 -
  drivers/serial/serial_coreboot.c      | 1 -
  drivers/serial/serial_cortina.c       | 1 -
  drivers/serial/serial_efi.c           | 1 -
  drivers/serial/serial_htif.c          | 1 -
  drivers/serial/serial_intel_mid.c     | 1 -
  drivers/serial/serial_linflexuart.c   | 1 -
  drivers/serial/serial_lpuart.c        | 1 -
  drivers/serial/serial_mcf.c           | 1 -
  drivers/serial/serial_meson.c         | 1 -
  drivers/serial/serial_mpc8xx.c        | 1 -
  drivers/serial/serial_msm.c           | 1 -
  drivers/serial/serial_msm_geni.c      | 1 -
  drivers/serial/serial_mtk.c           | 2 +-
  drivers/serial/serial_mvebu_a3700.c   | 1 -
  drivers/serial/serial_mxc.c           | 1 -
  drivers/serial/serial_mxs.c           | 1 -
  drivers/serial/serial_npcm.c          | 1 -
  drivers/serial/serial_ns16550.c       | 2 +-
  drivers/serial/serial_nulldev.c       | 1 -
  drivers/serial/serial_omap.c          | 2 +-
  drivers/serial/serial_owl.c           | 1 -
  drivers/serial/serial_pic32.c         | 1 -
  drivers/serial/serial_pl01x.c         | 1 -
  drivers/serial/serial_rockchip.c      | 1 -
  drivers/serial/serial_s5p4418_pl011.c | 1 -
  drivers/serial/serial_semihosting.c   | 1 -
  drivers/serial/serial_sifive.c        | 1 -
  drivers/serial/serial_sti_asc.c       | 1 -
  drivers/serial/serial_stm32.c         | 1 -
  drivers/serial/serial_uniphier.c      | 1 -
  drivers/serial/serial_xen.c           | 1 -
  drivers/serial/serial_xuartlite.c     | 1 -
  drivers/serial/serial_zynq.c          | 1 -
  drivers/serial/usbtty.c               | 1 -
  46 files changed, 6 insertions(+), 46 deletions(-)
drivers/serial/altera_jtag_uart.c +0 -1
index 9e39da7dd246..3f706e1839f2 100644
@@ -4,7 +4,6 @@
   * Scott McNutt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <serial.h>
drivers/serial/altera_uart.c +0 -1
index 35920480841a..3c13ef25bb49 100644
@@ -4,7 +4,6 @@
   * Scott McNutt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <serial.h>
drivers/serial/arm_dcc.c +0 -1
index a402a123b6d6..66af136695d0 100644
@@ -15,7 +15,6 @@
   * this file might be covered by the GNU General Public License.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <serial.h>
 
drivers/serial/atmel_usart.c +0 -1
index 9827c006fa88..7e45a80969e8 100644
@@ -5,7 +5,6 @@
   * Modified to support C structur SoC access by
   * Andreas Bießmann <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/serial/ns16550.c +1 -1
index 6deb1d8ddc56..4963385dc1c1 100644
@@ -5,7 +5,7 @@
   */
 
  #include <clock_legacy.h>
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/serial/sandbox.c +0 -1
index f6ac3d228526..ec0068e33d34 100644
@@ -9,7 +9,6 @@
   * U-Boot.
   */
 
-#include <common.h>
  #include <console.h>
  #include <dm.h>
  #include <os.h>
drivers/serial/serial-uclass.c +1 -1
index e4fa3933bc8f..84f02f7ac76a 100644
@@ -5,7 +5,7 @@
 
  #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <env_internal.h>
  #include <errno.h>
drivers/serial/serial.c +1 -1
index 787edd536027..dc4bb06fa992 100644
@@ -4,7 +4,7 @@
   * Wolfgang Denk, DENX Software Engineering, [email protected].
   */
 
-#include <common.h>
+#include <config.h>
  #include <env_internal.h>
  #include <hang.h>
  #include <serial.h>
drivers/serial/serial_ar933x.c +0 -1
index 4f9163497626..4d92752690fc 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2015-2016 Wills Wang <[email protected]>
   */
 
-#include <common.h>
  #include <clock_legacy.h>
  #include <dm.h>
  #include <div64.h>
drivers/serial/serial_arc.c +0 -1
index c2fc8a901e25..c0930cf7334a 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <serial.h>
  #include <asm/global_data.h>
drivers/serial/serial_bcm283x_mu.c +0 -1
index 7585f790d22a..7fa26244b1ca 100644
@@ -14,7 +14,6 @@
 
  /* Simple U-Boot driver for the BCM283x mini UART */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <watchdog.h>
drivers/serial/serial_bcm283x_pl011.c +0 -1
index 09a9868a38f1..2abc1c4658f3 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2018 Alexander Graf <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <dm/pinctrl.h>
drivers/serial/serial_coreboot.c +0 -1
index 23066e4d0543..b1f69f6998cf 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATGEGORY	UCLASS_SERIAL
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <ns16550.h>
drivers/serial/serial_cortina.c +0 -1
index 6dc81a775d3f..3ae8fb465848 100644
@@ -5,7 +5,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <watchdog.h>
drivers/serial/serial_efi.c +0 -1
index 0067576389d1..5733eaaf9d41 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <debug_uart.h>
  #include <dm.h>
  #include <efi.h>
drivers/serial/serial_htif.c +0 -1
index 5d2bf0aaeba3..2a93bbbcc9f8 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2022 Ventana Micro Systems Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/serial/serial_intel_mid.c +0 -1
index bbf19057c4d1..4b528e452926 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017 Intel Corporation
   */
 
-#include <common.h>
  #include <dm.h>
  #include <ns16550.h>
  #include <serial.h>
drivers/serial/serial_linflexuart.c +0 -1
index b449e55a6506..ff66e69b9d7b 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <watchdog.h>
drivers/serial/serial_lpuart.c +0 -1
index 3f2be72b8302..a06e6dc2505d 100644
@@ -4,7 +4,6 @@
   * Copyright 2013 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <clock_legacy.h>
  #include <clk.h>
  #include <dm.h>
drivers/serial/serial_mcf.c +0 -1
index bb2afd0d8cd6..76143575fa98 100644
@@ -15,7 +15,6 @@
   * as serial console interface.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/global_data.h>
  #include <dm/platform_data/serial_coldfire.h>
drivers/serial/serial_meson.c +0 -1
index be5f380f8500..bb79b9729579 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2016 Beniamino Galvani <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/serial/serial_mpc8xx.c +0 -1
index d82760c7f10a..9ce3fc3d9ec4 100644
@@ -4,7 +4,6 @@
   * Wolfgang Denk, DENX Software Engineering, [email protected].
   */
 
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <serial.h>
drivers/serial/serial_msm.c +0 -1
index a472e0b36833..757e5eaf974f 100644
@@ -8,7 +8,6 @@
   * Based on Linux driver.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/serial/serial_msm_geni.c +0 -1
index 5260474fb9a4..cb6c09fdd09e 100644
@@ -9,7 +9,6 @@
 
  #include <asm/io.h>
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <linux/delay.h>
drivers/serial/serial_mtk.c +1 -1
index f146f2b006e8..3f569c68f22a 100644
@@ -7,7 +7,7 @@
   */
 
  #include <clk.h>
-#include <common.h>
+#include <config.h>
  #include <div64.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/serial/serial_mvebu_a3700.c +0 -1
index b2017c645565..1a0b85e170ab 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2021 Pali Rohár <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <serial.h>
drivers/serial/serial_mxc.c +0 -1
index cc85a502726e..c5fd740be4de 100644
@@ -3,7 +3,6 @@
   * (c) 2007 Sascha Hauer <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <watchdog.h>
drivers/serial/serial_mxs.c +0 -1
index 3659948b8728..071bd09fef69 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (C) 2023 Marek Vasut <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <serial.h>
drivers/serial/serial_npcm.c +0 -1
index 6bf3a943a2fc..661daf1aefa3 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2021 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <serial.h>
drivers/serial/serial_ns16550.c +1 -1
index 4014f6820400..577864bc2195 100644
@@ -4,7 +4,7 @@
   * Rob Taylor, Flying Pig Systems. [email protected].
   */
 
-#include <common.h>
+#include <config.h>
  #include <clock_legacy.h>
  #include <ns16550.h>
  #include <serial.h>
drivers/serial/serial_nulldev.c +0 -1
index f3ca7f525591..78a9e0b195fa 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2015 National Instruments
   */
 
-#include <common.h>
  #include <dm.h>
  #include <serial.h>
 
drivers/serial/serial_omap.c +1 -1
index 49ced8f9fae4..94672655c288 100644
@@ -6,7 +6,7 @@
   *	Lokesh Vutla <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <dt-structs.h>
  #include <log.h>
drivers/serial/serial_owl.c +0 -1
index 3b795785f780..8ce8aa32a21e 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/serial/serial_pic32.c +0 -1
index 0a03a9a25497..a49c4139b5ae 100644
@@ -3,7 +3,6 @@
   * (c) 2015 Paul Thacker <[email protected]>
   *
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/serial/serial_pl01x.c +0 -1
index f04c21e08264..80c35963b8f2 100644
@@ -10,7 +10,6 @@
 
  /* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
 
-#include <common.h>
  #include <asm/global_data.h>
  /* For get_bus_freq() */
  #include <clock_legacy.h>
drivers/serial/serial_rockchip.c +0 -1
index f4e9422ed91c..8a15173f238f 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2015 Google, Inc
   */
 
-#include <common.h>
  #include <debug_uart.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/serial/serial_s5p4418_pl011.c +0 -1
index e4492e662e92..1fb954e80c2a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2022  Stefan Bosch <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/arch/clk.h>
  #include <asm/arch/reset.h>
drivers/serial/serial_semihosting.c +0 -1
index cfa1ec3148c5..56a5ec72428a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2022 Sean Anderson <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <serial.h>
drivers/serial/serial_sifive.c +0 -1
index c449f3fd02d9..e47828e4d6ad 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Anup Patel <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <debug_uart.h>
  #include <dm.h>
drivers/serial/serial_sti_asc.c +0 -1
index 40381b57b08e..ef68e585dd62 100644
@@ -6,7 +6,6 @@
   * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <serial.h>
drivers/serial/serial_stm32.c +0 -1
index fb039546a41b..1ee58142b3f8 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_SERIAL
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <log.h>
drivers/serial/serial_uniphier.c +0 -1
index 27e4b92c3997..a566ba7a47d5 100644
@@ -5,7 +5,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <linux/bitfield.h>
  #include <linux/bitops.h>
drivers/serial/serial_xen.c +0 -1
index ab318b06462b..e05805f63726 100644
@@ -3,7 +3,6 @@
   * (C) 2018 NXP
   * (C) 2020 EPAM Systems Inc.
   */
-#include <common.h>
  #include <cpu_func.h>
  #include <dm.h>
  #include <serial.h>
drivers/serial/serial_xuartlite.c +0 -1
index 35df413321fe..eb234108746d 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <linux/bitops.h>
drivers/serial/serial_zynq.c +0 -1
index 1847d1f6ecd2..55f13c00ddf6 100644
@@ -5,7 +5,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <debug_uart.h>
  #include <dm.h>
  #include <errno.h>
drivers/serial/usbtty.c +0 -1
index ecb6ba853df7..ae3ac8070d34 100644
@@ -7,7 +7,6 @@
   * Bryan O'Donoghue, [email protected]
   */
 
-#include <common.h>
  #include <config.h>
  #include <circbuf.h>
  #include <env.h>
author
#97 lore raw

PATCH 61/81 sm: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Neil Armstrong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Alexey Romanov <[email protected]>

---
 drivers/sm/meson-sm.c   | 1 -
 drivers/sm/sandbox-sm.c | 1 -
 drivers/sm/sm-uclass.c  | 1 -
 3 files changed, 3 deletions(-)
drivers/sm/meson-sm.c +0 -1
index 15b3b0e2672f..87eba1486db3 100644
@@ -5,7 +5,6 @@
  * Author: Alexey Romanov <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <sm.h>
drivers/sm/sandbox-sm.c +0 -1
index 109ddb2af557..a95e685494c2 100644
@@ -5,7 +5,6 @@
  * Author: Alexey Romanov <[email protected]>
  */
 
-#include <common.h>
 #include <sm.h>
 #include <sm-uclass.h>
 #include <sandbox-sm.h>
drivers/sm/sm-uclass.c +0 -1
index 6a8b70262937..abca0052e293 100644
@@ -5,7 +5,6 @@
  * Author: Alexey Romanov <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sm-uclass.h>
Signature · 1 line
2.34.1
author
#98 lore raw

PATCH 62/81 smem: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Caleb Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/smem/msm_smem.c     | 1 -
 drivers/smem/sandbox_smem.c | 1 -
 drivers/smem/smem-uclass.c  | 1 -
 3 files changed, 3 deletions(-)
drivers/smem/msm_smem.c +0 -1
index 17ee6c837c6a..ccd145f9afbb 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2018, Ramon Fried <[email protected]>
  */
 
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <asm/global_data.h>
drivers/smem/sandbox_smem.c +0 -1
index 7397e4407ad4..fec98e5611d6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Ramon Fried <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <smem.h>
drivers/smem/smem-uclass.c +0 -1
index 8469076915e0..4dea5cc4bf1c 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SMEM
 
-#include <common.h>
 #include <dm.h>
 #include <smem.h>
 
Signature · 1 line
2.34.1
author
#99 lore raw

PATCH 63/81 soc: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Hari Nagalla <[email protected]>
Cc: Bryan Brattlof <[email protected]>

---
 drivers/soc/soc-uclass.c            | 1 -
 drivers/soc/soc_sandbox.c           | 1 -
 drivers/soc/soc_ti_k3.c             | 1 -
 drivers/soc/soc_xilinx_versal.c     | 1 -
 drivers/soc/soc_xilinx_versal_net.c | 1 -
 drivers/soc/soc_xilinx_zynqmp.c     | 1 -
 drivers/soc/ti/k3-navss-ringacc.c   | 1 -
 drivers/soc/ti/keystone_serdes.c    | 1 -
 drivers/soc/ti/pruss.c              | 1 -
 9 files changed, 9 deletions(-)
drivers/soc/soc-uclass.c +0 -1
index 8b3044fed8d2..744cdda2e187 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SOC
 
-#include <common.h>
 #include <soc.h>
 #include <dm.h>
 #include <errno.h>
drivers/soc/soc_sandbox.c +0 -1
index 15fdd9930cb4..8d621e88f567 100644
@@ -6,7 +6,6 @@
  * Dave Gerlach <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <soc.h>
 
drivers/soc/soc_ti_k3.c +0 -1
index 3a4e58bba671..b585e47d46fe 100644
@@ -4,7 +4,6 @@
  *	Dave Gerlach <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <soc.h>
 
drivers/soc/soc_xilinx_versal.c +0 -1
index 3d8c25c19bb6..7427f8432c8b 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2021 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <soc.h>
 #include <zynqmp_firmware.h>
drivers/soc/soc_xilinx_versal_net.c +0 -1
index 146d068bb4ae..d64fc366a6d1 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2022, Advanced Micro Devices, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <soc.h>
 #include <zynqmp_firmware.h>
drivers/soc/soc_xilinx_zynqmp.c +0 -1
index d8b4f172a39d..a2d5b82fd34d 100644
@@ -9,7 +9,6 @@
  * Stefan Herbrechtsmeier <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <asm/cache.h>
drivers/soc/ti/k3-navss-ringacc.c +0 -1
index ed39ff2fa4c7..d3f3d4761c2f 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/cache.h>
drivers/soc/ti/keystone_serdes.c +0 -1
index 0e1bf8ff39db..b19617997e1a 100644
@@ -7,7 +7,6 @@
  */
 
 #include <errno.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/ti-common/keystone_serdes.h>
 #include <linux/bitops.h>
drivers/soc/ti/pruss.c +0 -1
index 461390925d2c..8df8140cc186 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/of_access.h>
 #include <errno.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 63/81
#100 lore raw

Re: [PATCH 63/81] soc: Remove <common.h> and add needed includes

On May 1, 2024 thus sayeth Tom Rini:

Quoted 25 lines

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Hari Nagalla <[email protected]>
Cc: Bryan Brattlof <[email protected]>

---
 drivers/soc/soc-uclass.c            | 1 -
 drivers/soc/soc_sandbox.c           | 1 -
 drivers/soc/soc_ti_k3.c             | 1 -
 drivers/soc/soc_xilinx_versal.c     | 1 -
 drivers/soc/soc_xilinx_versal_net.c | 1 -
 drivers/soc/soc_xilinx_zynqmp.c     | 1 -
 drivers/soc/ti/k3-navss-ringacc.c   | 1 -
 drivers/soc/ti/keystone_serdes.c    | 1 -
 drivers/soc/ti/pruss.c              | 1 -
 9 files changed, 9 deletions(-)

...

drivers/soc/soc_ti_k3.c line 9

Quoted 13 lines
drivers/soc/soc_ti_k3.c +0 -1
index 3a4e58bba671..b585e47d46fe 100644
@@ -4,7 +4,6 @@
  *	Dave Gerlach <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <soc.h>
 

Thanks Tom!

~Bryan

author
#101 lore raw

PATCH 64/81 sound: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>

---
 drivers/sound/broadwell_i2s.c   | 1 -
 drivers/sound/broadwell_sound.c | 1 -
 drivers/sound/codec-uclass.c    | 1 -
 drivers/sound/da7219.c          | 1 -
 drivers/sound/hda_codec.c       | 1 -
 drivers/sound/i2s-uclass.c      | 1 -
 drivers/sound/i8254_beep.c      | 1 -
 drivers/sound/ivybridge_sound.c | 1 -
 drivers/sound/max98088.c        | 1 -
 drivers/sound/max98090.c        | 1 -
 drivers/sound/max98095.c        | 1 -
 drivers/sound/max98357a.c       | 1 -
 drivers/sound/maxim_codec.c     | 1 -
 drivers/sound/rockchip_i2s.c    | 1 -
 drivers/sound/rockchip_sound.c  | 1 -
 drivers/sound/rt5677.c          | 1 -
 drivers/sound/samsung-i2s.c     | 2 +-
 drivers/sound/samsung_sound.c   | 1 -
 drivers/sound/sandbox.c         | 1 -
 drivers/sound/sound-uclass.c    | 1 -
 drivers/sound/sound.c           | 2 +-
 drivers/sound/tegra_ahub.c      | 2 +-
 drivers/sound/tegra_i2s.c       | 1 -
 drivers/sound/tegra_sound.c     | 1 -
 drivers/sound/wm8994.c          | 1 -
 25 files changed, 3 insertions(+), 25 deletions(-)
drivers/sound/broadwell_i2s.c +0 -1
index 7f754e656761..bc44b5ec7e1f 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
drivers/sound/broadwell_sound.c +0 -1
index 6e083fe1f696..473f8d8f9771 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
drivers/sound/codec-uclass.c +0 -1
index 2cb233bd3060..1c1560619ea5 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_AUDIO_CODEC
 
-#include <common.h>
 #include <dm.h>
 #include <audio_codec.h>
 
drivers/sound/da7219.c +0 -1
index c1edef443608..5b9b3f65263f 100644
@@ -6,7 +6,6 @@
  * Parts taken from coreboot
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <irq.h>
drivers/sound/hda_codec.c +0 -1
index af6148ef7240..da8bde67de65 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY	UCLASS_SOUND
 
-#include <common.h>
 #include <dm.h>
 #include <hda_codec.h>
 #include <log.h>
drivers/sound/i2s-uclass.c +0 -1
index fc4f686b516d..6263c4d70719 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 
drivers/sound/i8254_beep.c +0 -1
index 5572dc4d265d..7234ad4a07e5 100644
@@ -3,7 +3,6 @@
  * Copyright 2018 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sound.h>
 #include <asm/i8254.h>
drivers/sound/ivybridge_sound.c +0 -1
index d982219e06de..aeeba1d267ec 100644
@@ -12,7 +12,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <dm.h>
 #include <hda_codec.h>
 #include <log.h>
drivers/sound/max98088.c +0 -1
index c0463b8e8a62..d9037641ca46 100644
@@ -8,7 +8,6 @@
  * following the changes made in max98095.c
  */
 
-#include <common.h>
 #include <audio_codec.h>
 #include <div64.h>
 #include <dm.h>
drivers/sound/max98090.c +0 -1
index a798762f1ee7..18a3ffa85c8e 100644
@@ -5,7 +5,6 @@
  * Copyright 2011 Maxim Integrated Products
  */
 
-#include <common.h>
 #include <audio_codec.h>
 #include <div64.h>
 #include <dm.h>
drivers/sound/max98095.c +0 -1
index d0f701aaf105..96e772cff21b 100644
@@ -7,7 +7,6 @@
  * Modified for U-Boot by R. Chandrasekar ([email protected])
  */
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <div64.h>
drivers/sound/max98357a.c +0 -1
index bdf6dc236ec3..da56ffdd6bb4 100644
@@ -6,7 +6,6 @@
  * Parts taken from coreboot
  */
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <log.h>
drivers/sound/maxim_codec.c +0 -1
index 6553d9590472..98f094c0e9ad 100644
@@ -5,7 +5,6 @@
  * Copyright 2011 Maxim Integrated Products
  */
 
-#include <common.h>
 #include <div64.h>
 #include <i2c.h>
 #include <i2s.h>
drivers/sound/rockchip_i2s.c +0 -1
index 4e9e68aaac81..5078dfbed07d 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
drivers/sound/rockchip_sound.c +0 -1
index 94058e603d7d..418d2efd4526 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <audio_codec.h>
 #include <clk.h>
 #include <dm.h>
drivers/sound/rt5677.c +0 -1
index b655bb40b642..b5c997c6dd53 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2c.h>
drivers/sound/samsung-i2s.c +1 -1
index dc5a2789aeed..42175fd7d28b 100644
@@ -4,11 +4,11 @@
  * R. Chandrasekar <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
 #include <sound.h>
+#include <time.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/i2s-regs.h>
drivers/sound/samsung_sound.c +0 -1
index 473cedf7e974..9150ad4a63ba 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
drivers/sound/sandbox.c +0 -1
index c6cbd81fdbce..31ae153530e8 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
drivers/sound/sound-uclass.c +0 -1
index 2ffc4fc7c1db..b8a3dab447d9 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
drivers/sound/sound.c +1 -1
index c0fc50c99dac..4fde2989e04f 100644
@@ -4,9 +4,9 @@
  * R. Chandrasekar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <sound.h>
+#include <linux/string.h>
 
 void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
 			      uint freq, uint channels)
drivers/sound/tegra_ahub.c +1 -1
index 495a29c5137c..8f1b0c009a88 100644
@@ -7,11 +7,11 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
 #include <misc.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_ahub.h>
 #include <asm/arch-tegra/tegra_i2s.h>
drivers/sound/tegra_i2s.c +0 -1
index 932f737900e4..357aac36ceaa 100644
@@ -5,7 +5,6 @@
  */
 #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
 #include <dm.h>
 #include <i2s.h>
 #include <log.h>
drivers/sound/tegra_sound.c +0 -1
index aef6a2eb1475..152c929146f5 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2s.h>
drivers/sound/wm8994.c +0 -1
index fd646479b315..6b3091aa5de1 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2012 Samsung Electronics
  * R. Chandrasekar <[email protected]>
  */
-#include <common.h>
 #include <audio_codec.h>
 #include <dm.h>
 #include <div64.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 64/81
#102 lore raw

Re: [PATCH 64/81] sound: Remove <common.h> and add needed includes

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 348 lines

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>

---
  drivers/sound/broadwell_i2s.c   | 1 -
  drivers/sound/broadwell_sound.c | 1 -
  drivers/sound/codec-uclass.c    | 1 -
  drivers/sound/da7219.c          | 1 -
  drivers/sound/hda_codec.c       | 1 -
  drivers/sound/i2s-uclass.c      | 1 -
  drivers/sound/i8254_beep.c      | 1 -
  drivers/sound/ivybridge_sound.c | 1 -
  drivers/sound/max98088.c        | 1 -
  drivers/sound/max98090.c        | 1 -
  drivers/sound/max98095.c        | 1 -
  drivers/sound/max98357a.c       | 1 -
  drivers/sound/maxim_codec.c     | 1 -
  drivers/sound/rockchip_i2s.c    | 1 -
  drivers/sound/rockchip_sound.c  | 1 -
  drivers/sound/rt5677.c          | 1 -
  drivers/sound/samsung-i2s.c     | 2 +-
  drivers/sound/samsung_sound.c   | 1 -
  drivers/sound/sandbox.c         | 1 -
  drivers/sound/sound-uclass.c    | 1 -
  drivers/sound/sound.c           | 2 +-
  drivers/sound/tegra_ahub.c      | 2 +-
  drivers/sound/tegra_i2s.c       | 1 -
  drivers/sound/tegra_sound.c     | 1 -
  drivers/sound/wm8994.c          | 1 -
  25 files changed, 3 insertions(+), 25 deletions(-)
drivers/sound/broadwell_i2s.c +0 -1
index 7f754e656761..bc44b5ec7e1f 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
drivers/sound/broadwell_sound.c +0 -1
index 6e083fe1f696..473f8d8f9771 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <i2s.h>
drivers/sound/codec-uclass.c +0 -1
index 2cb233bd3060..1c1560619ea5 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_AUDIO_CODEC
 
-#include <common.h>
  #include <dm.h>
  #include <audio_codec.h>
 
drivers/sound/da7219.c +0 -1
index c1edef443608..5b9b3f65263f 100644
@@ -6,7 +6,6 @@
   * Parts taken from coreboot
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <irq.h>
drivers/sound/hda_codec.c +0 -1
index af6148ef7240..da8bde67de65 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY	UCLASS_SOUND
 
-#include <common.h>
  #include <dm.h>
  #include <hda_codec.h>
  #include <log.h>
drivers/sound/i2s-uclass.c +0 -1
index fc4f686b516d..6263c4d70719 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
 
drivers/sound/i8254_beep.c +0 -1
index 5572dc4d265d..7234ad4a07e5 100644
@@ -3,7 +3,6 @@
   * Copyright 2018 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <sound.h>
  #include <asm/i8254.h>
drivers/sound/ivybridge_sound.c +0 -1
index d982219e06de..aeeba1d267ec 100644
@@ -12,7 +12,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <dm.h>
  #include <hda_codec.h>
  #include <log.h>
drivers/sound/max98088.c +0 -1
index c0463b8e8a62..d9037641ca46 100644
@@ -8,7 +8,6 @@
   * following the changes made in max98095.c
   */
 
-#include <common.h>
  #include <audio_codec.h>
  #include <div64.h>
  #include <dm.h>
drivers/sound/max98090.c +0 -1
index a798762f1ee7..18a3ffa85c8e 100644
@@ -5,7 +5,6 @@
   * Copyright 2011 Maxim Integrated Products
   */
 
-#include <common.h>
  #include <audio_codec.h>
  #include <div64.h>
  #include <dm.h>
drivers/sound/max98095.c +0 -1
index d0f701aaf105..96e772cff21b 100644
@@ -7,7 +7,6 @@
   * Modified for U-Boot by R. Chandrasekar ([email protected])
   */
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <div64.h>
drivers/sound/max98357a.c +0 -1
index bdf6dc236ec3..da56ffdd6bb4 100644
@@ -6,7 +6,6 @@
   * Parts taken from coreboot
   */
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <log.h>
drivers/sound/maxim_codec.c +0 -1
index 6553d9590472..98f094c0e9ad 100644
@@ -5,7 +5,6 @@
   * Copyright 2011 Maxim Integrated Products
   */
 
-#include <common.h>
  #include <div64.h>
  #include <i2c.h>
  #include <i2s.h>
drivers/sound/rockchip_i2s.c +0 -1
index 4e9e68aaac81..5078dfbed07d 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
drivers/sound/rockchip_sound.c +0 -1
index 94058e603d7d..418d2efd4526 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <audio_codec.h>
  #include <clk.h>
  #include <dm.h>
drivers/sound/rt5677.c +0 -1
index b655bb40b642..b5c997c6dd53 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <i2c.h>
drivers/sound/samsung-i2s.c +1 -1
index dc5a2789aeed..42175fd7d28b 100644
@@ -4,11 +4,11 @@
   * R. Chandrasekar <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
  #include <sound.h>
+#include <time.h>
  #include <asm/arch/clk.h>
  #include <asm/arch/pinmux.h>
  #include <asm/arch/i2s-regs.h>
drivers/sound/samsung_sound.c +0 -1
index 473cedf7e974..9150ad4a63ba 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <i2s.h>
drivers/sound/sandbox.c +0 -1
index c6cbd81fdbce..31ae153530e8 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <i2s.h>
drivers/sound/sound-uclass.c +0 -1
index 2ffc4fc7c1db..b8a3dab447d9 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_SOUND
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
drivers/sound/sound.c +1 -1
index c0fc50c99dac..4fde2989e04f 100644
@@ -4,9 +4,9 @@
   * R. Chandrasekar <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <sound.h>
+#include <linux/string.h>
 
  void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
  			      uint freq, uint channels)
drivers/sound/tegra_ahub.c +1 -1
index 495a29c5137c..8f1b0c009a88 100644
@@ -7,11 +7,11 @@
 
  #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
  #include <misc.h>
+#include <time.h>
  #include <asm/io.h>
  #include <asm/arch-tegra/tegra_ahub.h>
  #include <asm/arch-tegra/tegra_i2s.h>
drivers/sound/tegra_i2s.c +0 -1
index 932f737900e4..357aac36ceaa 100644
@@ -5,7 +5,6 @@
   */
  #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
  #include <dm.h>
  #include <i2s.h>
  #include <log.h>
drivers/sound/tegra_sound.c +0 -1
index aef6a2eb1475..152c929146f5 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_I2S
 
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <i2s.h>
drivers/sound/wm8994.c +0 -1
index fd646479b315..6b3091aa5de1 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2012 Samsung Electronics
   * R. Chandrasekar <[email protected]>
   */
-#include <common.h>
  #include <audio_codec.h>
  #include <dm.h>
  #include <div64.h>
author
#103 lore raw

PATCH 65/81 spi: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Jagan Teki <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Anand Gore <[email protected]>
Cc: William Zhang <[email protected]>
Cc: Kursad Oney <[email protected]>
Cc: Joel Peshkin <[email protected]>
Cc: Philippe Reynes <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Chin-Ting Kuo <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Robert Marko <[email protected]>
Cc: Luka Kovacic <[email protected]>
Cc: Luka Perkov <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>

---
 drivers/spi/altera_spi.c          | 1 -
 drivers/spi/apple_spi.c           | 1 -
 drivers/spi/atcspi200_spi.c       | 1 -
 drivers/spi/ath79_spi.c           | 1 -
 drivers/spi/atmel-quadspi.c       | 1 -
 drivers/spi/atmel_spi.c           | 1 -
 drivers/spi/bcm63xx_hsspi.c       | 1 -
 drivers/spi/bcm63xx_spi.c         | 1 -
 drivers/spi/bcmbca_hsspi.c        | 1 -
 drivers/spi/ca_sflash.c           | 1 -
 drivers/spi/cadence_ospi_versal.c | 1 -
 drivers/spi/cadence_qspi.c        | 1 -
 drivers/spi/cadence_qspi_apb.c    | 1 -
 drivers/spi/cf_spi.c              | 1 -
 drivers/spi/davinci_spi.c         | 2 +-
 drivers/spi/designware_spi.c      | 1 -
 drivers/spi/exynos_spi.c          | 1 -
 drivers/spi/fsl_dspi.c            | 1 -
 drivers/spi/fsl_espi.c            | 2 +-
 drivers/spi/fsl_qspi.c            | 1 -
 drivers/spi/ich.c                 | 1 -
 drivers/spi/iproc_qspi.c          | 1 -
 drivers/spi/kirkwood_spi.c        | 2 +-
 drivers/spi/meson_spifc.c         | 1 -
 drivers/spi/microchip_coreqspi.c  | 1 -
 drivers/spi/mpc8xx_spi.c          | 1 -
 drivers/spi/mpc8xxx_spi.c         | 1 -
 drivers/spi/mscc_bb_spi.c         | 1 -
 drivers/spi/mt7621_spi.c          | 1 -
 drivers/spi/mtk_snfi_spi.c        | 1 -
 drivers/spi/mtk_snor.c            | 1 -
 drivers/spi/mvebu_a3700_spi.c     | 1 -
 drivers/spi/mxc_spi.c             | 2 +-
 drivers/spi/mxs_spi.c             | 1 -
 drivers/spi/npcm_pspi.c           | 1 -
 drivers/spi/nxp_fspi.c            | 1 -
 drivers/spi/omap3_spi.c           | 2 +-
 drivers/spi/pic32_spi.c           | 1 -
 drivers/spi/pl022_spi.c           | 1 -
 drivers/spi/renesas_rpc_spi.c     | 1 -
 drivers/spi/rk_spi.c              | 1 -
 drivers/spi/sandbox_spi.c         | 1 -
 drivers/spi/sh_qspi.c             | 1 -
 drivers/spi/soft_spi.c            | 1 -
 drivers/spi/spi-aspeed-smc.c      | 1 -
 drivers/spi/spi-emul-uclass.c     | 1 -
 drivers/spi/spi-mem.c             | 1 -
 drivers/spi/spi-mxic.c            | 1 -
 drivers/spi/spi-qup.c             | 1 -
 drivers/spi/spi-sifive.c          | 1 -
 drivers/spi/spi-sn-f-ospi.c       | 1 -
 drivers/spi/spi-sunxi.c           | 1 -
 drivers/spi/spi-synquacer.c       | 1 -
 drivers/spi/spi-uclass.c          | 1 -
 drivers/spi/spi.c                 | 1 -
 drivers/spi/stm32_qspi.c          | 1 -
 drivers/spi/stm32_spi.c           | 1 -
 drivers/spi/tegra114_spi.c        | 1 -
 drivers/spi/tegra20_sflash.c      | 1 -
 drivers/spi/tegra20_slink.c       | 1 -
 drivers/spi/tegra210_qspi.c       | 1 -
 drivers/spi/ti_qspi.c             | 1 -
 drivers/spi/uniphier_spi.c        | 1 -
 drivers/spi/xilinx_spi.c          | 1 -
 drivers/spi/zynq_qspi.c           | 1 -
 drivers/spi/zynq_spi.c            | 1 -
 drivers/spi/zynqmp_gqspi.c        | 1 -
 67 files changed, 5 insertions(+), 67 deletions(-)
drivers/spi/altera_spi.c +0 -1
index 989679e881b5..8e227d187b0c 100644
@@ -6,7 +6,6 @@
  * Copyright (c) 2005-2008 Analog Devices Inc.
  * Copyright (C) 2010 Thomas Chou <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/apple_spi.c +0 -1
index f35f5af1f6f8..5f94e9f7a74d 100644
@@ -4,7 +4,6 @@
  * Copyright The Asahi Linux Contributors
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <spi.h>
drivers/spi/atcspi200_spi.c +0 -1
index 70cb242cd31e..929bf90458c3 100644
@@ -6,7 +6,6 @@
  * Author: Rick Chen ([email protected])
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <malloc.h>
drivers/spi/ath79_spi.c +0 -1
index 205567ef54dd..faefac712608 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2016 Wills Wang <[email protected]>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <spi.h>
 #include <dm.h>
drivers/spi/atmel-quadspi.c +0 -1
index bd73e4fddf18..3efb661803b6 100644
@@ -12,7 +12,6 @@
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/spi/atmel_spi.c +0 -1
index d4f0c4c44836..79f010013184 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2007 Atmel Corporation
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/spi/bcm63xx_hsspi.c +0 -1
index 23ac5bb76c04..1aa43fd3a238 100644
@@ -7,7 +7,6 @@
  *	Copyright (C) 2012-2013 Jonas Gorski <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/bcm63xx_spi.c +0 -1
index 889ac1f966e3..595b41c8ab8a 100644
@@ -7,7 +7,6 @@
  *	Copyright (C) 2010 Tanguy Bouzeloc <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/bcmbca_hsspi.c +0 -1
index af45882db0a7..eff9e1117d35 100644
@@ -8,7 +8,6 @@
  *	Copyright (C) 2021 Broadcom Ltd
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <spi.h>
drivers/spi/ca_sflash.c +0 -1
index 38bddd38619e..a99a8a4485ab 100644
@@ -7,7 +7,6 @@
  * Author: PengPeng Chen <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <clk.h>
 #include <dm.h>
drivers/spi/cadence_ospi_versal.c +0 -1
index c2be307f1d87..222f828f54ec 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <memalign.h>
 #include <wait_bit.h>
 #include <asm/io.h>
drivers/spi/cadence_qspi.c +0 -1
index f4593c47b8c5..75e522320101 100644
@@ -4,7 +4,6 @@
  * Altera Corporation <www.altera.com>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <dm.h>
drivers/spi/cadence_qspi_apb.c +0 -1
index fb9053221782..93ab2b5635f3 100644
@@ -25,7 +25,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <dma.h>
drivers/spi/cf_spi.c +0 -1
index 1a841b5dcefc..8234468b1d43 100644
@@ -13,7 +13,6 @@
  * TODO: fsl_dspi.c should work as a driver for the DSPI module.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/spi/davinci_spi.c +1 -1
index 25f5e9fdebd5..04c134be9edf 100644
@@ -8,7 +8,7 @@
  * Copyright (C) 2007 Atmel Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <spi.h>
 #include <malloc.h>
drivers/spi/designware_spi.c +0 -1
index 22a79da2333e..6bd48b1b3739 100644
@@ -11,7 +11,6 @@
  */
 
 #define LOG_CATEGORY UCLASS_SPI
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/spi/exynos_spi.c +0 -1
index 1bcc3ad318db..1b9bf004b7c1 100644
@@ -4,7 +4,6 @@
  * Padmavathi Venna <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/fsl_dspi.c +0 -1
index 9b3d5a94817f..1d4d90ce5aaf 100644
@@ -11,7 +11,6 @@
 
 #include <asm/global_data.h>
 #include <linux/math64.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/fsl_espi.c +1 -1
index b1d964d79d0c..2638ed252001 100644
@@ -8,7 +8,7 @@
  *	   Chuanhua Han ([email protected])
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/spi/fsl_qspi.c +0 -1
index 3f97730bad0b..8a0a53cb3720 100644
@@ -23,7 +23,6 @@
  * Transition to spi-mem in spi-fsl-qspi.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <log.h>
drivers/spi/ich.c +0 -1
index 9142ffd23870..e48ca65fe726 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY	UCLASS_SPI
 
-#include <common.h>
 #include <bootstage.h>
 #include <div64.h>
 #include <dm.h>
drivers/spi/iproc_qspi.c +0 -1
index b5c274314b5b..09f30c227023 100644
@@ -3,7 +3,6 @@
  * Copyright 2020-2021 Broadcom
  */
 
-#include <common.h>
 #include <dm.h>
 #include <spi.h>
 #include <spi-mem.h>
drivers/spi/kirkwood_spi.c +1 -1
index 2bb7390bbfb7..095cbea0fca9 100644
@@ -7,7 +7,7 @@
  * Derived from drivers/spi/mpc8xxx_spi.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/spi/meson_spifc.c +0 -1
index d99a151406e6..d7ebb6bf1ac7 100644
@@ -7,7 +7,6 @@
  * Amlogic Meson SPI Flash Controller driver
  */
 
-#include <common.h>
 #include <log.h>
 #include <spi.h>
 #include <clk.h>
drivers/spi/microchip_coreqspi.c +0 -1
index 5fe0c8e1237e..234b16882726 100644
@@ -5,7 +5,6 @@
  * Naga Sureshkumar Relli <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/mpc8xx_spi.c +0 -1
index e1448cc61969..7e72fb9e23dc 100644
@@ -16,7 +16,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mpc8xx.h>
drivers/spi/mpc8xxx_spi.c +0 -1
index 7d15390c56b3..cd624f4d6f0b 100644
@@ -4,7 +4,6 @@
  * With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/spi/mscc_bb_spi.c +0 -1
index 95bea0da1b35..ad4daeba3cd8 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/mt7621_spi.c +0 -1
index 3d0080998625..e46942de2e3b 100644
@@ -8,7 +8,6 @@
  *   Copyright (C) 2014-2015 Felix Fietkau <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/mtk_snfi_spi.c +0 -1
index 3decb3744de9..830424b31d6a 100644
@@ -5,7 +5,6 @@
  * Author: Weijie Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/spi/mtk_snor.c +0 -1
index 4b7d4a6e0741..f202b2f49f58 100644
@@ -7,7 +7,6 @@
 // Some parts are based on drivers/spi/spi-mtk-nor.c of linux version
 
 #include <clk.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device.h>
drivers/spi/mvebu_a3700_spi.c +0 -1
index bba2383a1116..fde9b142fb89 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/spi/mxc_spi.c +1 -1
index e291092c481a..ff61a14f095d 100644
@@ -3,7 +3,7 @@
  * Copyright (C) 2008, Guennadi Liakhovetski <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/mxs_spi.c +0 -1
index 773e26bbed74..ad9e490faa9f 100644
@@ -12,7 +12,6 @@
  *       GPIO driven chipselects are not supported.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <cpu_func.h>
drivers/spi/npcm_pspi.c +0 -1
index eb14185273e9..36d1f174bebb 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <spi.h>
 #include <clk.h>
drivers/spi/nxp_fspi.c +0 -1
index 5db27f9ae2c9..fefdaaa9e901 100644
@@ -33,7 +33,6 @@
  *     Frieder Schrempf <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/spi/omap3_spi.c +1 -1
index 5cce6baa6213..3d82fc74ff58 100644
@@ -16,9 +16,9 @@
  * Modified by Ruslan Araslanov <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <spi.h>
+#include <time.h>
 #include <malloc.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/spi/pic32_spi.c +0 -1
index 45f07f083da8..e11ae7fc7a4a 100644
@@ -6,7 +6,6 @@
  *      Purna Chandra Mandal <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/pl022_spi.c +0 -1
index e2b49ebd149a..1e20701d0d35 100644
@@ -10,7 +10,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <fdtdec.h>
drivers/spi/renesas_rpc_spi.c +0 -1
index 8aff22386458..e6b602cf7b47 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/spi/rk_spi.c +0 -1
index c8694fdff954..4571dc9f9b69 100644
@@ -10,7 +10,6 @@
  * Peter, Software Engineering, <[email protected]>.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/spi/sandbox_spi.c +0 -1
index f844597d04cf..4cc016138b11 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/spi/sh_qspi.c +0 -1
index 72594993853b..b7364a61929f 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <console.h>
 #include <malloc.h>
 #include <spi.h>
drivers/spi/soft_spi.c +0 -1
index 0fa14339bdcd..9bdb4a5bff9b 100644
@@ -9,7 +9,6 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/spi/spi-aspeed-smc.c +0 -1
index 7d5f101a7662..d91d58da4596 100644
@@ -12,7 +12,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
drivers/spi/spi-emul-uclass.c +0 -1
index 64bc19c00112..d92f36bd20e5 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI_EMUL
 
-#include <common.h>
 #include <dm.h>
 #include <spi.h>
 #include <spi_flash.h>
drivers/spi/spi-mem.c +0 -1
index b7eca5835956..3579b7d7db58 100644
@@ -13,7 +13,6 @@
 #include <linux/pm_runtime.h>
 #include "internals.h"
 #else
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
drivers/spi/spi-mxic.c +0 -1
index f663b9dcbb16..b98bcd9b6ba5 100644
@@ -6,7 +6,6 @@
  *	zhengxunli <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/spi/spi-qup.c +0 -1
index 572cef1694c8..836c550b0bb6 100644
@@ -15,7 +15,6 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/delay.h>
drivers/spi/spi-sifive.c +0 -1
index ea372a05f836..0c8666c05f94 100644
@@ -6,7 +6,6 @@
  * SiFive SPI controller driver (master mode only)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <malloc.h>
drivers/spi/spi-sn-f-ospi.c +0 -1
index e3633a526080..fc82791006ec 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitfield.h>
drivers/spi/spi-sunxi.c +0 -1
index 9ec6b359e227..13725ee7a2dc 100644
@@ -18,7 +18,6 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/spi-synquacer.c +0 -1
index 553f9687e3b3..eb522fd7b3d9 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <time.h>
drivers/spi/spi-uclass.c +0 -1
index f4795e68672f..6e2817252391 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/spi.c +0 -1
index 22910de0dd93..50a076a98be6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <malloc.h>
 #include <spi.h>
drivers/spi/stm32_qspi.c +0 -1
index 2ffa201a66ed..2812a4da4113 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/spi/stm32_spi.c +0 -1
index ddb410a94c01..97b83b171670 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/spi/tegra114_spi.c +0 -1
index f0256d8e6641..57f1a8fc703f 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2010-2013 NVIDIA Corporation
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <time.h>
drivers/spi/tegra20_sflash.c +0 -1
index 10e38cf839dc..19114808e9df 100644
@@ -5,7 +5,6 @@
  * With more help from omap3_spi SPI driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/tegra20_slink.c +0 -1
index d0e788539e0b..d54a5049205b 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2010-2013 NVIDIA Corporation
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <time.h>
drivers/spi/tegra210_qspi.c +0 -1
index 5c8c1859cc96..b969a7993d40 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <time.h>
drivers/spi/ti_qspi.c +0 -1
index 99acb108823e..a16412ec6fb9 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2013, Texas Instruments, Incorporated
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/cache.h>
drivers/spi/uniphier_spi.c +0 -1
index 6402acbf14a1..8f2c0fb4b8ee 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <time.h>
drivers/spi/xilinx_spi.c +0 -1
index 94ddf4967eaf..0e7fa3a4525d 100644
@@ -13,7 +13,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/spi/zynq_qspi.c +0 -1
index cb52c0f30721..b71b9a6fd6c8 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <log.h>
drivers/spi/zynq_spi.c +0 -1
index b3e0858eb945..ebcb5b6cc883 100644
@@ -6,7 +6,6 @@
  * Xilinx Zynq PS SPI controller driver (master mode only)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <log.h>
drivers/spi/zynqmp_gqspi.c +0 -1
index a323994fb2d3..61349a4da53f 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/arch/sys_proto.h>
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 65/81
#104 lore raw

Re: [PATCH 65/81] spi: Remove <common.h> and add needed includes

Quoted 103 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Jagan Teki <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Anand Gore <[email protected]>
Cc: William Zhang <[email protected]>
Cc: Kursad Oney <[email protected]>
Cc: Joel Peshkin <[email protected]>
Cc: Philippe Reynes <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Chin-Ting Kuo <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Robert Marko <[email protected]>
Cc: Luka Kovacic <[email protected]>
Cc: Luka Perkov <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>

---
  drivers/spi/altera_spi.c          | 1 -
  drivers/spi/apple_spi.c           | 1 -
  drivers/spi/atcspi200_spi.c       | 1 -
  drivers/spi/ath79_spi.c           | 1 -
  drivers/spi/atmel-quadspi.c       | 1 -
  drivers/spi/atmel_spi.c           | 1 -
  drivers/spi/bcm63xx_hsspi.c       | 1 -
  drivers/spi/bcm63xx_spi.c         | 1 -
  drivers/spi/bcmbca_hsspi.c        | 1 -
  drivers/spi/ca_sflash.c           | 1 -
  drivers/spi/cadence_ospi_versal.c | 1 -
  drivers/spi/cadence_qspi.c        | 1 -
  drivers/spi/cadence_qspi_apb.c    | 1 -
  drivers/spi/cf_spi.c              | 1 -
  drivers/spi/davinci_spi.c         | 2 +-
  drivers/spi/designware_spi.c      | 1 -
  drivers/spi/exynos_spi.c          | 1 -
  drivers/spi/fsl_dspi.c            | 1 -
  drivers/spi/fsl_espi.c            | 2 +-
  drivers/spi/fsl_qspi.c            | 1 -
  drivers/spi/ich.c                 | 1 -
  drivers/spi/iproc_qspi.c          | 1 -
  drivers/spi/kirkwood_spi.c        | 2 +-
  drivers/spi/meson_spifc.c         | 1 -
  drivers/spi/microchip_coreqspi.c  | 1 -
  drivers/spi/mpc8xx_spi.c          | 1 -
  drivers/spi/mpc8xxx_spi.c         | 1 -
  drivers/spi/mscc_bb_spi.c         | 1 -
  drivers/spi/mt7621_spi.c          | 1 -
  drivers/spi/mtk_snfi_spi.c        | 1 -
  drivers/spi/mtk_snor.c            | 1 -
  drivers/spi/mvebu_a3700_spi.c     | 1 -
  drivers/spi/mxc_spi.c             | 2 +-
  drivers/spi/mxs_spi.c             | 1 -
  drivers/spi/npcm_pspi.c           | 1 -
  drivers/spi/nxp_fspi.c            | 1 -
  drivers/spi/omap3_spi.c           | 2 +-
  drivers/spi/pic32_spi.c           | 1 -
  drivers/spi/pl022_spi.c           | 1 -
  drivers/spi/renesas_rpc_spi.c     | 1 -
  drivers/spi/rk_spi.c              | 1 -
  drivers/spi/sandbox_spi.c         | 1 -
  drivers/spi/sh_qspi.c             | 1 -
  drivers/spi/soft_spi.c            | 1 -
  drivers/spi/spi-aspeed-smc.c      | 1 -
  drivers/spi/spi-emul-uclass.c     | 1 -
  drivers/spi/spi-mem.c             | 1 -
  drivers/spi/spi-mxic.c            | 1 -
  drivers/spi/spi-qup.c             | 1 -
  drivers/spi/spi-sifive.c          | 1 -
  drivers/spi/spi-sn-f-ospi.c       | 1 -
  drivers/spi/spi-sunxi.c           | 1 -
  drivers/spi/spi-synquacer.c       | 1 -
  drivers/spi/spi-uclass.c          | 1 -
  drivers/spi/spi.c                 | 1 -
  drivers/spi/stm32_qspi.c          | 1 -
  drivers/spi/stm32_spi.c           | 1 -
  drivers/spi/tegra114_spi.c        | 1 -
  drivers/spi/tegra20_sflash.c      | 1 -
  drivers/spi/tegra20_slink.c       | 1 -
Quoted 9 lines
  drivers/spi/tegra210_qspi.c       | 1 -
  drivers/spi/ti_qspi.c             | 1 -
  drivers/spi/uniphier_spi.c        | 1 -
  drivers/spi/xilinx_spi.c          | 1 -
  drivers/spi/zynq_qspi.c           | 1 -
  drivers/spi/zynq_spi.c            | 1 -
  drivers/spi/zynqmp_gqspi.c        | 1 -
  67 files changed, 5 insertions(+), 67 deletions(-)

For drivers/spi/bcm63xx_hsspi.c and drivers/spi/bcmbca_hsspi.c

maintainer Reviewed-by on v1 65/81
#105 lore raw

Re: [PATCH 65/81] spi: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 34 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Jagan Teki <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Anand Gore <[email protected]>
Cc: William Zhang <[email protected]>
Cc: Kursad Oney <[email protected]>
Cc: Joel Peshkin <[email protected]>
Cc: Philippe Reynes <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Chin-Ting Kuo <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Robert Marko <[email protected]>
Cc: Luka Kovacic <[email protected]>

Quoted 8 lines

Cc: Luka Perkov <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>

For spi-aspeed-smc.c,

Thanks,

C.

author
#106 lore raw

PATCH 66/81 spmi: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Caleb Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Mateusz Kulikowski <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/spmi/spmi-msm.c     | 1 -
 drivers/spmi/spmi-sandbox.c | 1 -
 drivers/spmi/spmi-uclass.c  | 1 -
 3 files changed, 3 deletions(-)
drivers/spmi/spmi-msm.c +0 -1
index 244de69b3590..b0d6226041e5 100644
@@ -7,7 +7,6 @@
  * Loosely based on Little Kernel driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/spmi/spmi-sandbox.c +0 -1
index f6772946bca3..992b08dd6120 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2015 Mateusz Kulikowski <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <spmi/spmi.h>
drivers/spmi/spmi-uclass.c +0 -1
index 9d9f46a37d83..34fe8f6644c3 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_SPMI
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <spmi/spmi.h>
Signature · 1 line
2.34.1
author
#107 lore raw

PATCH 67/81 sysinfo: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/sysinfo/gazerbeam.c      | 1 -
 drivers/sysinfo/gpio.c           | 1 -
 drivers/sysinfo/rcar3.c          | 1 -
 drivers/sysinfo/sandbox.c        | 1 -
 drivers/sysinfo/smbios.c         | 1 -
 drivers/sysinfo/sysinfo-uclass.c | 1 -
 6 files changed, 6 deletions(-)
drivers/sysinfo/gazerbeam.c +0 -1
index c1fae6ccf2a6..a3c9d5354dd2 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sysinfo.h>
 #include <i2c.h>
drivers/sysinfo/gpio.c +0 -1
index 82f90303bb70..aaca318419b0 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <sysinfo.h>
drivers/sysinfo/rcar3.c +0 -1
index 7b127986da7e..37e2cccd9afe 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c_eeprom.h>
 #include <log.h>
drivers/sysinfo/sandbox.c +0 -1
index d270a26aa438..d39720958f07 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sysinfo.h>
 
drivers/sysinfo/smbios.c +0 -1
index 80ebd1921d8e..a7ac8e3f072a 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sysinfo.h>
 
drivers/sysinfo/sysinfo-uclass.c +0 -1
index 10194d0e14c3..d77d1e3ee442 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SYSINFO
 
-#include <common.h>
 #include <dm.h>
 #include <sysinfo.h>
 
Signature · 1 line
2.34.1
author
#108 lore raw

PATCH 68/81 sysreset: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Goldschmidt <[email protected]>
Cc: Tien Fong Chee <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Paul Barker <[email protected]>
Cc: Bin Meng <[email protected]>

---
 drivers/sysreset/poweroff_gpio.c          | 1 -
 drivers/sysreset/sysreset-ti-sci.c        | 1 -
 drivers/sysreset/sysreset-uclass.c        | 1 -
 drivers/sysreset/sysreset_ast.c           | 1 -
 drivers/sysreset/sysreset_at91.c          | 1 -
 drivers/sysreset/sysreset_gpio.c          | 1 -
 drivers/sysreset/sysreset_microblaze.c    | 1 -
 drivers/sysreset/sysreset_mpc83xx.c       | 1 -
 drivers/sysreset/sysreset_octeon.c        | 1 -
 drivers/sysreset/sysreset_psci.c          | 1 -
 drivers/sysreset/sysreset_resetctl.c      | 1 -
 drivers/sysreset/sysreset_rockchip.c      | 1 -
 drivers/sysreset/sysreset_sandbox.c       | 1 -
 drivers/sysreset/sysreset_sbi.c           | 1 -
 drivers/sysreset/sysreset_socfpga.c       | 1 -
 drivers/sysreset/sysreset_socfpga_soc64.c | 1 -
 drivers/sysreset/sysreset_sti.c           | 1 -
 drivers/sysreset/sysreset_syscon.c        | 1 -
 drivers/sysreset/sysreset_watchdog.c      | 1 -
 drivers/sysreset/sysreset_x86.c           | 1 -
 drivers/sysreset/sysreset_xtfpga.c        | 2 +-
 21 files changed, 1 insertion(+), 21 deletions(-)
drivers/sysreset/poweroff_gpio.c +0 -1
index ad04e4b1a85e..d9220024f470 100644
@@ -11,7 +11,6 @@
  * Copyright (C) 2012 Jamie Lentin
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/sysreset/sysreset-ti-sci.c +0 -1
index 0de132633a8d..451fc5de7357 100644
@@ -6,7 +6,6 @@
  *	Andreas Dannenberg <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/sysreset/sysreset-uclass.c +0 -1
index 6151b5fe03e4..0abb4042e0f2 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SYSRESET
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/sysreset/sysreset_ast.c +0 -1
index 92fad96871bd..ef09440bbeff 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/sysreset/sysreset_at91.c +0 -1
index fc85f31ebf01..457042c7aae9 100644
@@ -7,7 +7,6 @@
 #include <asm/io.h>
 #include <asm/arch/at91_rstc.h>
 #include <clk.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/sysreset/sysreset_gpio.c +0 -1
index de42b5935424..47018844a51a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Xilinx, Inc. - Michal Simek
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/sysreset/sysreset_microblaze.c +0 -1
index 83a7f77ac41f..b81d82f046bd 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Xilinx, Inc. - Michal Simek
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_mpc83xx.c +0 -1
index ca48328f7b58..dca49299f777 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
drivers/sysreset/sysreset_octeon.c +0 -1
index ebdea6ab66ed..c16223720e5a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_psci.c +0 -1
index aa09d0b88271..89b4f2dcaec4 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sysreset.h>
 #include <linux/errno.h>
drivers/sysreset/sysreset_resetctl.c +0 -1
index 25bd5c9a7ff2..fbe3999b9605 100644
@@ -5,7 +5,6 @@
  * Author:  Weijie Gao <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_rockchip.c +0 -1
index f353f9b4c79d..00308f9a33b7 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_sandbox.c +0 -1
index c12eda81d03e..93179f90bbb8 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_sbi.c +0 -1
index 5e8090d62bfc..458191206b2c 100644
@@ -3,7 +3,6 @@
  * Copyright 2021, Heinrich Schuchardt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/sysreset/sysreset_socfpga.c +0 -1
index 9b62dd5eab09..a07b0f4fd553 100644
@@ -4,7 +4,6 @@
  * Simon Goldschmidt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_socfpga_soc64.c +0 -1
index 9837aadf64b6..6f44792abb00 100644
@@ -4,7 +4,6 @@
  * Simon Goldschmidt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
drivers/sysreset/sysreset_sti.c +0 -1
index edd90aab061d..110b7e23afa1 100644
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <syscon.h>
drivers/sysreset/sysreset_syscon.c +0 -1
index e468dac0e902..57144fa1e3bb 100644
@@ -7,7 +7,6 @@
  *	Author: Feng Kan <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <regmap.h>
drivers/sysreset/sysreset_watchdog.c +0 -1
index 6db5aa75b541..49c061e08803 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <errno.h>
drivers/sysreset/sysreset_x86.c +0 -1
index dc772b5ff9e3..c2f28c65280f 100644
@@ -5,7 +5,6 @@
  * Generic reset driver for x86 processor
  */
 
-#include <common.h>
 #include <dm.h>
 #include <efi_loader.h>
 #include <pch.h>
drivers/sysreset/sysreset_xtfpga.c +1 -1
index 84fbc79016a0..ab71ea11a0b2 100644
@@ -5,7 +5,7 @@
  * (C) Copyright 2016 Cadence Design Systems Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 68/81
#109 lore raw

Re: [PATCH 68/81] sysreset: Remove <common.h> and add needed includes

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 295 lines

---
Cc: Tom Rini <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Goldschmidt <[email protected]>
Cc: Tien Fong Chee <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Paul Barker <[email protected]>
Cc: Bin Meng <[email protected]>

---
  drivers/sysreset/poweroff_gpio.c          | 1 -
  drivers/sysreset/sysreset-ti-sci.c        | 1 -
  drivers/sysreset/sysreset-uclass.c        | 1 -
  drivers/sysreset/sysreset_ast.c           | 1 -
  drivers/sysreset/sysreset_at91.c          | 1 -
  drivers/sysreset/sysreset_gpio.c          | 1 -
  drivers/sysreset/sysreset_microblaze.c    | 1 -
  drivers/sysreset/sysreset_mpc83xx.c       | 1 -
  drivers/sysreset/sysreset_octeon.c        | 1 -
  drivers/sysreset/sysreset_psci.c          | 1 -
  drivers/sysreset/sysreset_resetctl.c      | 1 -
  drivers/sysreset/sysreset_rockchip.c      | 1 -
  drivers/sysreset/sysreset_sandbox.c       | 1 -
  drivers/sysreset/sysreset_sbi.c           | 1 -
  drivers/sysreset/sysreset_socfpga.c       | 1 -
  drivers/sysreset/sysreset_socfpga_soc64.c | 1 -
  drivers/sysreset/sysreset_sti.c           | 1 -
  drivers/sysreset/sysreset_syscon.c        | 1 -
  drivers/sysreset/sysreset_watchdog.c      | 1 -
  drivers/sysreset/sysreset_x86.c           | 1 -
  drivers/sysreset/sysreset_xtfpga.c        | 2 +-
  21 files changed, 1 insertion(+), 21 deletions(-)
drivers/sysreset/poweroff_gpio.c +0 -1
index ad04e4b1a85e..d9220024f470 100644
@@ -11,7 +11,6 @@
   * Copyright (C) 2012 Jamie Lentin
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/sysreset/sysreset-ti-sci.c +0 -1
index 0de132633a8d..451fc5de7357 100644
@@ -6,7 +6,6 @@
   *	Andreas Dannenberg <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/sysreset/sysreset-uclass.c +0 -1
index 6151b5fe03e4..0abb4042e0f2 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_SYSRESET
 
-#include <common.h>
  #include <command.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/sysreset/sysreset_ast.c +0 -1
index 92fad96871bd..ef09440bbeff 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2016 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/sysreset/sysreset_at91.c +0 -1
index fc85f31ebf01..457042c7aae9 100644
@@ -7,7 +7,6 @@
  #include <asm/io.h>
  #include <asm/arch/at91_rstc.h>
  #include <clk.h>
-#include <common.h>
  #include <cpu_func.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/sysreset/sysreset_gpio.c +0 -1
index de42b5935424..47018844a51a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Xilinx, Inc. - Michal Simek
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/sysreset/sysreset_microblaze.c +0 -1
index 83a7f77ac41f..b81d82f046bd 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Xilinx, Inc. - Michal Simek
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_mpc83xx.c +0 -1
index ca48328f7b58..dca49299f777 100644
@@ -4,7 +4,6 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <log.h>
drivers/sysreset/sysreset_octeon.c +0 -1
index ebdea6ab66ed..c16223720e5a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_psci.c +0 -1
index aa09d0b88271..89b4f2dcaec4 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <sysreset.h>
  #include <linux/errno.h>
drivers/sysreset/sysreset_resetctl.c +0 -1
index 25bd5c9a7ff2..fbe3999b9605 100644
@@ -5,7 +5,6 @@
   * Author:  Weijie Gao <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_rockchip.c +0 -1
index f353f9b4c79d..00308f9a33b7 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_sandbox.c +0 -1
index c12eda81d03e..93179f90bbb8 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_sbi.c +0 -1
index 5e8090d62bfc..458191206b2c 100644
@@ -3,7 +3,6 @@
   * Copyright 2021, Heinrich Schuchardt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/sysreset/sysreset_socfpga.c +0 -1
index 9b62dd5eab09..a07b0f4fd553 100644
@@ -4,7 +4,6 @@
   * Simon Goldschmidt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_socfpga_soc64.c +0 -1
index 9837aadf64b6..6f44792abb00 100644
@@ -4,7 +4,6 @@
   * Simon Goldschmidt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
drivers/sysreset/sysreset_sti.c +0 -1
index edd90aab061d..110b7e23afa1 100644
@@ -4,7 +4,6 @@
   * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <regmap.h>
  #include <syscon.h>
drivers/sysreset/sysreset_syscon.c +0 -1
index e468dac0e902..57144fa1e3bb 100644
@@ -7,7 +7,6 @@
   *	Author: Feng Kan <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <regmap.h>
drivers/sysreset/sysreset_watchdog.c +0 -1
index 6db5aa75b541..49c061e08803 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device-internal.h>
  #include <errno.h>
drivers/sysreset/sysreset_x86.c +0 -1
index dc772b5ff9e3..c2f28c65280f 100644
@@ -5,7 +5,6 @@
   * Generic reset driver for x86 processor
   */
 
-#include <common.h>
  #include <dm.h>
  #include <efi_loader.h>
  #include <pch.h>
drivers/sysreset/sysreset_xtfpga.c +1 -1
index 84fbc79016a0..ab71ea11a0b2 100644
@@ -5,7 +5,7 @@
   * (C) Copyright 2016 Cadence Design Systems Inc.
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <errno.h>
  #include <sysreset.h>
author
#110 lore raw

PATCH 69/81 thermal: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Andrejs Cainikovs <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Benjamin Hahn <[email protected]>

---
 drivers/thermal/imx_scu_thermal.c | 1 -
 drivers/thermal/imx_thermal.c     | 1 -
 drivers/thermal/imx_tmu.c         | 1 -
 drivers/thermal/thermal-uclass.c  | 1 -
 drivers/thermal/thermal_sandbox.c | 1 -
 5 files changed, 5 deletions(-)
drivers/thermal/imx_scu_thermal.c +0 -1
index 3ec131cbc6e1..fc2b0e227b29 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/thermal/imx_thermal.c +0 -1
index 2f6343e7a180..ea1fcc3dcb29 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <div64.h>
 #include <fuse.h>
 #include <log.h>
drivers/thermal/imx_tmu.c +0 -1
index ea6c8329c0a6..70d002aee25b 100644
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
drivers/thermal/thermal-uclass.c +0 -1
index 700df8af2549..f0fe912e3131 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_THERMAL
 
-#include <common.h>
 #include <dm.h>
 #include <thermal.h>
 #include <errno.h>
drivers/thermal/thermal_sandbox.c +0 -1
index 7dc0d108b8ca..9af0d0247cbd 100644
@@ -6,7 +6,6 @@
  * Sandbox driver for the thermal uclass.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <thermal.h>
 
Signature · 1 line
2.34.1
author
#111 lore raw

PATCH 70/81 timer: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Chanho Park <[email protected]>
Cc: Torsten Duwe <[email protected]>
Cc: Kuan Lim Lee <[email protected]>
Cc: Wei Liang Lim <[email protected]>
Cc: Alex Bee <[email protected]>

---
 drivers/timer/altera_timer.c       | 1 -
 drivers/timer/andes_plmt_timer.c   | 1 -
 drivers/timer/arc_timer.c          | 1 -
 drivers/timer/arm_global_timer.c   | 2 +-
 drivers/timer/arm_twd_timer.c      | 1 -
 drivers/timer/ast_timer.c          | 1 -
 drivers/timer/atmel_pit_timer.c    | 1 -
 drivers/timer/atmel_tcb_timer.c    | 1 -
 drivers/timer/cadence-ttc.c        | 1 -
 drivers/timer/dw-apb-timer.c       | 1 -
 drivers/timer/fttmr010_timer.c     | 1 -
 drivers/timer/imx-gpt-timer.c      | 2 +-
 drivers/timer/mchp-pit64b-timer.c  | 1 -
 drivers/timer/mpc83xx_timer.c      | 2 +-
 drivers/timer/mtk_timer.c          | 1 -
 drivers/timer/nomadik-mtu-timer.c  | 1 -
 drivers/timer/npcm-timer.c         | 1 -
 drivers/timer/omap-timer.c         | 1 -
 drivers/timer/orion-timer.c        | 2 +-
 drivers/timer/ostm_timer.c         | 1 -
 drivers/timer/riscv_aclint_timer.c | 2 +-
 drivers/timer/riscv_timer.c        | 2 +-
 drivers/timer/rockchip_timer.c     | 1 -
 drivers/timer/sandbox_timer.c      | 1 -
 drivers/timer/sp804_timer.c        | 1 -
 drivers/timer/starfive-timer.c     | 1 -
 drivers/timer/stm32_timer.c        | 2 +-
 drivers/timer/tegra-timer.c        | 1 -
 drivers/timer/timer-uclass.c       | 1 -
 drivers/timer/tsc_timer.c          | 1 -
 drivers/timer/xilinx-timer.c       | 1 -
 31 files changed, 7 insertions(+), 31 deletions(-)
drivers/timer/altera_timer.c +0 -1
index 040dc65f48aa..ece246c23d2f 100644
@@ -7,7 +7,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/andes_plmt_timer.c +0 -1
index 42dd4b623176..20baaf61307a 100644
@@ -8,7 +8,6 @@
  * associated with timer tick.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
drivers/timer/arc_timer.c +0 -1
index 497f8a04155f..413bcc32f01b 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Synopsys, Inc. All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/arm_global_timer.c +1 -1
index 2e50d9fbc580..b8057929f997 100644
@@ -6,7 +6,7 @@
  * ARM Cortext A9 global timer driver
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <clk.h>
 #include <timer.h>
drivers/timer/arm_twd_timer.c +0 -1
index 40ccd1658749..2b2f35911738 100644
@@ -27,7 +27,6 @@
  * Alex Zuepke <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <timer.h>
drivers/timer/ast_timer.c +0 -1
index 78adc96cc596..6601cab7b165 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Google Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/atmel_pit_timer.c +0 -1
index 5cf46f224ab0..0a367a5a7f4a 100644
@@ -4,7 +4,6 @@
  *		      Wenyou.Yang <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <timer.h>
drivers/timer/atmel_tcb_timer.c +0 -1
index 8c17987c7d74..3a328b2f6c72 100644
@@ -5,7 +5,6 @@
  * Author: Clément Léger <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <timer.h>
drivers/timer/cadence-ttc.c +0 -1
index 2eff45060ad6..3cffb1bb88db 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <errno.h>
drivers/timer/dw-apb-timer.c +0 -1
index 0607f751ca70..77ccb98cb8df 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <dt-structs.h>
drivers/timer/fttmr010_timer.c +0 -1
index b6289e646109..c41bbfc1d576 100644
@@ -5,7 +5,6 @@
  *
  * 23/08/2022 Port to DM
  */
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <timer.h>
drivers/timer/imx-gpt-timer.c +1 -1
index 9c3b64ae5b1b..07b9fdb5e18c 100644
@@ -4,7 +4,7 @@
  * Author(s): Giulio Benetti <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/timer/mchp-pit64b-timer.c +0 -1
index c9806d7eeebd..1a5b2e6a0dc8 100644
@@ -7,7 +7,6 @@
  * Author: Claudiu Beznea <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <timer.h>
drivers/timer/mpc83xx_timer.c +1 -1
index 7814cb6a5d61..9da74479aaa6 100644
@@ -4,7 +4,7 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <irq_func.h>
drivers/timer/mtk_timer.c +0 -1
index 223e63f6c1a2..8216c2898373 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
drivers/timer/nomadik-mtu-timer.c +0 -1
index 4d24de14ae69..9a05582c0d52 100644
@@ -12,7 +12,6 @@
  * Copyright (C) 2010 Linus Walleij for ST-Ericsson
  */
 
-#include <common.h>
 #include <dm.h>
 #include <timer.h>
 #include <asm/io.h>
drivers/timer/npcm-timer.c +0 -1
index 4562a6f2311b..9463fd29ce81 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <timer.h>
drivers/timer/omap-timer.c +0 -1
index 9b6d97dae677..fda6356fdba8 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2015, Texas Instruments, Incorporated
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/orion-timer.c +1 -1
index 9cab27f2e48b..821b681a2326 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include <asm/io.h>
-#include <common.h>
+#include <config.h>
 #include <div64.h>
 #include <dm/device.h>
 #include <dm/fdtaddr.h>
drivers/timer/ostm_timer.c +0 -1
index 3bf0d4647b58..314f956cdfb7 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2019 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <malloc.h>
 #include <asm/global_data.h>
drivers/timer/riscv_aclint_timer.c +1 -1
index 73fb87912851..35da1ea2fd2d 100644
@@ -4,7 +4,7 @@
  * Copyright (C) 2018, Bin Meng <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <div64.h>
 #include <dm.h>
drivers/timer/riscv_timer.c +1 -1
index 169c03dcb5c1..1f4980ceb38f 100644
@@ -10,7 +10,7 @@
  * This driver provides generic timer support for S-mode U-Boot.
  */
 
-#include <common.h>
+#include <config.h>
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
drivers/timer/rockchip_timer.c +0 -1
index e66c49aa6bbd..96c010f4dcc8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <init.h>
drivers/timer/sandbox_timer.c +0 -1
index 1da7e0c3a768..e8b54a02965f 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Thomas Chou <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/sp804_timer.c +0 -1
index 8fd4afb15a5b..a254e295cbfc 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2022 Arm Ltd.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
drivers/timer/starfive-timer.c +0 -1
index 6ac7d7f1d0ee..6b79c8858b55 100644
@@ -4,7 +4,6 @@
  *   Author: Kuan Lim Lee <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <time.h>
drivers/timer/stm32_timer.c +1 -1
index 1213a14ef197..1dc21c5c1bed 100644
@@ -6,7 +6,7 @@
 
 #define LOG_CATEGORY UCLASS_TIMER
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/timer/tegra-timer.c +0 -1
index a867c649c3a8..3545424889d2 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <timer.h>
drivers/timer/timer-uclass.c +0 -1
index 60ff65529ab3..8305f06d3187 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_TIMER
 
-#include <common.h>
 #include <clk.h>
 #include <cpu.h>
 #include <dm.h>
drivers/timer/tsc_timer.c +0 -1
index f86a0b86921c..80c084f380d9 100644
@@ -6,7 +6,6 @@
  * arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <log.h>
drivers/timer/xilinx-timer.c +0 -1
index 172fd9f9296e..54148aa1689b 100644
@@ -7,7 +7,6 @@
  * Michal SIMEK <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <timer.h>
 #include <regmap.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 70/81
#112 lore raw

Re: [PATCH 70/81] timer: Remove <common.h> and add needed includes

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 440 lines

---
Cc: Tom Rini <[email protected]>
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Chanho Park <[email protected]>
Cc: Torsten Duwe <[email protected]>
Cc: Kuan Lim Lee <[email protected]>
Cc: Wei Liang Lim <[email protected]>
Cc: Alex Bee <[email protected]>

---
  drivers/timer/altera_timer.c       | 1 -
  drivers/timer/andes_plmt_timer.c   | 1 -
  drivers/timer/arc_timer.c          | 1 -
  drivers/timer/arm_global_timer.c   | 2 +-
  drivers/timer/arm_twd_timer.c      | 1 -
  drivers/timer/ast_timer.c          | 1 -
  drivers/timer/atmel_pit_timer.c    | 1 -
  drivers/timer/atmel_tcb_timer.c    | 1 -
  drivers/timer/cadence-ttc.c        | 1 -
  drivers/timer/dw-apb-timer.c       | 1 -
  drivers/timer/fttmr010_timer.c     | 1 -
  drivers/timer/imx-gpt-timer.c      | 2 +-
  drivers/timer/mchp-pit64b-timer.c  | 1 -
  drivers/timer/mpc83xx_timer.c      | 2 +-
  drivers/timer/mtk_timer.c          | 1 -
  drivers/timer/nomadik-mtu-timer.c  | 1 -
  drivers/timer/npcm-timer.c         | 1 -
  drivers/timer/omap-timer.c         | 1 -
  drivers/timer/orion-timer.c        | 2 +-
  drivers/timer/ostm_timer.c         | 1 -
  drivers/timer/riscv_aclint_timer.c | 2 +-
  drivers/timer/riscv_timer.c        | 2 +-
  drivers/timer/rockchip_timer.c     | 1 -
  drivers/timer/sandbox_timer.c      | 1 -
  drivers/timer/sp804_timer.c        | 1 -
  drivers/timer/starfive-timer.c     | 1 -
  drivers/timer/stm32_timer.c        | 2 +-
  drivers/timer/tegra-timer.c        | 1 -
  drivers/timer/timer-uclass.c       | 1 -
  drivers/timer/tsc_timer.c          | 1 -
  drivers/timer/xilinx-timer.c       | 1 -
  31 files changed, 7 insertions(+), 31 deletions(-)
drivers/timer/altera_timer.c +0 -1
index 040dc65f48aa..ece246c23d2f 100644
@@ -7,7 +7,6 @@
   * Scott McNutt <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/andes_plmt_timer.c +0 -1
index 42dd4b623176..20baaf61307a 100644
@@ -8,7 +8,6 @@
   * associated with timer tick.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <timer.h>
  #include <asm/io.h>
drivers/timer/arc_timer.c +0 -1
index 497f8a04155f..413bcc32f01b 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Synopsys, Inc. All rights reserved.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/arm_global_timer.c +1 -1
index 2e50d9fbc580..b8057929f997 100644
@@ -6,7 +6,7 @@
   * ARM Cortext A9 global timer driver
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <clk.h>
  #include <timer.h>
drivers/timer/arm_twd_timer.c +0 -1
index 40ccd1658749..2b2f35911738 100644
@@ -27,7 +27,6 @@
   * Alex Zuepke <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <timer.h>
drivers/timer/ast_timer.c +0 -1
index 78adc96cc596..6601cab7b165 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Google Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/atmel_pit_timer.c +0 -1
index 5cf46f224ab0..0a367a5a7f4a 100644
@@ -4,7 +4,6 @@
   *		      Wenyou.Yang <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <timer.h>
drivers/timer/atmel_tcb_timer.c +0 -1
index 8c17987c7d74..3a328b2f6c72 100644
@@ -5,7 +5,6 @@
   * Author: Clément Léger <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <timer.h>
drivers/timer/cadence-ttc.c +0 -1
index 2eff45060ad6..3cffb1bb88db 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
   */
 
-#include <common.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <errno.h>
drivers/timer/dw-apb-timer.c +0 -1
index 0607f751ca70..77ccb98cb8df 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2018 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <dt-structs.h>
drivers/timer/fttmr010_timer.c +0 -1
index b6289e646109..c41bbfc1d576 100644
@@ -5,7 +5,6 @@
   *
   * 23/08/2022 Port to DM
   */
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <timer.h>
drivers/timer/imx-gpt-timer.c +1 -1
index 9c3b64ae5b1b..07b9fdb5e18c 100644
@@ -4,7 +4,7 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/timer/mchp-pit64b-timer.c +0 -1
index c9806d7eeebd..1a5b2e6a0dc8 100644
@@ -7,7 +7,6 @@
   * Author: Claudiu Beznea <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <timer.h>
drivers/timer/mpc83xx_timer.c +1 -1
index 7814cb6a5d61..9da74479aaa6 100644
@@ -4,7 +4,7 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <irq_func.h>
drivers/timer/mtk_timer.c +0 -1
index 223e63f6c1a2..8216c2898373 100644
@@ -7,7 +7,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <timer.h>
  #include <asm/io.h>
drivers/timer/nomadik-mtu-timer.c +0 -1
index 4d24de14ae69..9a05582c0d52 100644
@@ -12,7 +12,6 @@
   * Copyright (C) 2010 Linus Walleij for ST-Ericsson
   */
 
-#include <common.h>
  #include <dm.h>
  #include <timer.h>
  #include <asm/io.h>
drivers/timer/npcm-timer.c +0 -1
index 4562a6f2311b..9463fd29ce81 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <timer.h>
drivers/timer/omap-timer.c +0 -1
index 9b6d97dae677..fda6356fdba8 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2015, Texas Instruments, Incorporated
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/orion-timer.c +1 -1
index 9cab27f2e48b..821b681a2326 100644
@@ -1,6 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0+
  #include <asm/io.h>
-#include <common.h>
+#include <config.h>
  #include <div64.h>
  #include <dm/device.h>
  #include <dm/fdtaddr.h>
drivers/timer/ostm_timer.c +0 -1
index 3bf0d4647b58..314f956cdfb7 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2019 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clock_legacy.h>
  #include <malloc.h>
  #include <asm/global_data.h>
drivers/timer/riscv_aclint_timer.c +1 -1
index 73fb87912851..35da1ea2fd2d 100644
@@ -4,7 +4,7 @@
   * Copyright (C) 2018, Bin Meng <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <div64.h>
  #include <dm.h>
drivers/timer/riscv_timer.c +1 -1
index 169c03dcb5c1..1f4980ceb38f 100644
@@ -10,7 +10,7 @@
   * This driver provides generic timer support for S-mode U-Boot.
   */
 
-#include <common.h>
+#include <config.h>
  #include <div64.h>
  #include <dm.h>
  #include <errno.h>
drivers/timer/rockchip_timer.c +0 -1
index e66c49aa6bbd..96c010f4dcc8 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <init.h>
drivers/timer/sandbox_timer.c +0 -1
index 1da7e0c3a768..e8b54a02965f 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2015 Thomas Chou <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/sp804_timer.c +0 -1
index 8fd4afb15a5b..a254e295cbfc 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2022 Arm Ltd.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <init.h>
drivers/timer/starfive-timer.c +0 -1
index 6ac7d7f1d0ee..6b79c8858b55 100644
@@ -4,7 +4,6 @@
   *   Author: Kuan Lim Lee <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <time.h>
drivers/timer/stm32_timer.c +1 -1
index 1213a14ef197..1dc21c5c1bed 100644
@@ -6,7 +6,7 @@
 
  #define LOG_CATEGORY UCLASS_TIMER
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/timer/tegra-timer.c +0 -1
index a867c649c3a8..3545424889d2 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <timer.h>
drivers/timer/timer-uclass.c +0 -1
index 60ff65529ab3..8305f06d3187 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_TIMER
 
-#include <common.h>
  #include <clk.h>
  #include <cpu.h>
  #include <dm.h>
drivers/timer/tsc_timer.c +0 -1
index f86a0b86921c..80c084f380d9 100644
@@ -6,7 +6,6 @@
   * arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c
   */
 
-#include <common.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <log.h>
drivers/timer/xilinx-timer.c +0 -1
index 172fd9f9296e..54148aa1689b 100644
@@ -7,7 +7,6 @@
   * Michal SIMEK <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <timer.h>
  #include <regmap.h>
author
#113 lore raw

PATCH 71/81 tpm: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Ilias Apalodimas <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/tpm/cr50_i2c.c             | 2 +-
 drivers/tpm/sandbox_common.c       | 1 -
 drivers/tpm/tpm-uclass.c           | 2 +-
 drivers/tpm/tpm2_ftpm_tee.c        | 1 -
 drivers/tpm/tpm2_tis_core.c        | 2 +-
 drivers/tpm/tpm2_tis_i2c.c         | 1 -
 drivers/tpm/tpm2_tis_mmio.c        | 1 -
 drivers/tpm/tpm2_tis_sandbox.c     | 1 -
 drivers/tpm/tpm2_tis_spi.c         | 2 +-
 drivers/tpm/tpm_atmel_twi.c        | 2 +-
 drivers/tpm/tpm_tis_infineon.c     | 2 +-
 drivers/tpm/tpm_tis_lpc.c          | 1 -
 drivers/tpm/tpm_tis_sandbox.c      | 1 -
 drivers/tpm/tpm_tis_st33zp24_i2c.c | 1 -
 drivers/tpm/tpm_tis_st33zp24_spi.c | 1 -
 15 files changed, 6 insertions(+), 15 deletions(-)
drivers/tpm/cr50_i2c.c +1 -1
index acf4c7859a9f..08ec179346e2 100644
@@ -7,12 +7,12 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <irq.h>
 #include <log.h>
 #include <spl.h>
+#include <time.h>
 #include <tpm-common.h>
 #include <tpm-v2.h>
 #include <acpi/acpigen.h>
drivers/tpm/sandbox_common.c +0 -1
index 7e0b2502e35d..596e01563899 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY	UCLASS_TPM
 
-#include <common.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
 #include <asm/unaligned.h>
drivers/tpm/tpm-uclass.c +1 -1
index b2286f7e7edc..0fade2dcc0ad 100644
@@ -6,9 +6,9 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <time.h>
 #include <tpm_api.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_ftpm_tee.c +0 -1
index c61ff2c2af63..f2ced50c4eb7 100644
@@ -13,7 +13,6 @@
  * https://github.com/microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_tis_core.c +1 -1
index 81b9210056db..680a6409433e 100644
@@ -5,8 +5,8 @@
  * Based on the Linux TIS core interface and U-Boot original SPI TPM driver
  */
 
-#include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/delay.h>
 #include <linux/unaligned/be_byteshift.h>
drivers/tpm/tpm2_tis_i2c.c +0 -1
index 99d1cf218daf..93efccc77575 100644
@@ -3,7 +3,6 @@
  * Copyright 2022 IBM Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
drivers/tpm/tpm2_tis_mmio.c +0 -1
index a646ce41ff4e..dee5503c055f 100644
@@ -5,7 +5,6 @@
  * Specifications at www.trustedcomputinggroup.org
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_tis_sandbox.c +0 -1
index d15a28d9fc82..50e308e71161 100644
@@ -4,7 +4,6 @@
  * Author: Miquel Raynal <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <tpm-v2.h>
 #include <asm/state.h>
drivers/tpm/tpm2_tis_spi.c +1 -1
index de9cf8f21e07..28079b5039a3 100644
@@ -13,11 +13,11 @@
  * It is based on the U-Boot driver tpm_tis_infineon_i2c.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <spi.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/tpm/tpm_atmel_twi.c +1 -1
index fd2a45d34b03..05dd66525c77 100644
@@ -5,11 +5,11 @@
  * Written by Dirk Eibach <[email protected]>
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
 #include <i2c.h>
+#include <time.h>
 #include <asm/unaligned.h>
 #include <linux/delay.h>
 
drivers/tpm/tpm_tis_infineon.c +1 -1
index 16f4af0e331e..e2f6238cbc71 100644
@@ -19,11 +19,11 @@
  * Version: 2.1.1
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <log.h>
+#include <time.h>
 #include <tpm-v1.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/tpm/tpm_tis_lpc.c +0 -1
index 13a133d58ebd..dec7acb0c7b1 100644
@@ -12,7 +12,6 @@
  * slb9635), so this driver provides access to locality 0 only.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
drivers/tpm/tpm_tis_sandbox.c +0 -1
index 7350e1c4d525..2bc7dc87ed30 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
drivers/tpm/tpm_tis_st33zp24_i2c.c +0 -1
index e0eeabb93371..1a265b28b22f 100644
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
drivers/tpm/tpm_tis_st33zp24_spi.c +0 -1
index f0de8a65b093..2cf690328d87 100644
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 71/81
#114 lore raw

Re: [PATCH 71/81] tpm: Remove <common.h> and add needed includes

Quoted 234 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Ilias Apalodimas <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/tpm/cr50_i2c.c             | 2 +-
 drivers/tpm/sandbox_common.c       | 1 -
 drivers/tpm/tpm-uclass.c           | 2 +-
 drivers/tpm/tpm2_ftpm_tee.c        | 1 -
 drivers/tpm/tpm2_tis_core.c        | 2 +-
 drivers/tpm/tpm2_tis_i2c.c         | 1 -
 drivers/tpm/tpm2_tis_mmio.c        | 1 -
 drivers/tpm/tpm2_tis_sandbox.c     | 1 -
 drivers/tpm/tpm2_tis_spi.c         | 2 +-
 drivers/tpm/tpm_atmel_twi.c        | 2 +-
 drivers/tpm/tpm_tis_infineon.c     | 2 +-
 drivers/tpm/tpm_tis_lpc.c          | 1 -
 drivers/tpm/tpm_tis_sandbox.c      | 1 -
 drivers/tpm/tpm_tis_st33zp24_i2c.c | 1 -
 drivers/tpm/tpm_tis_st33zp24_spi.c | 1 -
 15 files changed, 6 insertions(+), 15 deletions(-)
drivers/tpm/cr50_i2c.c +1 -1
index acf4c7859a9f..08ec179346e2 100644
@@ -7,12 +7,12 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <irq.h>
 #include <log.h>
 #include <spl.h>
+#include <time.h>
 #include <tpm-common.h>
 #include <tpm-v2.h>
 #include <acpi/acpigen.h>
drivers/tpm/sandbox_common.c +0 -1
index 7e0b2502e35d..596e01563899 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY   UCLASS_TPM
 
-#include <common.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
 #include <asm/unaligned.h>
drivers/tpm/tpm-uclass.c +1 -1
index b2286f7e7edc..0fade2dcc0ad 100644
@@ -6,9 +6,9 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <time.h>
 #include <tpm_api.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_ftpm_tee.c +0 -1
index c61ff2c2af63..f2ced50c4eb7 100644
@@ -13,7 +13,6 @@
  * https://github.com/microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_tis_core.c +1 -1
index 81b9210056db..680a6409433e 100644
@@ -5,8 +5,8 @@
  * Based on the Linux TIS core interface and U-Boot original SPI TPM driver
  */
 
-#include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/delay.h>
 #include <linux/unaligned/be_byteshift.h>
drivers/tpm/tpm2_tis_i2c.c +0 -1
index 99d1cf218daf..93efccc77575 100644
@@ -3,7 +3,6 @@
  * Copyright 2022 IBM Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
drivers/tpm/tpm2_tis_mmio.c +0 -1
index a646ce41ff4e..dee5503c055f 100644
@@ -5,7 +5,6 @@
  * Specifications at www.trustedcomputinggroup.org
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
drivers/tpm/tpm2_tis_sandbox.c +0 -1
index d15a28d9fc82..50e308e71161 100644
@@ -4,7 +4,6 @@
  * Author: Miquel Raynal <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <tpm-v2.h>
 #include <asm/state.h>
drivers/tpm/tpm2_tis_spi.c +1 -1
index de9cf8f21e07..28079b5039a3 100644
@@ -13,11 +13,11 @@
  * It is based on the U-Boot driver tpm_tis_infineon_i2c.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <spi.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/tpm/tpm_atmel_twi.c +1 -1
index fd2a45d34b03..05dd66525c77 100644
@@ -5,11 +5,11 @@
  * Written by Dirk Eibach <[email protected]>
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
 #include <i2c.h>
+#include <time.h>
 #include <asm/unaligned.h>
 #include <linux/delay.h>
 
drivers/tpm/tpm_tis_infineon.c +1 -1
index 16f4af0e331e..e2f6238cbc71 100644
@@ -19,11 +19,11 @@
  * Version: 2.1.1
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <log.h>
+#include <time.h>
 #include <tpm-v1.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/tpm/tpm_tis_lpc.c +0 -1
index 13a133d58ebd..dec7acb0c7b1 100644
@@ -12,7 +12,6 @@
  * slb9635), so this driver provides access to locality 0 only.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
drivers/tpm/tpm_tis_sandbox.c +0 -1
index 7350e1c4d525..2bc7dc87ed30 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
drivers/tpm/tpm_tis_st33zp24_i2c.c +0 -1
index e0eeabb93371..1a265b28b22f 100644
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
drivers/tpm/tpm_tis_st33zp24_spi.c +0 -2
index f0de8a65b093..2cf690328d87 100644
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
--
Quoted 2 lines

2.34.1

author
#115 lore raw

PATCH 72/81 ufs: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Bhupesh Sharma <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/ufs/cdns-platform.c | 1 -
 drivers/ufs/ti-j721e-ufs.c  | 1 -
 drivers/ufs/ufs-pci.c       | 1 -
 drivers/ufs/ufs-uclass.c    | 1 -
 drivers/ufs/ufs.c           | 1 -
 drivers/ufs/ufs.h           | 1 +
 6 files changed, 1 insertion(+), 5 deletions(-)
drivers/ufs/cdns-platform.c +0 -1
index d1f346937c5d..510a6a6aa5dd 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <ufs.h>
 #include <asm/io.h>
drivers/ufs/ti-j721e-ufs.c +0 -1
index 1860e0dca299..c5c08610ffd0 100644
@@ -5,7 +5,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
drivers/ufs/ufs-pci.c +0 -1
index ad41358727a5..871f3f50f5ca 100644
@@ -4,7 +4,6 @@
  * Author: Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
drivers/ufs/ufs-uclass.c +0 -1
index 92fcdf4e6cb7..334bfcfa06a4 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_UFS
 
-#include <common.h>
 #include "ufs.h"
 #include <dm.h>
 
drivers/ufs/ufs.c +0 -1
index e4400f319a78..be64bf971f16 100644
@@ -10,7 +10,6 @@
 
 #include <bouncebuf.h>
 #include <charset.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device_compat.h>
drivers/ufs/ufs.h +1 -0
index 816a5ce0cafc..43042c294bba 100644
@@ -2,6 +2,7 @@
 #ifndef __UFS_H
 #define __UFS_H
 
+#include <linux/types.h>
 #include "unipro.h"
 
 struct udevice;
Signature · 1 line
2.34.1
author
#116 lore raw

PATCH 73/81 usb: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Eddie Cai <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Peter Korsgaard <[email protected]>
Cc: Oleksandr Suvorov <[email protected]>
Cc: Alexey Romanov <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Miquel Raynal <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Mathieu Othacehe <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Xavier Drudis Ferran <[email protected]>
Cc: Fabrice Gasnier <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sam Edwards <[email protected]>
Cc: Andre Przywara <[email protected]>

---
 drivers/usb/cdns3/cdns3-ti.c               | 1 -
 drivers/usb/cdns3/core.c                   | 1 -
 drivers/usb/common/common.c                | 1 -
 drivers/usb/common/fsl-dt-fixup.c          | 1 -
 drivers/usb/common/fsl-errata.c            | 1 -
 drivers/usb/dwc3/core.c                    | 1 -
 drivers/usb/dwc3/dwc3-generic.c            | 1 -
 drivers/usb/dwc3/dwc3-layerscape.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-g12a.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-gxl.c          | 1 -
 drivers/usb/dwc3/dwc3-omap.c               | 1 -
 drivers/usb/dwc3/ep0.c                     | 1 -
 drivers/usb/dwc3/gadget.c                  | 1 -
 drivers/usb/dwc3/samsung_usb_phy.c         | 2 +-
 drivers/usb/dwc3/ti_usb_phy.c              | 1 -
 drivers/usb/emul/sandbox_flash.c           | 1 -
 drivers/usb/emul/sandbox_hub.c             | 1 -
 drivers/usb/emul/sandbox_keyb.c            | 1 -
 drivers/usb/emul/usb-emul-uclass.c         | 1 -
 drivers/usb/eth/asix.c                     | 1 -
 drivers/usb/eth/asix88179.c                | 1 -
 drivers/usb/eth/mcs7830.c                  | 1 -
 drivers/usb/eth/r8152.c                    | 1 -
 drivers/usb/eth/r8152_fw.c                 | 1 -
 drivers/usb/eth/smsc95xx.c                 | 1 -
 drivers/usb/eth/usb_ether.c                | 1 -
 drivers/usb/gadget/at91_udc.c              | 1 -
 drivers/usb/gadget/atmel_usba_udc.c        | 1 -
 drivers/usb/gadget/bcm_udc_otg_phy.c       | 1 -
 drivers/usb/gadget/ci_udc.c                | 1 -
 drivers/usb/gadget/config.c                | 1 -
 drivers/usb/gadget/dwc2_udc_otg.c          | 1 -
 drivers/usb/gadget/dwc2_udc_otg_phy.c      | 1 -
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 -
 drivers/usb/gadget/ep0.c                   | 1 -
 drivers/usb/gadget/epautoconf.c            | 1 -
 drivers/usb/gadget/ether.c                 | 1 -
 drivers/usb/gadget/f_acm.c                 | 1 -
 drivers/usb/gadget/f_dfu.c                 | 1 -
 drivers/usb/gadget/f_fastboot.c            | 1 -
 drivers/usb/gadget/f_mass_storage.c        | 1 -
 drivers/usb/gadget/f_rockusb.c             | 1 -
 drivers/usb/gadget/f_sdp.c                 | 1 -
 drivers/usb/gadget/f_thor.c                | 1 -
 drivers/usb/gadget/g_dnl.c                 | 1 -
 drivers/usb/gadget/max3420_udc.c           | 1 -
 drivers/usb/gadget/rndis.c                 | 1 -
 drivers/usb/gadget/udc/udc-core.c          | 1 -
 drivers/usb/gadget/udc/udc-uclass.c        | 1 -
 drivers/usb/gadget/usbstring.c             | 1 -
 drivers/usb/host/dwc2.c                    | 1 -
 drivers/usb/host/dwc3-of-simple.c          | 1 -
 drivers/usb/host/dwc3-sti-glue.c           | 1 -
 drivers/usb/host/ehci-atmel.c              | 1 -
 drivers/usb/host/ehci-exynos.c             | 1 -
 drivers/usb/host/ehci-fsl.c                | 1 -
 drivers/usb/host/ehci-generic.c            | 1 -
 drivers/usb/host/ehci-hcd.c                | 1 -
 drivers/usb/host/ehci-marvell.c            | 1 -
 drivers/usb/host/ehci-msm.c                | 1 -
 drivers/usb/host/ehci-mx5.c                | 1 -
 drivers/usb/host/ehci-mx6.c                | 1 -
 drivers/usb/host/ehci-mxs.c                | 1 -
 drivers/usb/host/ehci-npcm.c               | 1 -
 drivers/usb/host/ehci-omap.c               | 2 +-
 drivers/usb/host/ehci-pci.c                | 1 -
 drivers/usb/host/ehci-tegra.c              | 1 -
 drivers/usb/host/ehci-vf.c                 | 1 -
 drivers/usb/host/ehci-zynq.c               | 1 -
 drivers/usb/host/ohci-at91.c               | 1 -
 drivers/usb/host/ohci-da8xx.c              | 1 -
 drivers/usb/host/ohci-generic.c            | 1 -
 drivers/usb/host/ohci-hcd.c                | 2 +-
 drivers/usb/host/ohci-lpc32xx.c            | 1 -
 drivers/usb/host/ohci-npcm.c               | 1 -
 drivers/usb/host/ohci-pci.c                | 1 -
 drivers/usb/host/r8a66597-hcd.c            | 1 -
 drivers/usb/host/usb-sandbox.c             | 1 -
 drivers/usb/host/usb-uclass.c              | 1 -
 drivers/usb/host/usb_bootdev.c             | 1 -
 drivers/usb/host/xhci-brcm.c               | 1 -
 drivers/usb/host/xhci-dwc3.c               | 1 -
 drivers/usb/host/xhci-exynos5.c            | 1 -
 drivers/usb/host/xhci-fsl.c                | 1 -
 drivers/usb/host/xhci-mem.c                | 1 -
 drivers/usb/host/xhci-mtk.c                | 1 -
 drivers/usb/host/xhci-mvebu.c              | 1 -
 drivers/usb/host/xhci-omap.c               | 1 -
 drivers/usb/host/xhci-pci.c                | 1 -
 drivers/usb/host/xhci-rcar.c               | 1 -
 drivers/usb/host/xhci-ring.c               | 1 -
 drivers/usb/host/xhci.c                    | 1 -
 drivers/usb/isp1760/isp1760-hcd.c          | 1 -
 drivers/usb/isp1760/isp1760-if.c           | 1 -
 drivers/usb/isp1760/isp1760-uboot.c        | 1 -
 drivers/usb/mtu3/mtu3_plat.c               | 1 -
 drivers/usb/musb-new/am35x.c               | 1 -
 drivers/usb/musb-new/da8xx.c               | 1 -
 drivers/usb/musb-new/mt85xx.c              | 1 -
 drivers/usb/musb-new/musb_core.c           | 1 -
 drivers/usb/musb-new/musb_dsps.c           | 1 -
 drivers/usb/musb-new/musb_gadget.c         | 1 -
 drivers/usb/musb-new/musb_gadget_ep0.c     | 1 -
 drivers/usb/musb-new/musb_host.c           | 1 -
 drivers/usb/musb-new/musb_uboot.c          | 1 -
 drivers/usb/musb-new/omap2430.c            | 1 -
 drivers/usb/musb-new/pic32.c               | 1 -
 drivers/usb/musb-new/sunxi.c               | 1 -
 drivers/usb/musb-new/ti-musb.c             | 1 -
 drivers/usb/musb-new/ux500.c               | 1 -
 drivers/usb/musb/am35x.c                   | 1 -
 drivers/usb/musb/musb_core.c               | 1 -
 drivers/usb/musb/musb_hcd.c                | 1 -
 drivers/usb/musb/musb_udc.c                | 1 -
 drivers/usb/phy/rockchip_usb2_phy.c        | 1 -
 drivers/usb/ulpi/omap-ulpi-viewport.c      | 1 -
 drivers/usb/ulpi/ulpi-viewport.c           | 1 -
 drivers/usb/ulpi/ulpi.c                    | 1 -
 118 files changed, 3 insertions(+), 118 deletions(-)
drivers/usb/cdns3/cdns3-ti.c +0 -1
index 2e44aadea47b..ac072260c30a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/cdns3/core.c +0 -1
index 12a741c6ea7c..b4e931646b88 100644
@@ -11,7 +11,6 @@
  *         Roger Quadros <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/common/common.c +0 -1
index 7137a569d97c..13e9a61072a9 100644
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <linux/printk.h>
drivers/usb/common/fsl-dt-fixup.c +0 -1
index 00b8cd368b1a..6a68bd76c274 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <asm/io.h>
drivers/usb/common/fsl-errata.c +0 -1
index 9eb1d2306725..89ae73f2ba48 100644
@@ -5,7 +5,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <hwconfig.h>
 #include <fsl_errata.h>
 #include<fsl_usb.h>
drivers/usb/dwc3/core.c +0 -1
index 96e850b7170f..c443d56746dd 100644
@@ -13,7 +13,6 @@
  * commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <malloc.h>
drivers/usb/dwc3/dwc3-generic.c +0 -1
index 7a00529a2a8e..8db678eb85d4 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-omap.c.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <dm.h>
drivers/usb/dwc3/dwc3-layerscape.c +0 -1
index c32df2396d74..ff83bf71e898 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-generic.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-g12a.c +0 -1
index 1a3e9350c46d..21e4f637bb15 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <dm.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-gxl.c +0 -1
index 2ce915701a85..3e693c5ff310 100644
@@ -7,7 +7,6 @@
  */
 
 #define DEBUG
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
drivers/usb/dwc3/dwc3-omap.c +0 -1
index 53c4d4826b45..4b219c35eb35 100644
@@ -13,7 +13,6 @@
  * commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
drivers/usb/dwc3/ep0.c +0 -1
index 1133cf82b1ae..117d38a0340b 100644
@@ -12,7 +12,6 @@
  *
  * commit c00552ebaf : Merge 3.18-rc7 into usb-next
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/dwc3/gadget.c +0 -1
index 406d36ceafe4..4de007cb0c38 100644
@@ -13,7 +13,6 @@
  * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/dwc3/samsung_usb_phy.c +1 -1
index abbd41368901..0a7713081636 100644
@@ -7,7 +7,7 @@
  * Author: Joonyoung Shim <[email protected]>
  */
 
-#include <common.h>
+#include <asm/io.h>
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
 #include <linux/delay.h>
drivers/usb/dwc3/ti_usb_phy.c +0 -1
index 8ae130860f79..f0ecdea958ae 100644
@@ -16,7 +16,6 @@
  * and remove" for phy-omap-usb2.c
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <ti-usb-phy-uboot.h>
 #include <dm/device_compat.h>
drivers/usb/emul/sandbox_flash.c +0 -1
index 7c5c1ab3de73..24420e3d51e1 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY	UCLASS_USB
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/emul/sandbox_hub.c +0 -1
index 084cc16cc683..3b3e59f978f7 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/emul/sandbox_keyb.c +0 -1
index 5ec1e98e4ed4..db769883ba3b 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <os.h>
drivers/usb/emul/usb-emul-uclass.c +0 -1
index b31dc950e3ab..cdc18d6cbb97 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_EMUL
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/asix.c +0 -1
index 26dd312b7d06..c5a01ec922be 100644
@@ -5,7 +5,6 @@
  * Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/usb/eth/asix88179.c +0 -1
index 2e737e606685..7bfd285b3aa4 100644
@@ -5,7 +5,6 @@
  * from the Linux AX88179_178a driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/mcs7830.c +0 -1
index d94204f22d5f..199fb7a5d08e 100644
@@ -9,7 +9,6 @@
  * MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152.c +0 -1
index 3c866f4f1e2d..e3f20e08c33c 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152_fw.c +0 -1
index a41abed3069a..3159f3010602 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
  *
   */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/bitops.h>
drivers/usb/eth/smsc95xx.c +0 -1
index de6586e62639..b4fcb2c2bb0d 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2007-2008 SMSC (Steve Glendinning)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/usb_ether.c +0 -1
index 2e9af54fd63d..8bba3e0974e6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/at91_udc.c +0 -1
index e573a03477b9..86b2cbf3f6ae 100644
@@ -13,7 +13,6 @@
 #undef	VERBOSE_DEBUG
 #undef	PACKET_TRACE
 
-#include <common.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/err.h>
drivers/usb/gadget/atmel_usba_udc.c +0 -1
index 4c420747b0b6..f99553df8d49 100644
@@ -7,7 +7,6 @@
  *			   Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
drivers/usb/gadget/bcm_udc_otg_phy.c +0 -1
index c89cd57c253d..9875191091cc 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
drivers/usb/gadget/ci_udc.c +0 -1
index 750d47148798..bbe03cfff1fb 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <command.h>
 #include <config.h>
 #include <cpu_func.h>
drivers/usb/gadget/config.c +0 -1
index e96782644f31..1363ef9e73df 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <asm/unaligned.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg.c +0 -1
index 27082f5152cb..6bd395a6235a 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 #undef DEBUG
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/gadget/dwc2_udc_otg_phy.c +0 -1
index 7f8e9564b9e5..c7eea7b34421 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +0 -1
index 1c34b753511d..16b2a03f9e4b 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <linux/bug.h>
drivers/usb/gadget/ep0.c +0 -1
index c256cc31fbd2..9d08640ff23a 100644
@@ -36,7 +36,6 @@
  * XXX
  */
 
-#include <common.h>
 #include <serial.h>
 #include <usbdevice.h>
 
drivers/usb/gadget/epautoconf.c +0 -1
index bb0d2971d06b..0a70035ce04b 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/usb/ch9.h>
 #include <linux/errno.h>
 #include <linux/usb/gadget.h>
drivers/usb/gadget/ether.c +0 -1
index 36618f0bdf36..b8b29d399b13 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2008 Nokia Corporation
  */
 
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_acm.c +0 -1
index ba216128ab27..f18c6a0a7611 100644
@@ -10,7 +10,6 @@
  */
 
 #include <circbuf.h>
-#include <common.h>
 #include <console.h>
 #include <errno.h>
 #include <g_dnl.h>
drivers/usb/gadget/f_dfu.c +0 -1
index 44877df4ec6b..ca8b36e077bc 100644
@@ -16,7 +16,6 @@
 
 #include <env.h>
 #include <errno.h>
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/f_fastboot.c +0 -1
index 09e740cc9622..8df0e3f331d1 100644
@@ -11,7 +11,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <fastboot.h>
drivers/usb/gadget/f_mass_storage.c +0 -1
index ef90c7ec7fb5..89a96dbb7a74 100644
@@ -244,7 +244,6 @@
 #include <hexdump.h>
 #include <log.h>
 #include <malloc.h>
-#include <common.h>
 #include <console.h>
 #include <g_dnl.h>
 #include <dm/devres.h>
drivers/usb/gadget/f_rockusb.c +0 -1
index 98a7ffa2a752..d679cdae97c8 100644
@@ -6,7 +6,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/f_sdp.c +0 -1
index ca2760c00d0d..89496917a61f 100644
@@ -17,7 +17,6 @@
  */
 
 #include <errno.h>
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_thor.c +0 -1
index 0e7529dcdbb6..543721183480 100644
@@ -15,7 +15,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/gadget/g_dnl.c +0 -1
index afb7b74f3057..b5b5f5d8c118 100644
@@ -6,7 +6,6 @@
  * Lukasz Majewski  <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/max3420_udc.c +0 -1
index fa655c98dcc5..5a227c0ffd99 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <asm/gpio.h>
drivers/usb/gadget/rndis.c +0 -1
index e7276ccd37a3..5e6e5a054ca7 100644
@@ -18,7 +18,6 @@
  *		updates to merge with Linux 2.6, better match RNDIS spec
  */
 
-#include <common.h>
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
drivers/usb/gadget/udc/udc-core.c +0 -1
index ba658d922966..6bb419ae2abc 100644
@@ -19,7 +19,6 @@
 #include <malloc.h>
 #include <asm/cache.h>
 #include <linux/dma-mapping.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/usb/ch9.h>
drivers/usb/gadget/udc/udc-uclass.c +0 -1
index 30ee1cab0668..5dc23a55bb58 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/printk.h>
drivers/usb/gadget/usbstring.c +0 -1
index e2464ad923f8..4617a95bd0a7 100644
@@ -6,7 +6,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
drivers/usb/host/dwc2.c +0 -1
index 637eb2dd06f5..a9dbb85f4e6c 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/host/dwc3-of-simple.c +0 -1
index f9df59d2e5d7..d52e7d22d1a7 100644
@@ -10,7 +10,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <reset.h>
 #include <clk.h>
drivers/usb/host/dwc3-sti-glue.c +0 -1
index 4a3ab6111276..3e6834e38e38 100644
@@ -6,7 +6,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-atmel.c +0 -1
index c6d50fd4551a..ee751224463a 100644
@@ -5,7 +5,6 @@
  * Written-by: Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ehci-exynos.c +0 -1
index c1cdd4b0889a..1e4a5a0b6f6c 100644
@@ -6,7 +6,6 @@
  *	Vivek Gautam <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/ehci-fsl.c +0 -1
index 0569dd54fff9..ee3eb065b142 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <pci.h>
drivers/usb/host/ehci-generic.c +0 -1
index 936e30438d9f..23c3ed25554f 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <dm/device_compat.h>
drivers/usb/host/ehci-hcd.c +0 -1
index 9839aa17492d..7d5519c65a9e 100644
@@ -6,7 +6,6 @@
  *
  * All rights reserved.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/ehci-marvell.c +0 -1
index 6093c8fb0b68..ca0ab57d49c2 100644
@@ -5,7 +5,6 @@
  * Written-by: Prafulla Wadaskar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-msm.c +0 -1
index 98fe7bc3bcb1..a081f71b187d 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/lists.h>
 #include <errno.h>
drivers/usb/host/ehci-mx5.c +0 -1
index c11279867c7c..fb912654097e 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <errno.h>
drivers/usb/host/ehci-mx6.c +0 -1
index a35fcca43a23..31cd8a50f4a2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-mxs.c +0 -1
index ddf7cc2d00a7..95af5c9254cb 100644
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
drivers/usb/host/ehci-npcm.c +0 -1
index 357a5614edb7..d2a9965b4b4f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ehci-omap.c +1 -1
index 765336a3c42b..a95fcad02131 100644
@@ -10,8 +10,8 @@
  *
  */
 
-#include <common.h>
 #include <log.h>
+#include <time.h>
 #include <usb.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/host/ehci-pci.c +0 -1
index e98ab312618d..572686580cd5 100644
@@ -4,7 +4,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ehci-tegra.c +0 -1
index 2cf16256703d..343893b9f19a 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2013 Lucas Stach
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <linux/delay.h>
drivers/usb/host/ehci-vf.c +0 -1
index 648e136447d9..5afe28ea3033 100644
@@ -6,7 +6,6 @@
  * Based on ehci-mx6 driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-zynq.c +0 -1
index f7e458cb15a2..dfaff5c60f4e 100644
@@ -5,7 +5,6 @@
  * USB Low level initialization(Specific to zynq)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <usb.h>
 #include <asm/arch/hardware.h>
drivers/usb/host/ohci-at91.c +0 -1
index 9b955c1bd678..b170f26e6c6a 100644
@@ -4,7 +4,6 @@
  * DENX Software Engineering <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/clk.h>
 
 int usb_cpu_init(void)
drivers/usb/host/ohci-da8xx.c +0 -1
index d3d73d238442..d321d147c2f9 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2012 Sughosh Ganu <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/usb/host/ohci-generic.c +0 -1
index ceed1911a95a..f1325cd49534 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ohci-hcd.c +1 -1
index 3f4418198ccd..c020d13c43d2 100644
@@ -27,7 +27,7 @@
  *     to activate workaround for bug #41 or this driver will NOT work!
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <asm/byteorder.h>
 #include <dm.h>
drivers/usb/host/ohci-lpc32xx.c +0 -1
index a04b2961b961..ed04cae7afed 100644
@@ -7,7 +7,6 @@
  * Copyright (c) 2015 Tyco Fire Protection Products.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ohci-npcm.c +0 -1
index 9e1d52988099..ffeb6bc206a8 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ohci-pci.c +0 -1
index f061aec28966..f10f10924205 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
drivers/usb/host/r8a66597-hcd.c +0 -1
index 3ccbc16da379..f0b18bffba41 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2008  Yoshihiro Shimoda <[email protected]>
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/usb-sandbox.c +0 -1
index 3d4f8d653b5d..e26f0b292ed5 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/usb-uclass.c +0 -1
index a1cd0ad2d669..cd3a07e4c374 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_USB
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/usb_bootdev.c +0 -1
index 7fa1c601dff5..362b46dc466e 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <usb.h>
drivers/usb/host/xhci-brcm.c +0 -1
index fe17924028cd..2ffad148dea6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Broadcom.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <usb.h>
drivers/usb/host/xhci-dwc3.c +0 -1
index 6cebe1cc30cb..e3e0ceff43e6 100644
@@ -8,7 +8,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <log.h>
drivers/usb/host/xhci-exynos5.c +0 -1
index 270be934e7fc..6a2d422c4b8e 100644
@@ -12,7 +12,6 @@
  * exynos5 specific PHY-init sequence.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-fsl.c +0 -1
index e67e09e31e4a..3484ae1d21ee 100644
@@ -7,7 +7,6 @@
  * Author: Ramneek Mehresh<[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-mem.c +0 -1
index 72b753062650..045b0fba8128 100644
@@ -13,7 +13,6 @@
  *	    Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/xhci-mtk.c +0 -1
index 63dfb793c6bd..7e288f0575b6 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
drivers/usb/host/xhci-mvebu.c +0 -1
index 46b89de85d1e..1338b1021c64 100644
@@ -5,7 +5,6 @@
  * MVEBU USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-omap.c +0 -1
index 501129d769a2..66da94c07098 100644
@@ -8,7 +8,6 @@
  * Author: Dan Murphy <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-pci.c +0 -1
index 11f1c02000af..f6972af7963d 100644
@@ -5,7 +5,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <init.h>
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -1
index 910c5f3352b8..1360a5940fa0 100644
@@ -13,7 +13,6 @@
  *	    Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/byteorder.h>
drivers/usb/host/xhci.c +0 -1
index 741e186ee05b..d30725d3fcaa 100644
@@ -19,7 +19,6 @@
  * The quirk devices support hasn't been given yet.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-hcd.c +0 -1
index a6c4d97aee3f..96c483fb9afa 100644
@@ -7,7 +7,6 @@
  */
 
 #include <hexdump.h>
-#include <common.h>
 #include <asm/cache.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/isp1760/isp1760-if.c +0 -1
index c96ab459f93e..54246b49d5fe 100644
@@ -6,7 +6,6 @@
  * (c) 2007 Sebastian Siewior <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-uboot.c +0 -1
index 203500a4cb7f..8dcb7768a2c2 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/mtu3/mtu3_plat.c +0 -1
index b1b22b9357ce..ca86b58dfcd7 100644
@@ -5,7 +5,6 @@
  * Author: Chunfeng Yun <[email protected]>
  */
 
-#include <common.h>
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 
drivers/usb/musb-new/am35x.c +0 -1
index 0a52e09e19f1..42bc816e4f1e 100644
@@ -24,7 +24,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <asm/omap_musb.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
drivers/usb/musb-new/da8xx.c +0 -1
index 68fc0c36146d..7caf03cc2e14 100644
@@ -13,7 +13,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/musb-new/mt85xx.c +0 -1
index 1e632dca0462..14b28bbae6b1 100644
@@ -9,7 +9,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/musb_core.c +0 -1
index 00da554982fe..257e7685cfa3 100644
@@ -79,7 +79,6 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_dsps.c +0 -1
index a8ff7434c9f7..b73f3531ce24 100644
@@ -31,7 +31,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <asm/omap_musb.h>
drivers/usb/musb-new/musb_gadget.c +0 -1
index c6083963ede9..29e225aa0f11 100644
@@ -22,7 +22,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/slab.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bug.h>
drivers/usb/musb-new/musb_gadget_ep0.c +0 -1
index 55ce8de99bb1..63eee31a6b3e 100644
@@ -18,7 +18,6 @@
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/printk.h>
drivers/usb/musb-new/musb_host.c +0 -1
index e5905d90d66f..2f2fc7c1359b 100644
@@ -21,7 +21,6 @@
 #include <linux/list.h>
 #include <linux/dma-mapping.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_uboot.c +0 -1
index 7cea9a2ed65c..43ab3245e5c3 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <malloc.h>
drivers/usb/musb-new/omap2430.c +0 -1
index 308eff832c9e..c8dd73050b29 100644
@@ -8,7 +8,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <serial.h>
drivers/usb/musb-new/pic32.c +0 -1
index 4ed5e6e90c6c..0b25e5893b3c 100644
@@ -9,7 +9,6 @@
  * Based on the dsps "glue layer" code.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/sunxi.c +0 -1
index 778b01b22ea7..b577ba418780 100644
@@ -15,7 +15,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/musb-new/ti-musb.c +0 -1
index ed5e5194d8c9..76e8b88369e3 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2016
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <dm.h>
drivers/usb/musb-new/ux500.c +0 -1
index 57c7d5630d37..6b4ef3c85782 100644
@@ -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 <dm/device_compat.h>
drivers/usb/musb/am35x.c +0 -1
index f945f1f5e2c5..2c23043d40e9 100644
@@ -9,7 +9,6 @@
  * Copyright (c) 2010 Texas Instruments Incorporated
  */
 
-#include <common.h>
 #include <linux/delay.h>
 
 #include "am35x.h"
drivers/usb/musb/musb_core.c +0 -1
index 9651f074a49d..260552e4dbd4 100644
@@ -8,7 +8,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 
 #include "musb_core.h"
drivers/usb/musb/musb_hcd.c +0 -1
index 4676cabae0aa..c95c6a482812 100644
@@ -7,7 +7,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/delay.h>
drivers/usb/musb/musb_udc.c +0 -1
index 2ffcb7caaad7..696855ee3a61 100644
@@ -37,7 +37,6 @@
  * -------------------------------------------------------------------------
  */
 
-#include <common.h>
 #include <hang.h>
 #include <serial.h>
 #include <usbdevice.h>
drivers/usb/phy/rockchip_usb2_phy.c +0 -1
index c46ad86d3d65..9ec5b2d172b8 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <hang.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/usb/ulpi/omap-ulpi-viewport.c +0 -1
index 1b01cd4c559f..6f0c3eb154ee 100644
@@ -7,7 +7,6 @@
  * Author: Govindraj R <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/usb/ulpi/ulpi-viewport.c +0 -1
index 55a62808384d..bac20a02f018 100644
@@ -13,7 +13,6 @@
  * Copyright (C) 2011 Google, Inc.
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/ulpi/ulpi.c +0 -1
index b5d2c2c2d1c3..128adcbde134 100644
@@ -19,7 +19,6 @@
  *   Freescale Semiconductors
  */
 
-#include <common.h>
 #include <exports.h>
 #include <log.h>
 #include <linux/delay.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 73/81
#117 lore raw

Re: [PATCH 73/81] usb: Remove <common.h> and add needed includes

Hi Tom,

Thank you for the patch

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

[...]

Quoted 17 lines
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -0
index 910c5f3352b8..1360a5940fa0 100644

drivers/usb/host/xhci-ring.c line 16

Quoted 4 lines
drivers/usb/host/xhci-ring.c +0 -1
@@ -13,7 +13,6 @@
  *	    Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>

This generates the following build warning with
khadas-vim3_android_defconfig:

drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event':
drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration]

  464 |         unsigned long ts = get_timer(0);
      |                            ^~~~~~~~~
      |                            get_mem

Adding: "#include <time.h>" fixes the warning.

With the above fix included:

Quoted 15 lines
drivers/usb/host/xhci-ring.c +0 -0
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/byteorder.h>
drivers/usb/host/xhci.c +0 -1
index 741e186ee05b..d30725d3fcaa 100644
@@ -19,7 +19,6 @@
  * The quirk devices support hasn't been given yet.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>

[...]

author
#118 lore raw

Re: [PATCH 73/81] usb: Remove <common.h> and add needed includes

Quoted 44 lines · Mattijs Korpershoek

Hi Tom,

Thank you for the patch

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

[...]

Quoted 17 lines
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -0
index 910c5f3352b8..1360a5940fa0 100644

drivers/usb/host/xhci-ring.c line 16

Quoted 4 lines
drivers/usb/host/xhci-ring.c +0 -1
@@ -13,7 +13,6 @@
  *	    Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>

This generates the following build warning with
khadas-vim3_android_defconfig:

drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event':
drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration]

  464 |         unsigned long ts = get_timer(0);
      |                            ^~~~~~~~~
      |                            get_mem
Quoted 5 lines

Adding: "#include <time.h>" fixes the warning.

With the above fix included:

Did you have the full series applied? I don't see the warning here (nor in CI) and I suspect that:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
is what resolves this warning.

Signature · 1 line
Tom
#119 lore raw

Re: [PATCH 73/81] usb: Remove <common.h> and add needed includes

Hi Tom,

Quoted 47 lines · Tom Rini
Quoted 46 lines · Mattijs Korpershoek

Hi Tom,

Thank you for the patch

Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

[...]

Quoted 17 lines
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -0
index 910c5f3352b8..1360a5940fa0 100644

drivers/usb/host/xhci-ring.c line 16

Quoted 4 lines
drivers/usb/host/xhci-ring.c +0 -1
@@ -13,7 +13,6 @@
  *	    Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>

This generates the following build warning with
khadas-vim3_android_defconfig:

drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event':
drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration]

  464 |         unsigned long ts = get_timer(0);
      |                            ^~~~~~~~~
      |                            get_mem

Adding: "#include <time.h>" fixes the warning.

Quoted 8 lines
Quoted 3 lines

With the above fix included:

Did you have the full series applied? I don't see the warning here (nor in CI) and I suspect that:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
is what resolves this warning.

No, I did not apply the full series. I had some conflicts on both:
- master: ff0de1f0557e ("Merge patch series "Update PHYTEC SOM Detection"")
- next: bc39e0677816 ("Subtree merge tag 'v6.8-dts' of devicetree-rebasing repo [1] into dts/upstream")

The above patch resolves the warning, indeed!

Thanks

Quoted 3 lines
Signature · 2 lines
-- 
Tom
#120 lore raw

Re: [PATCH 73/81] usb: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 1,587 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Eddie Cai <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Peter Korsgaard <[email protected]>
Cc: Oleksandr Suvorov <[email protected]>
Cc: Alexey Romanov <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Miquel Raynal <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Mathieu Othacehe <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Xavier Drudis Ferran <[email protected]>
Cc: Fabrice Gasnier <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sam Edwards <[email protected]>
Cc: Andre Przywara <[email protected]>

---
 drivers/usb/cdns3/cdns3-ti.c               | 1 -
 drivers/usb/cdns3/core.c                   | 1 -
 drivers/usb/common/common.c                | 1 -
 drivers/usb/common/fsl-dt-fixup.c          | 1 -
 drivers/usb/common/fsl-errata.c            | 1 -
 drivers/usb/dwc3/core.c                    | 1 -
 drivers/usb/dwc3/dwc3-generic.c            | 1 -
 drivers/usb/dwc3/dwc3-layerscape.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-g12a.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-gxl.c          | 1 -
 drivers/usb/dwc3/dwc3-omap.c               | 1 -
 drivers/usb/dwc3/ep0.c                     | 1 -
 drivers/usb/dwc3/gadget.c                  | 1 -
 drivers/usb/dwc3/samsung_usb_phy.c         | 2 +-
 drivers/usb/dwc3/ti_usb_phy.c              | 1 -
 drivers/usb/emul/sandbox_flash.c           | 1 -
 drivers/usb/emul/sandbox_hub.c             | 1 -
 drivers/usb/emul/sandbox_keyb.c            | 1 -
 drivers/usb/emul/usb-emul-uclass.c         | 1 -
 drivers/usb/eth/asix.c                     | 1 -
 drivers/usb/eth/asix88179.c                | 1 -
 drivers/usb/eth/mcs7830.c                  | 1 -
 drivers/usb/eth/r8152.c                    | 1 -
 drivers/usb/eth/r8152_fw.c                 | 1 -
 drivers/usb/eth/smsc95xx.c                 | 1 -
 drivers/usb/eth/usb_ether.c                | 1 -
 drivers/usb/gadget/at91_udc.c              | 1 -
 drivers/usb/gadget/atmel_usba_udc.c        | 1 -
 drivers/usb/gadget/bcm_udc_otg_phy.c       | 1 -
 drivers/usb/gadget/ci_udc.c                | 1 -
 drivers/usb/gadget/config.c                | 1 -
 drivers/usb/gadget/dwc2_udc_otg.c          | 1 -
 drivers/usb/gadget/dwc2_udc_otg_phy.c      | 1 -
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 -
 drivers/usb/gadget/ep0.c                   | 1 -
 drivers/usb/gadget/epautoconf.c            | 1 -
 drivers/usb/gadget/ether.c                 | 1 -
 drivers/usb/gadget/f_acm.c                 | 1 -
 drivers/usb/gadget/f_dfu.c                 | 1 -
 drivers/usb/gadget/f_fastboot.c            | 1 -
 drivers/usb/gadget/f_mass_storage.c        | 1 -
 drivers/usb/gadget/f_rockusb.c             | 1 -
 drivers/usb/gadget/f_sdp.c                 | 1 -
 drivers/usb/gadget/f_thor.c                | 1 -
 drivers/usb/gadget/g_dnl.c                 | 1 -
 drivers/usb/gadget/max3420_udc.c           | 1 -
 drivers/usb/gadget/rndis.c                 | 1 -
 drivers/usb/gadget/udc/udc-core.c          | 1 -
 drivers/usb/gadget/udc/udc-uclass.c        | 1 -
 drivers/usb/gadget/usbstring.c             | 1 -
 drivers/usb/host/dwc2.c                    | 1 -
 drivers/usb/host/dwc3-of-simple.c          | 1 -
 drivers/usb/host/dwc3-sti-glue.c           | 1 -
 drivers/usb/host/ehci-atmel.c              | 1 -
 drivers/usb/host/ehci-exynos.c             | 1 -
 drivers/usb/host/ehci-fsl.c                | 1 -
 drivers/usb/host/ehci-generic.c            | 1 -
 drivers/usb/host/ehci-hcd.c                | 1 -
 drivers/usb/host/ehci-marvell.c            | 1 -
 drivers/usb/host/ehci-msm.c                | 1 -
 drivers/usb/host/ehci-mx5.c                | 1 -
 drivers/usb/host/ehci-mx6.c                | 1 -
 drivers/usb/host/ehci-mxs.c                | 1 -
 drivers/usb/host/ehci-npcm.c               | 1 -
 drivers/usb/host/ehci-omap.c               | 2 +-
 drivers/usb/host/ehci-pci.c                | 1 -
 drivers/usb/host/ehci-tegra.c              | 1 -
 drivers/usb/host/ehci-vf.c                 | 1 -
 drivers/usb/host/ehci-zynq.c               | 1 -
 drivers/usb/host/ohci-at91.c               | 1 -
 drivers/usb/host/ohci-da8xx.c              | 1 -
 drivers/usb/host/ohci-generic.c            | 1 -
 drivers/usb/host/ohci-hcd.c                | 2 +-
 drivers/usb/host/ohci-lpc32xx.c            | 1 -
 drivers/usb/host/ohci-npcm.c               | 1 -
 drivers/usb/host/ohci-pci.c                | 1 -
 drivers/usb/host/r8a66597-hcd.c            | 1 -
 drivers/usb/host/usb-sandbox.c             | 1 -
 drivers/usb/host/usb-uclass.c              | 1 -
 drivers/usb/host/usb_bootdev.c             | 1 -
 drivers/usb/host/xhci-brcm.c               | 1 -
 drivers/usb/host/xhci-dwc3.c               | 1 -
 drivers/usb/host/xhci-exynos5.c            | 1 -
 drivers/usb/host/xhci-fsl.c                | 1 -
 drivers/usb/host/xhci-mem.c                | 1 -
 drivers/usb/host/xhci-mtk.c                | 1 -
 drivers/usb/host/xhci-mvebu.c              | 1 -
 drivers/usb/host/xhci-omap.c               | 1 -
 drivers/usb/host/xhci-pci.c                | 1 -
 drivers/usb/host/xhci-rcar.c               | 1 -
 drivers/usb/host/xhci-ring.c               | 1 -
 drivers/usb/host/xhci.c                    | 1 -
 drivers/usb/isp1760/isp1760-hcd.c          | 1 -
 drivers/usb/isp1760/isp1760-if.c           | 1 -
 drivers/usb/isp1760/isp1760-uboot.c        | 1 -
 drivers/usb/mtu3/mtu3_plat.c               | 1 -
 drivers/usb/musb-new/am35x.c               | 1 -
 drivers/usb/musb-new/da8xx.c               | 1 -
 drivers/usb/musb-new/mt85xx.c              | 1 -
 drivers/usb/musb-new/musb_core.c           | 1 -
 drivers/usb/musb-new/musb_dsps.c           | 1 -
 drivers/usb/musb-new/musb_gadget.c         | 1 -
 drivers/usb/musb-new/musb_gadget_ep0.c     | 1 -
 drivers/usb/musb-new/musb_host.c           | 1 -
 drivers/usb/musb-new/musb_uboot.c          | 1 -
 drivers/usb/musb-new/omap2430.c            | 1 -
 drivers/usb/musb-new/pic32.c               | 1 -
 drivers/usb/musb-new/sunxi.c               | 1 -
 drivers/usb/musb-new/ti-musb.c             | 1 -
 drivers/usb/musb-new/ux500.c               | 1 -
 drivers/usb/musb/am35x.c                   | 1 -
 drivers/usb/musb/musb_core.c               | 1 -
 drivers/usb/musb/musb_hcd.c                | 1 -
 drivers/usb/musb/musb_udc.c                | 1 -
 drivers/usb/phy/rockchip_usb2_phy.c        | 1 -
 drivers/usb/ulpi/omap-ulpi-viewport.c      | 1 -
 drivers/usb/ulpi/ulpi-viewport.c           | 1 -
 drivers/usb/ulpi/ulpi.c                    | 1 -
 118 files changed, 3 insertions(+), 118 deletions(-)
drivers/usb/cdns3/cdns3-ti.c +0 -1
index 2e44aadea47b..ac072260c30a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/cdns3/core.c +0 -1
index 12a741c6ea7c..b4e931646b88 100644
@@ -11,7 +11,6 @@
  *         Roger Quadros <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/common/common.c +0 -1
index 7137a569d97c..13e9a61072a9 100644
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <linux/printk.h>
drivers/usb/common/fsl-dt-fixup.c +0 -1
index 00b8cd368b1a..6a68bd76c274 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <asm/io.h>
drivers/usb/common/fsl-errata.c +0 -1
index 9eb1d2306725..89ae73f2ba48 100644
@@ -5,7 +5,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <hwconfig.h>
 #include <fsl_errata.h>
 #include<fsl_usb.h>
drivers/usb/dwc3/core.c +0 -1
index 96e850b7170f..c443d56746dd 100644
@@ -13,7 +13,6 @@
  * commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <malloc.h>
drivers/usb/dwc3/dwc3-generic.c +0 -1
index 7a00529a2a8e..8db678eb85d4 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-omap.c.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <dm.h>
drivers/usb/dwc3/dwc3-layerscape.c +0 -1
index c32df2396d74..ff83bf71e898 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-generic.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-g12a.c +0 -1
index 1a3e9350c46d..21e4f637bb15 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <dm.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-gxl.c +0 -1
index 2ce915701a85..3e693c5ff310 100644
@@ -7,7 +7,6 @@
  */
 
 #define DEBUG
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
drivers/usb/dwc3/dwc3-omap.c +0 -1
index 53c4d4826b45..4b219c35eb35 100644
@@ -13,7 +13,6 @@
  * commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
drivers/usb/dwc3/ep0.c +0 -1
index 1133cf82b1ae..117d38a0340b 100644
@@ -12,7 +12,6 @@
  *
  * commit c00552ebaf : Merge 3.18-rc7 into usb-next
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/dwc3/gadget.c +0 -1
index 406d36ceafe4..4de007cb0c38 100644
@@ -13,7 +13,6 @@
  * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/dwc3/samsung_usb_phy.c +1 -1
index abbd41368901..0a7713081636 100644
@@ -7,7 +7,7 @@
  * Author: Joonyoung Shim <[email protected]>
  */
 
-#include <common.h>
+#include <asm/io.h>
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
 #include <linux/delay.h>
drivers/usb/dwc3/ti_usb_phy.c +0 -1
index 8ae130860f79..f0ecdea958ae 100644
@@ -16,7 +16,6 @@
  * and remove" for phy-omap-usb2.c
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <ti-usb-phy-uboot.h>
 #include <dm/device_compat.h>
drivers/usb/emul/sandbox_flash.c +0 -1
index 7c5c1ab3de73..24420e3d51e1 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY   UCLASS_USB
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/emul/sandbox_hub.c +0 -1
index 084cc16cc683..3b3e59f978f7 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/emul/sandbox_keyb.c +0 -1
index 5ec1e98e4ed4..db769883ba3b 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <os.h>
drivers/usb/emul/usb-emul-uclass.c +0 -1
index b31dc950e3ab..cdc18d6cbb97 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_EMUL
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/asix.c +0 -1
index 26dd312b7d06..c5a01ec922be 100644
@@ -5,7 +5,6 @@
  * Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/usb/eth/asix88179.c +0 -1
index 2e737e606685..7bfd285b3aa4 100644
@@ -5,7 +5,6 @@
  * from the Linux AX88179_178a driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/mcs7830.c +0 -1
index d94204f22d5f..199fb7a5d08e 100644
@@ -9,7 +9,6 @@
  * MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152.c +0 -1
index 3c866f4f1e2d..e3f20e08c33c 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152_fw.c +0 -1
index a41abed3069a..3159f3010602 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
  *
   */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/bitops.h>
drivers/usb/eth/smsc95xx.c +0 -1
index de6586e62639..b4fcb2c2bb0d 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2007-2008 SMSC (Steve Glendinning)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/usb_ether.c +0 -1
index 2e9af54fd63d..8bba3e0974e6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/at91_udc.c +0 -1
index e573a03477b9..86b2cbf3f6ae 100644
@@ -13,7 +13,6 @@
 #undef VERBOSE_DEBUG
 #undef PACKET_TRACE
 
-#include <common.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/err.h>
drivers/usb/gadget/atmel_usba_udc.c +0 -1
index 4c420747b0b6..f99553df8d49 100644
@@ -7,7 +7,6 @@
  *                        Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
drivers/usb/gadget/bcm_udc_otg_phy.c +0 -1
index c89cd57c253d..9875191091cc 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
drivers/usb/gadget/ci_udc.c +0 -1
index 750d47148798..bbe03cfff1fb 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <command.h>
 #include <config.h>
 #include <cpu_func.h>
drivers/usb/gadget/config.c +0 -1
index e96782644f31..1363ef9e73df 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <asm/unaligned.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg.c +0 -1
index 27082f5152cb..6bd395a6235a 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 #undef DEBUG
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/gadget/dwc2_udc_otg_phy.c +0 -1
index 7f8e9564b9e5..c7eea7b34421 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +0 -1
index 1c34b753511d..16b2a03f9e4b 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <linux/bug.h>
drivers/usb/gadget/ep0.c +0 -1
index c256cc31fbd2..9d08640ff23a 100644
@@ -36,7 +36,6 @@
  * XXX
  */
 
-#include <common.h>
 #include <serial.h>
 #include <usbdevice.h>
 
drivers/usb/gadget/epautoconf.c +0 -1
index bb0d2971d06b..0a70035ce04b 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/usb/ch9.h>
 #include <linux/errno.h>
 #include <linux/usb/gadget.h>
drivers/usb/gadget/ether.c +0 -1
index 36618f0bdf36..b8b29d399b13 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2008 Nokia Corporation
  */
 
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_acm.c +0 -1
index ba216128ab27..f18c6a0a7611 100644
@@ -10,7 +10,6 @@
  */
 
 #include <circbuf.h>
-#include <common.h>
 #include <console.h>
 #include <errno.h>
 #include <g_dnl.h>
drivers/usb/gadget/f_dfu.c +0 -1
index 44877df4ec6b..ca8b36e077bc 100644
@@ -16,7 +16,6 @@
 
 #include <env.h>
 #include <errno.h>
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/f_fastboot.c +0 -1
index 09e740cc9622..8df0e3f331d1 100644
@@ -11,7 +11,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <fastboot.h>
drivers/usb/gadget/f_mass_storage.c +0 -1
index ef90c7ec7fb5..89a96dbb7a74 100644
@@ -244,7 +244,6 @@
 #include <hexdump.h>
 #include <log.h>
 #include <malloc.h>
-#include <common.h>
 #include <console.h>
 #include <g_dnl.h>
 #include <dm/devres.h>
drivers/usb/gadget/f_rockusb.c +0 -1
index 98a7ffa2a752..d679cdae97c8 100644
@@ -6,7 +6,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/f_sdp.c +0 -1
index ca2760c00d0d..89496917a61f 100644
@@ -17,7 +17,6 @@
  */
 
 #include <errno.h>
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_thor.c +0 -1
index 0e7529dcdbb6..543721183480 100644
@@ -15,7 +15,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/gadget/g_dnl.c +0 -1
index afb7b74f3057..b5b5f5d8c118 100644
@@ -6,7 +6,6 @@
  * Lukasz Majewski  <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/max3420_udc.c +0 -1
index fa655c98dcc5..5a227c0ffd99 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <asm/gpio.h>
drivers/usb/gadget/rndis.c +0 -1
index e7276ccd37a3..5e6e5a054ca7 100644
@@ -18,7 +18,6 @@
  *             updates to merge with Linux 2.6, better match RNDIS spec
  */
 
-#include <common.h>
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
drivers/usb/gadget/udc/udc-core.c +0 -1
index ba658d922966..6bb419ae2abc 100644
@@ -19,7 +19,6 @@
 #include <malloc.h>
 #include <asm/cache.h>
 #include <linux/dma-mapping.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/usb/ch9.h>
drivers/usb/gadget/udc/udc-uclass.c +0 -1
index 30ee1cab0668..5dc23a55bb58 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/printk.h>
drivers/usb/gadget/usbstring.c +0 -1
index e2464ad923f8..4617a95bd0a7 100644
@@ -6,7 +6,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
drivers/usb/host/dwc2.c +0 -1
index 637eb2dd06f5..a9dbb85f4e6c 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/host/dwc3-of-simple.c +0 -1
index f9df59d2e5d7..d52e7d22d1a7 100644
@@ -10,7 +10,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <reset.h>
 #include <clk.h>
drivers/usb/host/dwc3-sti-glue.c +0 -1
index 4a3ab6111276..3e6834e38e38 100644
@@ -6,7 +6,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-atmel.c +0 -1
index c6d50fd4551a..ee751224463a 100644
@@ -5,7 +5,6 @@
  * Written-by: Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ehci-exynos.c +0 -1
index c1cdd4b0889a..1e4a5a0b6f6c 100644
@@ -6,7 +6,6 @@
  *     Vivek Gautam <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/ehci-fsl.c +0 -1
index 0569dd54fff9..ee3eb065b142 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <pci.h>
drivers/usb/host/ehci-generic.c +0 -1
index 936e30438d9f..23c3ed25554f 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <dm/device_compat.h>
drivers/usb/host/ehci-hcd.c +0 -1
index 9839aa17492d..7d5519c65a9e 100644
@@ -6,7 +6,6 @@
  *
  * All rights reserved.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/ehci-marvell.c +0 -1
index 6093c8fb0b68..ca0ab57d49c2 100644
@@ -5,7 +5,6 @@
  * Written-by: Prafulla Wadaskar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-msm.c +0 -1
index 98fe7bc3bcb1..a081f71b187d 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/lists.h>
 #include <errno.h>
drivers/usb/host/ehci-mx5.c +0 -1
index c11279867c7c..fb912654097e 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <errno.h>
drivers/usb/host/ehci-mx6.c +0 -1
index a35fcca43a23..31cd8a50f4a2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-mxs.c +0 -1
index ddf7cc2d00a7..95af5c9254cb 100644
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
drivers/usb/host/ehci-npcm.c +0 -1
index 357a5614edb7..d2a9965b4b4f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ehci-omap.c +1 -1
index 765336a3c42b..a95fcad02131 100644
@@ -10,8 +10,8 @@
  *
  */
 
-#include <common.h>
 #include <log.h>
+#include <time.h>
 #include <usb.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/host/ehci-pci.c +0 -1
index e98ab312618d..572686580cd5 100644
@@ -4,7 +4,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ehci-tegra.c +0 -1
index 2cf16256703d..343893b9f19a 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2013 Lucas Stach
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <linux/delay.h>
drivers/usb/host/ehci-vf.c +0 -1
index 648e136447d9..5afe28ea3033 100644
@@ -6,7 +6,6 @@
  * Based on ehci-mx6 driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-zynq.c +0 -1
index f7e458cb15a2..dfaff5c60f4e 100644
@@ -5,7 +5,6 @@
  * USB Low level initialization(Specific to zynq)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <usb.h>
 #include <asm/arch/hardware.h>
drivers/usb/host/ohci-at91.c +0 -1
index 9b955c1bd678..b170f26e6c6a 100644
@@ -4,7 +4,6 @@
  * DENX Software Engineering <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/clk.h>
 
 int usb_cpu_init(void)
drivers/usb/host/ohci-da8xx.c +0 -1
index d3d73d238442..d321d147c2f9 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2012 Sughosh Ganu <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/usb/host/ohci-generic.c +0 -1
index ceed1911a95a..f1325cd49534 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ohci-hcd.c +1 -1
index 3f4418198ccd..c020d13c43d2 100644
@@ -27,7 +27,7 @@
  *     to activate workaround for bug #41 or this driver will NOT work!
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <asm/byteorder.h>
 #include <dm.h>
drivers/usb/host/ohci-lpc32xx.c +0 -1
index a04b2961b961..ed04cae7afed 100644
@@ -7,7 +7,6 @@
  * Copyright (c) 2015 Tyco Fire Protection Products.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ohci-npcm.c +0 -1
index 9e1d52988099..ffeb6bc206a8 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ohci-pci.c +0 -1
index f061aec28966..f10f10924205 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
drivers/usb/host/r8a66597-hcd.c +0 -1
index 3ccbc16da379..f0b18bffba41 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2008  Yoshihiro Shimoda <[email protected]>
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/usb-sandbox.c +0 -1
index 3d4f8d653b5d..e26f0b292ed5 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/usb-uclass.c +0 -1
index a1cd0ad2d669..cd3a07e4c374 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_USB
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/usb_bootdev.c +0 -1
index 7fa1c601dff5..362b46dc466e 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <usb.h>
drivers/usb/host/xhci-brcm.c +0 -1
index fe17924028cd..2ffad148dea6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Broadcom.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <usb.h>
drivers/usb/host/xhci-dwc3.c +0 -1
index 6cebe1cc30cb..e3e0ceff43e6 100644
@@ -8,7 +8,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <log.h>
drivers/usb/host/xhci-exynos5.c +0 -1
index 270be934e7fc..6a2d422c4b8e 100644
@@ -12,7 +12,6 @@
  * exynos5 specific PHY-init sequence.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-fsl.c +0 -1
index e67e09e31e4a..3484ae1d21ee 100644
@@ -7,7 +7,6 @@
  * Author: Ramneek Mehresh<[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-mem.c +0 -1
index 72b753062650..045b0fba8128 100644
@@ -13,7 +13,6 @@
  *         Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/xhci-mtk.c +0 -1
index 63dfb793c6bd..7e288f0575b6 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
drivers/usb/host/xhci-mvebu.c +0 -1
index 46b89de85d1e..1338b1021c64 100644
@@ -5,7 +5,6 @@
  * MVEBU USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-omap.c +0 -1
index 501129d769a2..66da94c07098 100644
@@ -8,7 +8,6 @@
  * Author: Dan Murphy <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-pci.c +0 -1
index 11f1c02000af..f6972af7963d 100644
@@ -5,7 +5,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <init.h>
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -1
index 910c5f3352b8..1360a5940fa0 100644
@@ -13,7 +13,6 @@
  *         Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/byteorder.h>
drivers/usb/host/xhci.c +0 -1
index 741e186ee05b..d30725d3fcaa 100644
@@ -19,7 +19,6 @@
  * The quirk devices support hasn't been given yet.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-hcd.c +0 -1
index a6c4d97aee3f..96c483fb9afa 100644
@@ -7,7 +7,6 @@
  */
 
 #include <hexdump.h>
-#include <common.h>
 #include <asm/cache.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/isp1760/isp1760-if.c +0 -1
index c96ab459f93e..54246b49d5fe 100644
@@ -6,7 +6,6 @@
  * (c) 2007 Sebastian Siewior <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-uboot.c +0 -1
index 203500a4cb7f..8dcb7768a2c2 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/mtu3/mtu3_plat.c +0 -1
index b1b22b9357ce..ca86b58dfcd7 100644
@@ -5,7 +5,6 @@
  * Author: Chunfeng Yun <[email protected]>
  */
 
-#include <common.h>
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 
drivers/usb/musb-new/am35x.c +0 -1
index 0a52e09e19f1..42bc816e4f1e 100644
@@ -24,7 +24,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <asm/omap_musb.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
drivers/usb/musb-new/da8xx.c +0 -1
index 68fc0c36146d..7caf03cc2e14 100644
@@ -13,7 +13,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/musb-new/mt85xx.c +0 -1
index 1e632dca0462..14b28bbae6b1 100644
@@ -9,7 +9,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/musb_core.c +0 -1
index 00da554982fe..257e7685cfa3 100644
@@ -79,7 +79,6 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_dsps.c +0 -1
index a8ff7434c9f7..b73f3531ce24 100644
@@ -31,7 +31,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <asm/omap_musb.h>
drivers/usb/musb-new/musb_gadget.c +0 -1
index c6083963ede9..29e225aa0f11 100644
@@ -22,7 +22,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/slab.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bug.h>
drivers/usb/musb-new/musb_gadget_ep0.c +0 -1
index 55ce8de99bb1..63eee31a6b3e 100644
@@ -18,7 +18,6 @@
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/printk.h>
drivers/usb/musb-new/musb_host.c +0 -1
index e5905d90d66f..2f2fc7c1359b 100644
@@ -21,7 +21,6 @@
 #include <linux/list.h>
 #include <linux/dma-mapping.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_uboot.c +0 -1
index 7cea9a2ed65c..43ab3245e5c3 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <malloc.h>
drivers/usb/musb-new/omap2430.c +0 -1
index 308eff832c9e..c8dd73050b29 100644
@@ -8,7 +8,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <serial.h>
drivers/usb/musb-new/pic32.c +0 -1
index 4ed5e6e90c6c..0b25e5893b3c 100644
@@ -9,7 +9,6 @@
  * Based on the dsps "glue layer" code.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/sunxi.c +0 -1
index 778b01b22ea7..b577ba418780 100644
@@ -15,7 +15,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/musb-new/ti-musb.c +0 -1
index ed5e5194d8c9..76e8b88369e3 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2016
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <dm.h>
drivers/usb/musb-new/ux500.c +0 -1
index 57c7d5630d37..6b4ef3c85782 100644
@@ -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 <dm/device_compat.h>
drivers/usb/musb/am35x.c +0 -1
index f945f1f5e2c5..2c23043d40e9 100644
@@ -9,7 +9,6 @@
  * Copyright (c) 2010 Texas Instruments Incorporated
  */
 
-#include <common.h>
 #include <linux/delay.h>
 
 #include "am35x.h"
drivers/usb/musb/musb_core.c +0 -1
index 9651f074a49d..260552e4dbd4 100644
@@ -8,7 +8,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 
 #include "musb_core.h"
drivers/usb/musb/musb_hcd.c +0 -1
index 4676cabae0aa..c95c6a482812 100644
@@ -7,7 +7,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/delay.h>
drivers/usb/musb/musb_udc.c +0 -1
index 2ffcb7caaad7..696855ee3a61 100644
@@ -37,7 +37,6 @@
  * -------------------------------------------------------------------------
  */
 
-#include <common.h>
 #include <hang.h>
 #include <serial.h>
 #include <usbdevice.h>
drivers/usb/phy/rockchip_usb2_phy.c +0 -1
index c46ad86d3d65..9ec5b2d172b8 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <hang.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/usb/ulpi/omap-ulpi-viewport.c +0 -1
index 1b01cd4c559f..6f0c3eb154ee 100644
@@ -7,7 +7,6 @@
  * Author: Govindraj R <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/usb/ulpi/ulpi-viewport.c +0 -1
index 55a62808384d..bac20a02f018 100644
@@ -13,7 +13,6 @@
  * Copyright (C) 2011 Google, Inc.
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/ulpi/ulpi.c +0 -2
index b5d2c2c2d1c3..128adcbde134 100644
@@ -19,7 +19,6 @@
  *   Freescale Semiconductors
  */
 
-#include <common.h>
 #include <exports.h>
 #include <log.h>
 #include <linux/delay.h>
--
Quoted 2 lines

2.34.1

There is a warning for RISC-V maybe to do with having only the generic find_next_zero_bit and not an optimized one in arch/riscv/include/asm/bitops.h:

CC drivers/usb/cdns3/gadget.o
In file included from drivers/usb/cdns3/gadget.c:70:
include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’:
include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration]

  170 |         index = find_next_zero_bit(map, size, start);
      |                 ^~~~~~~~~~~~~~~~~~
      |                 find_next_bit
  CC      drivers/usb/cdns3/ep0.o
In file included from include/linux/usb/composite.h:26,
                 from drivers/usb/cdns3/ep0.c:19:

include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’:
include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration]

  170 |         index = find_next_zero_bit(map, size, start);
      |                 ^~~~~~~~~~~~~~~~~~
      |                 find_next_bit

CC drivers/usb/cdns3/host.o

I would guess that for architectures that have optimized versions there is no implicit declaration. This was HEAD (2f1e76bc) with patch series 405474 "Add Starfive JH7110 Cadence USB driver" applied and starfive_visionfive2_defconfig. -E