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 2 of 5

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

Re: [PATCH 33/81] gpio: 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 873 lines

---
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Alex Nemirovsky <[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: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Qu Wenruo <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Piotr Wojtaszczyk <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Samuel Holland <[email protected]>
Cc: Sam Edwards <[email protected]>

---
  drivers/gpio/74x164_gpio.c          | 1 -
  drivers/gpio/altera_pio.c           | 1 -
  drivers/gpio/at91_gpio.c            | 1 -
  drivers/gpio/atmel_pio4.c           | 1 -
  drivers/gpio/axp_gpio.c             | 1 -
  drivers/gpio/bcm2835_gpio.c         | 1 -
  drivers/gpio/bcm6345_gpio.c         | 1 -
  drivers/gpio/cortina_gpio.c         | 1 -
  drivers/gpio/da8xx_gpio.c           | 1 -
  drivers/gpio/ftgpio010.c            | 1 -
  drivers/gpio/gpio-aspeed.c          | 1 -
  drivers/gpio/gpio-fxl6408.c         | 1 -
  drivers/gpio/gpio-rcar.c            | 1 -
  drivers/gpio/gpio-rza1.c            | 1 -
  drivers/gpio/gpio-uclass.c          | 1 -
  drivers/gpio/gpio-uniphier.c        | 1 -
  drivers/gpio/gpio_slg7xl45106.c     | 1 -
  drivers/gpio/hi6220_gpio.c          | 1 -
  drivers/gpio/hsdk-creg-gpio.c       | 1 -
  drivers/gpio/imx_rgpio2p.c          | 1 -
  drivers/gpio/intel_broadwell_gpio.c | 1 -
  drivers/gpio/intel_gpio.c           | 1 -
  drivers/gpio/intel_ich6_gpio.c      | 1 -
  drivers/gpio/iproc_gpio.c           | 1 -
  drivers/gpio/kw_gpio.c              | 1 -
  drivers/gpio/lpc32xx_gpio.c         | 1 -
  drivers/gpio/max7320_gpio.c         | 1 -
  drivers/gpio/mcp230xx_gpio.c        | 1 -
  drivers/gpio/mpc83xx_spisel_boot.c  | 1 -
  drivers/gpio/mpc8xx_gpio.c          | 1 -
  drivers/gpio/mpc8xxx_gpio.c         | 1 -
  drivers/gpio/mscc_sgpio.c           | 1 -
  drivers/gpio/msm_gpio.c             | 1 -
  drivers/gpio/mt7621_gpio.c          | 1 -
  drivers/gpio/mvebu_gpio.c           | 1 -
  drivers/gpio/mxc_gpio.c             | 1 -
  drivers/gpio/mxs_gpio.c             | 1 -
  drivers/gpio/nmk_gpio.c             | 1 -
  drivers/gpio/npcm_gpio.c            | 1 -
  drivers/gpio/nx_gpio.c              | 1 -
  drivers/gpio/omap_gpio.c            | 1 -
  drivers/gpio/pca953x.c              | 3 ++-
  drivers/gpio/pca953x_gpio.c         | 1 -
  drivers/gpio/pcf8575_gpio.c         | 1 -
  drivers/gpio/pic32_gpio.c           | 1 -
  drivers/gpio/qcom_pmic_gpio.c       | 1 -
  drivers/gpio/qe_gpio.c              | 1 -
  drivers/gpio/rk_gpio.c              | 1 -
  drivers/gpio/s5p_gpio.c             | 1 -
  drivers/gpio/sandbox.c              | 1 -
  drivers/gpio/sandbox_test.c         | 1 -
  drivers/gpio/sh_pfc.c               | 1 -
  drivers/gpio/sifive-gpio.c          | 1 -
  drivers/gpio/sl28cpld-gpio.c        | 1 -
  drivers/gpio/stm32_gpio.c           | 1 -
  drivers/gpio/sunxi_gpio.c           | 1 -
  drivers/gpio/tca642x.c              | 2 +-
  drivers/gpio/tegra186_gpio.c        | 1 -
  drivers/gpio/tegra_gpio.c           | 1 -
  drivers/gpio/vybrid_gpio.c          | 1 -
  drivers/gpio/xilinx_gpio.c          | 1 -
  drivers/gpio/zynq_gpio.c            | 1 -
  drivers/gpio/zynqmp_gpio_modepin.c  | 1 -
  63 files changed, 3 insertions(+), 63 deletions(-)
drivers/gpio/74x164_gpio.c +0 -1
index 7a7cfe86114b..331428ccdb9a 100644
@@ -8,7 +8,6 @@
   *
   */
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/altera_pio.c +0 -1
index edc5a8093b0c..7ba1595e4ae3 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2011  Missing Link Electronics
   *                     Joachim Foerster <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/at91_gpio.c +0 -1
index f80f4afd24ff..50a698159075 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/atmel_pio4.c +0 -1
index be1dd752bf76..65d064b46dfb 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2015 Atmel Corporation
   *		 Wenyou.Yang <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/axp_gpio.c +0 -1
index af6631697f58..6e632c8fc730 100644
@@ -5,7 +5,6 @@
   * X-Powers AXP Power Management ICs gpio driver
   */
 
-#include <common.h>
  #include <asm/arch/pmic_bus.h>
  #include <asm/gpio.h>
  #include <axp_pmic.h>
drivers/gpio/bcm2835_gpio.c +0 -1
index 704a6fa71210..ccf84fdae11f 100644
@@ -4,7 +4,6 @@
   * <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/pinctrl.h>
  #include <errno.h>
drivers/gpio/bcm6345_gpio.c +0 -1
index e031f71a784d..e76c84e806ad 100644
@@ -7,7 +7,6 @@
   *	Copyright (C) 2008-2011 Florian Fainelli <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/gpio.h>
drivers/gpio/cortina_gpio.c +0 -1
index 72ef523be960..e0ea14cce696 100644
@@ -5,7 +5,6 @@
   * GPIO Driver for Cortina Access CAxxxx Line of SoCs
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/io.h>
drivers/gpio/da8xx_gpio.c +0 -1
index b310f2dbf651..1ccb9e69f158 100644
@@ -6,7 +6,6 @@
   * Laurence Withers <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <malloc.h>
drivers/gpio/ftgpio010.c +0 -1
index 6c091d4fd874..4cb550a540c6 100644
@@ -3,7 +3,6 @@
   * Faraday Technology's FTGPIO010 controller.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
drivers/gpio/gpio-aspeed.c +0 -1
index 1c3d18796b3a..c5608f4a9dfc 100644
@@ -6,7 +6,6 @@
   *
   * Implementation extracted from the Linux kernel and adapted for u-boot.
   */
-#include <common.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
 
drivers/gpio/gpio-fxl6408.c +0 -1
index ca7aa14eeb23..c8d2dff5f7bf 100644
@@ -37,7 +37,6 @@
 
  #include <asm-generic/gpio.h>
  #include <asm/global_data.h>
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <dt-bindings/gpio/gpio.h>
drivers/gpio/gpio-rcar.c +0 -1
index 707785012322..d1a399388095 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/gpio-rza1.c +0 -1
index f14be871e8d0..8c3fe61b25f6 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/gpio/gpio-uclass.c +0 -1
index 4234cd912c9f..92ce68dd4a13 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <dt-structs.h>
  #include <log.h>
drivers/gpio/gpio-uniphier.c +0 -1
index 61c705b5ac56..033fb4b60ee6 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <linux/bitops.h>
  #include <linux/io.h>
drivers/gpio/gpio_slg7xl45106.c +0 -1
index 4ad06c18b4bd..a7c9ff53af7d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2021 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
drivers/gpio/hi6220_gpio.c +0 -1
index e287c31b93fc..7ceb5f424c9d 100644
@@ -4,7 +4,6 @@
   * Peter Griffin <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/hsdk-creg-gpio.c +0 -1
index 66f8441840b5..734b31d3dc17 100644
@@ -12,7 +12,6 @@
  #include <log.h>
  #include <asm-generic/gpio.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <linux/bitops.h>
drivers/gpio/imx_rgpio2p.c +0 -1
index 3227a8d5b574..fc1d418315c5 100644
@@ -5,7 +5,6 @@
   * RGPIO2P driver for the Freescale i.MX7ULP.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_broadwell_gpio.c +0 -1
index 20af35de2cf5..53ed0a3eed06 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2012 The Chromium OS Authors.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_gpio.c +0 -1
index 4a3ec6d63502..0ab6e8a90bcb 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_ich6_gpio.c +0 -1
index 2ed0d0bea9a5..096bc3b05bb7 100644
@@ -28,7 +28,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/iproc_gpio.c +0 -1
index 7187d3257b90..8688f12e43c7 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Broadcom
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/kw_gpio.c +0 -1
index a15769793f17..e183f5594b51 100644
@@ -12,7 +12,6 @@
   * Dieter Kiermaier [email protected]
   */
 
-#include <common.h>
  #include <linux/bitops.h>
  #include <asm/io.h>
  #include <asm/arch/soc.h>
drivers/gpio/lpc32xx_gpio.c +0 -1
index de66c765d11e..2b537e007ba9 100644
@@ -6,7 +6,6 @@
   * Written-by: Albert ARIBAUD <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch-lpc32xx/cpu.h>
  #include <asm/arch-lpc32xx/gpio.h>
drivers/gpio/max7320_gpio.c +0 -1
index 647aed907b4c..f733cc924e56 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <asm-generic/gpio.h>
drivers/gpio/mcp230xx_gpio.c +0 -1
index df99fde56602..42e7fe9d474c 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_GPIO
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <i2c.h>
drivers/gpio/mpc83xx_spisel_boot.c +0 -1
index fd26a36a0f94..2be8c73ae3d7 100644
@@ -5,7 +5,6 @@
   * GPIO driver to set/clear SPISEL_BOOT pin on mpc83xx.
   */
 
-#include <common.h>
  #include <log.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/gpio/mpc8xx_gpio.c +0 -1
index 2f6534653313..e2b12f8b56c7 100644
@@ -10,7 +10,6 @@
   * Copyright 2010 eXMeritus, A Boeing Company
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/gpio/mpc8xxx_gpio.c +0 -1
index f7ffd8926ade..e9bd38f162c1 100644
@@ -9,7 +9,6 @@
   * Copyright 2020-2021 NXP
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mapmem.h>
  #include <asm/gpio.h>
drivers/gpio/mscc_sgpio.c +0 -1
index c97e44005ee1..5a40304f1f93 100644
@@ -7,7 +7,6 @@
   * Copyright (c) 2018 Microsemi Corporation
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/gpio.h>
drivers/gpio/msm_gpio.c +0 -1
index f5d9ab54e817..2fb266f12854 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Mateusz Kulikowski <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/global_data.h>
drivers/gpio/mt7621_gpio.c +0 -1
index 43bb4df4da72..63a202310a5e 100644
@@ -7,7 +7,6 @@
   *   Copyright (C) 2013 John Crispin <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/mvebu_gpio.c +0 -1
index f706a6dfa4fe..0d82380dde4a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/pinctrl.h>
  #include <asm/gpio.h>
drivers/gpio/mxc_gpio.c +0 -1
index 1dec4e35e0a7..cac6b32b2796 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2011
   * Stefano Babic, DENX Software Engineering, <[email protected]>
   */
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/mxs_gpio.c +0 -1
index 1356f89ac2f0..80910c9ec4c2 100644
@@ -6,7 +6,6 @@
   * on behalf of DENX Software Engineering GmbH
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <asm/global_data.h>
drivers/gpio/nmk_gpio.c +0 -1
index e1bb41b196cc..c2716e717632 100644
@@ -1,7 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0+
  /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/npcm_gpio.c +0 -1
index 98e5dc79c1cc..da3b3ffbc92f 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <linux/io.h>
drivers/gpio/nx_gpio.c +0 -1
index e2565d709535..741b2ff7f177 100644
@@ -4,7 +4,6 @@
   * DeokJin, Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/omap_gpio.c +0 -1
index 50c4f75ddf5d..1aceafcdf581 100644
@@ -17,7 +17,6 @@
   * Copyright (C) 2003-2005 Nokia Corporation
   * Written by Juha Yrjölä <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <asm/global_data.h>
drivers/gpio/pca953x.c +2 -1
index b5ed35256ee7..fc4dcf9f9861 100644
@@ -8,10 +8,11 @@
   * pca9539, etc)
   */
 
-#include <common.h>
+#include <config.h>
  #include <command.h>
  #include <i2c.h>
  #include <pca953x.h>
+#include <vsprintf.h>
 
  /* Default to an address that hopefully won't corrupt other i2c devices */
  #ifndef CFG_SYS_I2C_PCA953X_ADDR
drivers/gpio/pca953x_gpio.c +0 -1
index b0c66d18317e..80ebaadb3e43 100644
@@ -18,7 +18,6 @@
   * 2. Support Polarity Inversion
   */
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/pcf8575_gpio.c +0 -1
index f38e215c4d6e..10ae86ec5d45 100644
@@ -17,7 +17,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/gpio/pic32_gpio.c +0 -1
index 975a2af3ccb8..d8edfefb2d75 100644
@@ -4,7 +4,6 @@
   * Purna Chandra Mandal <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/qcom_pmic_gpio.c +0 -1
index 0dd3434e9e04..80fee841ee3f 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Mateusz Kulikowski <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device-internal.h>
  #include <dm/lists.h>
drivers/gpio/qe_gpio.c +0 -1
index 16e8d1eae6ed..ac6e68299e07 100644
@@ -4,7 +4,6 @@
   * Christophe Leroy <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mapmem.h>
  #include <asm/gpio.h>
drivers/gpio/rk_gpio.c +0 -1
index 2e901ac5c734..24ba12dd820e 100644
@@ -6,7 +6,6 @@
   * Peter, Software Engineering, <[email protected]>.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <syscon.h>
  #include <linux/errno.h>
drivers/gpio/s5p_gpio.c +0 -1
index 06ed585f3d64..83e65aa4aec4 100644
@@ -4,7 +4,6 @@
   * Minkyu Kang <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/sandbox.c +0 -1
index 305f9a6ff62f..f5be27814438 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2011 The Chromium OS Authors.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <log.h>
drivers/gpio/sandbox_test.c +0 -1
index c76e19974196..4699a976252c 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm-generic/gpio.h>
 
drivers/gpio/sh_pfc.c +0 -1
index 2495d6c1c154..9f6051c1c4d3 100644
@@ -9,7 +9,6 @@
   * for more details.
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <asm/bitops.h>
drivers/gpio/sifive-gpio.c +0 -1
index 151f484e8fd1..90f59120ecd0 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2019 SiFive, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/arch/gpio.h>
  #include <asm/io.h>
drivers/gpio/sl28cpld-gpio.c +0 -1
index 700fc3df298c..e85f9260ec39 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2021 Michael Walle <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <sl28cpld.h>
drivers/gpio/stm32_gpio.c +0 -1
index 7a2ca91c7692..b8eb55465d3c 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_GPIO
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/sunxi_gpio.c +0 -1
index e4463a223f7b..5e86474d3dbb 100644
@@ -9,7 +9,6 @@
   * Tom Cubie <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/tca642x.c +1 -1
index b07496e6e49c..1d45b5007461 100644
@@ -20,7 +20,7 @@
   * MA 02111-1307 USA
   */
 
-#include <common.h>
+#include <config.h>
  #include <command.h>
  #include <i2c.h>
  #include <tca642x.h>
drivers/gpio/tegra186_gpio.c +0 -1
index 94a20d143e10..01b8245c8d5b 100644
@@ -4,7 +4,6 @@
   * (based on tegra_gpio.c)
   */
 
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <errno.h>
drivers/gpio/tegra_gpio.c +0 -1
index 55105f2802c3..0c40d36c41e2 100644
@@ -10,7 +10,6 @@
   * Tom Warren ([email protected])
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/gpio/vybrid_gpio.c +0 -1
index 339392dcd35a..5b4bba96da70 100644
@@ -4,7 +4,6 @@
   * Bhuvanchandra DV, Toradex, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/xilinx_gpio.c +0 -1
index fa8d630b4658..c0a92378b035 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2013 - 2018 Xilinx, Michal Simek
   */
 
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <malloc.h>
drivers/gpio/zynq_gpio.c +0 -1
index 71a56127c0aa..7db58c70663e 100644
@@ -8,7 +8,6 @@
   * Copyright (C) 2009 - 2014 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
  #include <linux/bitops.h>
drivers/gpio/zynqmp_gpio_modepin.c +0 -1
index e9565ff5430e..8aaffaf37b3d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2021 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
Reviewed-by on v1 33/81
#48 lore raw

Re: [PATCH 33/81] gpio: 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.

Thanks,
- Kever

Quoted 873 lines

---
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Alex Nemirovsky <[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: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Gregory CLEMENT <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Qu Wenruo <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Piotr Wojtaszczyk <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Samuel Holland <[email protected]>
Cc: Sam Edwards <[email protected]>

---
  drivers/gpio/74x164_gpio.c          | 1 -
  drivers/gpio/altera_pio.c           | 1 -
  drivers/gpio/at91_gpio.c            | 1 -
  drivers/gpio/atmel_pio4.c           | 1 -
  drivers/gpio/axp_gpio.c             | 1 -
  drivers/gpio/bcm2835_gpio.c         | 1 -
  drivers/gpio/bcm6345_gpio.c         | 1 -
  drivers/gpio/cortina_gpio.c         | 1 -
  drivers/gpio/da8xx_gpio.c           | 1 -
  drivers/gpio/ftgpio010.c            | 1 -
  drivers/gpio/gpio-aspeed.c          | 1 -
  drivers/gpio/gpio-fxl6408.c         | 1 -
  drivers/gpio/gpio-rcar.c            | 1 -
  drivers/gpio/gpio-rza1.c            | 1 -
  drivers/gpio/gpio-uclass.c          | 1 -
  drivers/gpio/gpio-uniphier.c        | 1 -
  drivers/gpio/gpio_slg7xl45106.c     | 1 -
  drivers/gpio/hi6220_gpio.c          | 1 -
  drivers/gpio/hsdk-creg-gpio.c       | 1 -
  drivers/gpio/imx_rgpio2p.c          | 1 -
  drivers/gpio/intel_broadwell_gpio.c | 1 -
  drivers/gpio/intel_gpio.c           | 1 -
  drivers/gpio/intel_ich6_gpio.c      | 1 -
  drivers/gpio/iproc_gpio.c           | 1 -
  drivers/gpio/kw_gpio.c              | 1 -
  drivers/gpio/lpc32xx_gpio.c         | 1 -
  drivers/gpio/max7320_gpio.c         | 1 -
  drivers/gpio/mcp230xx_gpio.c        | 1 -
  drivers/gpio/mpc83xx_spisel_boot.c  | 1 -
  drivers/gpio/mpc8xx_gpio.c          | 1 -
  drivers/gpio/mpc8xxx_gpio.c         | 1 -
  drivers/gpio/mscc_sgpio.c           | 1 -
  drivers/gpio/msm_gpio.c             | 1 -
  drivers/gpio/mt7621_gpio.c          | 1 -
  drivers/gpio/mvebu_gpio.c           | 1 -
  drivers/gpio/mxc_gpio.c             | 1 -
  drivers/gpio/mxs_gpio.c             | 1 -
  drivers/gpio/nmk_gpio.c             | 1 -
  drivers/gpio/npcm_gpio.c            | 1 -
  drivers/gpio/nx_gpio.c              | 1 -
  drivers/gpio/omap_gpio.c            | 1 -
  drivers/gpio/pca953x.c              | 3 ++-
  drivers/gpio/pca953x_gpio.c         | 1 -
  drivers/gpio/pcf8575_gpio.c         | 1 -
  drivers/gpio/pic32_gpio.c           | 1 -
  drivers/gpio/qcom_pmic_gpio.c       | 1 -
  drivers/gpio/qe_gpio.c              | 1 -
  drivers/gpio/rk_gpio.c              | 1 -
  drivers/gpio/s5p_gpio.c             | 1 -
  drivers/gpio/sandbox.c              | 1 -
  drivers/gpio/sandbox_test.c         | 1 -
  drivers/gpio/sh_pfc.c               | 1 -
  drivers/gpio/sifive-gpio.c          | 1 -
  drivers/gpio/sl28cpld-gpio.c        | 1 -
  drivers/gpio/stm32_gpio.c           | 1 -
  drivers/gpio/sunxi_gpio.c           | 1 -
  drivers/gpio/tca642x.c              | 2 +-
  drivers/gpio/tegra186_gpio.c        | 1 -
  drivers/gpio/tegra_gpio.c           | 1 -
  drivers/gpio/vybrid_gpio.c          | 1 -
  drivers/gpio/xilinx_gpio.c          | 1 -
  drivers/gpio/zynq_gpio.c            | 1 -
  drivers/gpio/zynqmp_gpio_modepin.c  | 1 -
  63 files changed, 3 insertions(+), 63 deletions(-)
drivers/gpio/74x164_gpio.c +0 -1
index 7a7cfe86114b..331428ccdb9a 100644
@@ -8,7 +8,6 @@
   *
   */
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/altera_pio.c +0 -1
index edc5a8093b0c..7ba1595e4ae3 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2011  Missing Link Electronics
   *                     Joachim Foerster <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/at91_gpio.c +0 -1
index f80f4afd24ff..50a698159075 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/atmel_pio4.c +0 -1
index be1dd752bf76..65d064b46dfb 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2015 Atmel Corporation
   *		 Wenyou.Yang <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/axp_gpio.c +0 -1
index af6631697f58..6e632c8fc730 100644
@@ -5,7 +5,6 @@
   * X-Powers AXP Power Management ICs gpio driver
   */
 
-#include <common.h>
  #include <asm/arch/pmic_bus.h>
  #include <asm/gpio.h>
  #include <axp_pmic.h>
drivers/gpio/bcm2835_gpio.c +0 -1
index 704a6fa71210..ccf84fdae11f 100644
@@ -4,7 +4,6 @@
   * <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/pinctrl.h>
  #include <errno.h>
drivers/gpio/bcm6345_gpio.c +0 -1
index e031f71a784d..e76c84e806ad 100644
@@ -7,7 +7,6 @@
   *	Copyright (C) 2008-2011 Florian Fainelli <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/gpio.h>
drivers/gpio/cortina_gpio.c +0 -1
index 72ef523be960..e0ea14cce696 100644
@@ -5,7 +5,6 @@
   * GPIO Driver for Cortina Access CAxxxx Line of SoCs
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/io.h>
drivers/gpio/da8xx_gpio.c +0 -1
index b310f2dbf651..1ccb9e69f158 100644
@@ -6,7 +6,6 @@
   * Laurence Withers <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <malloc.h>
drivers/gpio/ftgpio010.c +0 -1
index 6c091d4fd874..4cb550a540c6 100644
@@ -3,7 +3,6 @@
   * Faraday Technology's FTGPIO010 controller.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
drivers/gpio/gpio-aspeed.c +0 -1
index 1c3d18796b3a..c5608f4a9dfc 100644
@@ -6,7 +6,6 @@
   *
   * Implementation extracted from the Linux kernel and adapted for u-boot.
   */
-#include <common.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
 
drivers/gpio/gpio-fxl6408.c +0 -1
index ca7aa14eeb23..c8d2dff5f7bf 100644
@@ -37,7 +37,6 @@
 
  #include <asm-generic/gpio.h>
  #include <asm/global_data.h>
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <dt-bindings/gpio/gpio.h>
drivers/gpio/gpio-rcar.c +0 -1
index 707785012322..d1a399388095 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/gpio-rza1.c +0 -1
index f14be871e8d0..8c3fe61b25f6 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/gpio/gpio-uclass.c +0 -1
index 4234cd912c9f..92ce68dd4a13 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <dt-structs.h>
  #include <log.h>
drivers/gpio/gpio-uniphier.c +0 -1
index 61c705b5ac56..033fb4b60ee6 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <linux/bitops.h>
  #include <linux/io.h>
drivers/gpio/gpio_slg7xl45106.c +0 -1
index 4ad06c18b4bd..a7c9ff53af7d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2021 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
drivers/gpio/hi6220_gpio.c +0 -1
index e287c31b93fc..7ceb5f424c9d 100644
@@ -4,7 +4,6 @@
   * Peter Griffin <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/hsdk-creg-gpio.c +0 -1
index 66f8441840b5..734b31d3dc17 100644
@@ -12,7 +12,6 @@
  #include <log.h>
  #include <asm-generic/gpio.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <linux/bitops.h>
drivers/gpio/imx_rgpio2p.c +0 -1
index 3227a8d5b574..fc1d418315c5 100644
@@ -5,7 +5,6 @@
   * RGPIO2P driver for the Freescale i.MX7ULP.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_broadwell_gpio.c +0 -1
index 20af35de2cf5..53ed0a3eed06 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2012 The Chromium OS Authors.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_gpio.c +0 -1
index 4a3ec6d63502..0ab6e8a90bcb 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/intel_ich6_gpio.c +0 -1
index 2ed0d0bea9a5..096bc3b05bb7 100644
@@ -28,7 +28,6 @@
 
  #define LOG_CATEGORY	UCLASS_GPIO
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/iproc_gpio.c +0 -1
index 7187d3257b90..8688f12e43c7 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Broadcom
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/kw_gpio.c +0 -1
index a15769793f17..e183f5594b51 100644
@@ -12,7 +12,6 @@
   * Dieter Kiermaier [email protected]
   */
 
-#include <common.h>
  #include <linux/bitops.h>
  #include <asm/io.h>
  #include <asm/arch/soc.h>
drivers/gpio/lpc32xx_gpio.c +0 -1
index de66c765d11e..2b537e007ba9 100644
@@ -6,7 +6,6 @@
   * Written-by: Albert ARIBAUD <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch-lpc32xx/cpu.h>
  #include <asm/arch-lpc32xx/gpio.h>
drivers/gpio/max7320_gpio.c +0 -1
index 647aed907b4c..f733cc924e56 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <asm-generic/gpio.h>
drivers/gpio/mcp230xx_gpio.c +0 -1
index df99fde56602..42e7fe9d474c 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_GPIO
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <i2c.h>
drivers/gpio/mpc83xx_spisel_boot.c +0 -1
index fd26a36a0f94..2be8c73ae3d7 100644
@@ -5,7 +5,6 @@
   * GPIO driver to set/clear SPISEL_BOOT pin on mpc83xx.
   */
 
-#include <common.h>
  #include <log.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/gpio/mpc8xx_gpio.c +0 -1
index 2f6534653313..e2b12f8b56c7 100644
@@ -10,7 +10,6 @@
   * Copyright 2010 eXMeritus, A Boeing Company
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/gpio/mpc8xxx_gpio.c +0 -1
index f7ffd8926ade..e9bd38f162c1 100644
@@ -9,7 +9,6 @@
   * Copyright 2020-2021 NXP
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mapmem.h>
  #include <asm/gpio.h>
drivers/gpio/mscc_sgpio.c +0 -1
index c97e44005ee1..5a40304f1f93 100644
@@ -7,7 +7,6 @@
   * Copyright (c) 2018 Microsemi Corporation
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/gpio.h>
drivers/gpio/msm_gpio.c +0 -1
index f5d9ab54e817..2fb266f12854 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Mateusz Kulikowski <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/global_data.h>
drivers/gpio/mt7621_gpio.c +0 -1
index 43bb4df4da72..63a202310a5e 100644
@@ -7,7 +7,6 @@
   *   Copyright (C) 2013 John Crispin <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/mvebu_gpio.c +0 -1
index f706a6dfa4fe..0d82380dde4a 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/pinctrl.h>
  #include <asm/gpio.h>
drivers/gpio/mxc_gpio.c +0 -1
index 1dec4e35e0a7..cac6b32b2796 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2011
   * Stefano Babic, DENX Software Engineering, <[email protected]>
   */
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <malloc.h>
drivers/gpio/mxs_gpio.c +0 -1
index 1356f89ac2f0..80910c9ec4c2 100644
@@ -6,7 +6,6 @@
   * on behalf of DENX Software Engineering GmbH
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <asm/global_data.h>
drivers/gpio/nmk_gpio.c +0 -1
index e1bb41b196cc..c2716e717632 100644
@@ -1,7 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0+
  /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/gpio/npcm_gpio.c +0 -1
index 98e5dc79c1cc..da3b3ffbc92f 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <linux/io.h>
drivers/gpio/nx_gpio.c +0 -1
index e2565d709535..741b2ff7f177 100644
@@ -4,7 +4,6 @@
   * DeokJin, Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/omap_gpio.c +0 -1
index 50c4f75ddf5d..1aceafcdf581 100644
@@ -17,7 +17,6 @@
   * Copyright (C) 2003-2005 Nokia Corporation
   * Written by Juha Yrjölä <[email protected]>
   */
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <asm/global_data.h>
drivers/gpio/pca953x.c +2 -1
index b5ed35256ee7..fc4dcf9f9861 100644
@@ -8,10 +8,11 @@
   * pca9539, etc)
   */
 
-#include <common.h>
+#include <config.h>
  #include <command.h>
  #include <i2c.h>
  #include <pca953x.h>
+#include <vsprintf.h>
 
  /* Default to an address that hopefully won't corrupt other i2c devices */
  #ifndef CFG_SYS_I2C_PCA953X_ADDR
drivers/gpio/pca953x_gpio.c +0 -1
index b0c66d18317e..80ebaadb3e43 100644
@@ -18,7 +18,6 @@
   * 2. Support Polarity Inversion
   */
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/pcf8575_gpio.c +0 -1
index f38e215c4d6e..10ae86ec5d45 100644
@@ -17,7 +17,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/gpio/pic32_gpio.c +0 -1
index 975a2af3ccb8..d8edfefb2d75 100644
@@ -4,7 +4,6 @@
   * Purna Chandra Mandal <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/gpio/qcom_pmic_gpio.c +0 -1
index 0dd3434e9e04..80fee841ee3f 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Mateusz Kulikowski <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device-internal.h>
  #include <dm/lists.h>
drivers/gpio/qe_gpio.c +0 -1
index 16e8d1eae6ed..ac6e68299e07 100644
@@ -4,7 +4,6 @@
   * Christophe Leroy <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mapmem.h>
  #include <asm/gpio.h>
drivers/gpio/rk_gpio.c +0 -1
index 2e901ac5c734..24ba12dd820e 100644
@@ -6,7 +6,6 @@
   * Peter, Software Engineering, <[email protected]>.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <syscon.h>
  #include <linux/errno.h>
drivers/gpio/s5p_gpio.c +0 -1
index 06ed585f3d64..83e65aa4aec4 100644
@@ -4,7 +4,6 @@
   * Minkyu Kang <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/sandbox.c +0 -1
index 305f9a6ff62f..f5be27814438 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2011 The Chromium OS Authors.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <log.h>
drivers/gpio/sandbox_test.c +0 -1
index c76e19974196..4699a976252c 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm-generic/gpio.h>
 
drivers/gpio/sh_pfc.c +0 -1
index 2495d6c1c154..9f6051c1c4d3 100644
@@ -9,7 +9,6 @@
   * for more details.
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <asm/bitops.h>
drivers/gpio/sifive-gpio.c +0 -1
index 151f484e8fd1..90f59120ecd0 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2019 SiFive, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/arch/gpio.h>
  #include <asm/io.h>
drivers/gpio/sl28cpld-gpio.c +0 -1
index 700fc3df298c..e85f9260ec39 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2021 Michael Walle <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/gpio.h>
  #include <sl28cpld.h>
drivers/gpio/stm32_gpio.c +0 -1
index 7a2ca91c7692..b8eb55465d3c 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_GPIO
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/gpio/sunxi_gpio.c +0 -1
index e4463a223f7b..5e86474d3dbb 100644
@@ -9,7 +9,6 @@
   * Tom Cubie <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/tca642x.c +1 -1
index b07496e6e49c..1d45b5007461 100644
@@ -20,7 +20,7 @@
   * MA 02111-1307 USA
   */
 
-#include <common.h>
+#include <config.h>
  #include <command.h>
  #include <i2c.h>
  #include <tca642x.h>
drivers/gpio/tegra186_gpio.c +0 -1
index 94a20d143e10..01b8245c8d5b 100644
@@ -4,7 +4,6 @@
   * (based on tegra_gpio.c)
   */
 
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <errno.h>
drivers/gpio/tegra_gpio.c +0 -1
index 55105f2802c3..0c40d36c41e2 100644
@@ -10,7 +10,6 @@
   * Tom Warren ([email protected])
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/gpio/vybrid_gpio.c +0 -1
index 339392dcd35a..5b4bba96da70 100644
@@ -4,7 +4,6 @@
   * Bhuvanchandra DV, Toradex, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/gpio/xilinx_gpio.c +0 -1
index fa8d630b4658..c0a92378b035 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2013 - 2018 Xilinx, Michal Simek
   */
 
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <malloc.h>
drivers/gpio/zynq_gpio.c +0 -1
index 71a56127c0aa..7db58c70663e 100644
@@ -8,7 +8,6 @@
   * Copyright (C) 2009 - 2014 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
  #include <linux/bitops.h>
drivers/gpio/zynqmp_gpio_modepin.c +0 -1
index e9565ff5430e..8aaffaf37b3d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2021 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <asm/io.h>
  #include <asm/gpio.h>
author
#49 lore raw

PATCH 34/81 hwspinlock: 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: Marek Vasut <[email protected]>

---
 drivers/hwspinlock/hwspinlock-uclass.c  | 1 -
 drivers/hwspinlock/sandbox_hwspinlock.c | 1 -
 drivers/hwspinlock/stm32_hwspinlock.c   | 1 -
 3 files changed, 3 deletions(-)
drivers/hwspinlock/hwspinlock-uclass.c +0 -1
index e9a4d7f9fbbd..ea93efc97df7 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_HWSPINLOCK
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <hwspinlock.h>
drivers/hwspinlock/sandbox_hwspinlock.c +0 -1
index be920f5f99df..fcda55517e1e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <dm.h>
 #include <hwspinlock.h>
 #include <asm/state.h>
drivers/hwspinlock/stm32_hwspinlock.c +0 -1
index 346b138e98f0..5273b9bfed89 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_HWSPINLOCK
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <hwspinlock.h>
Signature · 1 line
2.34.1
author
#50 lore raw

PATCH 35/81 i2c: 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: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>

---
 drivers/i2c/acpi_i2c.c                     | 1 -
 drivers/i2c/ast2600_i2c.c                  | 1 -
 drivers/i2c/ast_i2c.c                      | 1 -
 drivers/i2c/at91_i2c.c                     | 1 -
 drivers/i2c/cros_ec_ldo.c                  | 1 -
 drivers/i2c/cros_ec_tunnel.c               | 1 -
 drivers/i2c/davinci_i2c.c                  | 2 +-
 drivers/i2c/designware_i2c.c               | 1 -
 drivers/i2c/designware_i2c_pci.c           | 1 -
 drivers/i2c/exynos_hs_i2c.c                | 1 -
 drivers/i2c/fsl_i2c.c                      | 2 +-
 drivers/i2c/i2c-cdns.c                     | 1 -
 drivers/i2c/i2c-cortina.c                  | 2 +-
 drivers/i2c/i2c-emul-uclass.c              | 1 -
 drivers/i2c/i2c-gpio.c                     | 1 -
 drivers/i2c/i2c-microchip.c                | 1 -
 drivers/i2c/i2c-uclass.c                   | 1 -
 drivers/i2c/i2c-versatile.c                | 1 -
 drivers/i2c/i2c_core.c                     | 2 +-
 drivers/i2c/ihs_i2c.c                      | 1 -
 drivers/i2c/imx_lpi2c.c                    | 1 -
 drivers/i2c/intel_i2c.c                    | 2 +-
 drivers/i2c/iproc_i2c.c                    | 1 -
 drivers/i2c/lpc32xx_i2c.c                  | 2 +-
 drivers/i2c/meson_i2c.c                    | 1 -
 drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +-
 drivers/i2c/muxes/i2c-mux-gpio.c           | 1 -
 drivers/i2c/muxes/i2c-mux-uclass.c         | 1 -
 drivers/i2c/muxes/pca954x.c                | 1 -
 drivers/i2c/mv_i2c.c                       | 1 -
 drivers/i2c/mvtwsi.c                       | 2 +-
 drivers/i2c/mxc_i2c.c                      | 2 +-
 drivers/i2c/nx_i2c.c                       | 2 +-
 drivers/i2c/ocores_i2c.c                   | 1 -
 drivers/i2c/omap24xx_i2c.c                 | 1 -
 drivers/i2c/qup_i2c.c                      | 1 -
 drivers/i2c/rcar_i2c.c                     | 1 -
 drivers/i2c/rcar_iic.c                     | 1 -
 drivers/i2c/rk_i2c.c                       | 1 -
 drivers/i2c/s3c24x0_i2c.c                  | 2 +-
 drivers/i2c/sandbox_i2c.c                  | 1 -
 drivers/i2c/sh_i2c.c                       | 1 -
 drivers/i2c/soft_i2c.c                     | 2 +-
 drivers/i2c/stm32f7_i2c.c                  | 1 -
 drivers/i2c/sun6i_p2wi.c                   | 1 -
 drivers/i2c/sun8i_rsb.c                    | 1 -
 drivers/i2c/tegra186_bpmp_i2c.c            | 1 -
 drivers/i2c/tegra_i2c.c                    | 1 -
 drivers/i2c/xilinx_xiic.c                  | 1 -
 49 files changed, 12 insertions(+), 49 deletions(-)
drivers/i2c/acpi_i2c.c +0 -1
index 142f41178c10..82cb5db5cc8b 100644
@@ -3,7 +3,6 @@
  * Copyright 2019 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/ast2600_i2c.c +0 -1
index e566b01feacf..9d1d70670b95 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright ASPEED Technology Inc.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/i2c/ast_i2c.c +0 -1
index 1c1d5566dad4..02ee406bbd7d 100644
@@ -5,7 +5,6 @@
  * Copyright 2017 Google, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/i2c/at91_i2c.c +0 -1
index b7a25885e666..cfae36c74d19 100644
@@ -8,7 +8,6 @@
 #include <malloc.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/i2c/cros_ec_ldo.c +0 -1
index c593540ac138..dfe823c142c5 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <cros_ec.h>
 #include <errno.h>
drivers/i2c/cros_ec_tunnel.c +0 -1
index 75828b6e7c27..2d610e0a2aa9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <cros_ec.h>
 #include <errno.h>
drivers/i2c/davinci_i2c.c +1 -1
index 25ef937dc0b3..391327472087 100644
@@ -11,7 +11,7 @@
  * Please see doc/driver-model/i2c-howto.rst for instructions.
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <dm.h>
 #include <log.h>
drivers/i2c/designware_i2c.c +0 -1
index 29cf63375c7f..e8c1623d41fd 100644
@@ -4,7 +4,6 @@
  * Vipin Kumar, STMicroelectronics, [email protected].
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/designware_i2c_pci.c +0 -1
index 28495a3f4285..11c986722650 100644
@@ -5,7 +5,6 @@
  * Copyright 2019 Google Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <spl.h>
drivers/i2c/exynos_hs_i2c.c +0 -1
index a7349e06cfd3..9a364fdae375 100644
@@ -6,7 +6,6 @@
  * David Mueller, ELSOFT AG, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/fsl_i2c.c +1 -1
index d9d8ee81d2ed..bac14fb2f422 100644
@@ -6,7 +6,7 @@
  * Changes for multibus/multiadapter I2C support.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <i2c.h>		/* Functional interface */
 #include <log.h>
drivers/i2c/i2c-cdns.c +0 -1
index 935b2ac63772..3f7cf8533ec7 100644
@@ -7,7 +7,6 @@
  * with added driver-model support and code cleanup.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <linux/bitops.h>
drivers/i2c/i2c-cortina.c +1 -1
index 960ae8c700f9..96f957164c19 100644
@@ -4,12 +4,12 @@
  * Arthur Li, Cortina Access, [email protected].
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <mapmem.h>
+#include <time.h>
 #include "i2c-cortina.h"
 
 static void set_speed(struct i2c_regs *regs, int i2c_spd)
drivers/i2c/i2c-emul-uclass.c +0 -1
index d421ddfcbe29..0954d53847e6 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C_EMUL
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/i2c-gpio.c +0 -1
index 5fc3cfe42ef7..e0a575fb4a48 100644
@@ -5,7 +5,6 @@
  * This file is based on: drivers/i2c/soft-i2c.c,
  * with added driver-model support and code cleanup.
  */
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/i2c-microchip.c +0 -1
index d453e243d6f2..788747879a25 100644
@@ -6,7 +6,6 @@
  * Padmarao Begari <[email protected]>
  * Conor Dooley <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/i2c-uclass.c +0 -1
index 98f95859f3bc..380a9f8f3add 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/i2c-versatile.c +0 -1
index 0a1a85dfc288..a8f0a170f799 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/i2c_core.c +1 -1
index fe0cd75d94a1..7c43a5546d3d 100644
@@ -7,7 +7,7 @@
  *
  * Multibus/multiadapter I2C core functions (wrappers)
  */
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <linker_lists.h>
 #include <asm/global_data.h>
drivers/i2c/ihs_i2c.c +0 -1
index d715714638ff..dc88cd19167e 100644
@@ -4,7 +4,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <dm.h>
 #include <regmap.h>
drivers/i2c/imx_lpi2c.c +0 -1
index ad9293c92e1a..6c0d8eb5f4f5 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Freescale Semiconductors, Inc.
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/io.h>
drivers/i2c/intel_i2c.c +1 -1
index 4fc6f1a11a75..d8ceea10cda7 100644
@@ -7,11 +7,11 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
 #include <pci.h>
+#include <time.h>
 #include <asm/io.h>
 
 /* PCI Configuration Space (D31:F3): SMBus */
drivers/i2c/iproc_i2c.c +0 -1
index 39af49c4ec54..6570f64fe774 100644
@@ -6,7 +6,6 @@
 
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <linux/printk.h>
drivers/i2c/lpc32xx_i2c.c +1 -1
index 496f4feec566..a4e42e64a9b8 100644
@@ -6,7 +6,7 @@
  * Written-by: Albert ARIBAUD - 3ADEV <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/io.h>
 #include <i2c.h>
drivers/i2c/meson_i2c.c +0 -1
index 434e3461b1dd..19f1b6b08196 100644
@@ -2,7 +2,6 @@
 /*
  * (C) Copyright 2017 - Beniamino Galvani <[email protected]>
  */
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c +1 -1
index ad730e0e79ff..a83d7cb0829d 100644
@@ -4,12 +4,12 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <time.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
drivers/i2c/muxes/i2c-mux-gpio.c +0 -1
index 4ca206115f85..f212bd1f9836 100644
@@ -10,7 +10,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
drivers/i2c/muxes/i2c-mux-uclass.c +0 -1
index a5d1bb0576db..d1999d21feb7 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C_MUX
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/muxes/pca954x.c +0 -1
index 0034dfbf6daf..b4e3e16a9764 100644
@@ -5,7 +5,6 @@
  * Written by Michal Simek
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/mv_i2c.c +0 -1
index 5bc9cd7b295a..949cc45d308d 100644
@@ -16,7 +16,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/mvtwsi.c +1 -1
index c38330f758a9..44e8e191b039 100644
@@ -7,7 +7,7 @@
  * Copyright (c) 2010 Albert Aribaud.
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/i2c/mxc_i2c.c +1 -1
index d501133a0c8f..0acdaf7e7431 100644
@@ -14,7 +14,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
drivers/i2c/nx_i2c.c +1 -1
index 07cda0fa6793..8562dd82bd63 100644
@@ -1,8 +1,8 @@
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <time.h>
 #include <asm/arch/nexell.h>
 #include <asm/arch/reset.h>
 #include <asm/arch/clk.h>
drivers/i2c/ocores_i2c.c +0 -1
index fff85118d0de..cf714d22ee46 100644
@@ -12,7 +12,6 @@
  * Andreas Larsson <[email protected]>
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/i2c/omap24xx_i2c.c +0 -1
index 6fc9d1eba9d1..ebe472e20cdb 100644
@@ -38,7 +38,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/qup_i2c.c +0 -1
index 5ae3cccd4acd..26707d63980e 100644
@@ -9,7 +9,6 @@
 
 #include <init.h>
 #include <env.h>
-#include <common.h>
 #include <log.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
drivers/i2c/rcar_i2c.c +0 -1
index ff9a2d80dda1..f0f9b2afacfb 100644
@@ -11,7 +11,6 @@
  *   Kuninori Morimoto <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/rcar_iic.c +0 -1
index f0e50914c68d..2aa0f5fbfae4 100644
@@ -9,7 +9,6 @@
  * Copyright (C) 2011, 2013 Nobuhiro Iwamatsu <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/rk_i2c.c +0 -1
index 9927af94a80b..fa167268ae71 100644
@@ -6,7 +6,6 @@
  * Peter, Software Engineering, <[email protected]>.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
drivers/i2c/s3c24x0_i2c.c +1 -1
index 505e20bc61c8..72d2ab0f73d8 100644
@@ -4,10 +4,10 @@
  * David Mueller, ELSOFT AG, [email protected]
  */
 
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <time.h>
 #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
 #include <log.h>
 #include <asm/arch/clk.h>
drivers/i2c/sandbox_i2c.c +0 -1
index c99e6de93327..74bb5e933973 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2014 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/sh_i2c.c +0 -1
index 3335d9482a29..ab816101dea0 100644
@@ -7,7 +7,6 @@
  * Please see doc/driver-model/i2c-howto.rst for instructions.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/i2c/soft_i2c.c +1 -1
index ed8ba47de450..1f2afc65e8b3 100644
@@ -15,7 +15,7 @@
  * Please see doc/driver-model/i2c-howto.rst for instructions.
  */
 
-#include <common.h>
+#include <config.h>
 #if defined(CONFIG_AT91FAMILY)
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
drivers/i2c/stm32f7_i2c.c +0 -1
index f42e08a64180..3f51b1dd1db4 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
drivers/i2c/sun6i_p2wi.c +0 -1
index b8e07a533ca9..c927c0edf250 100644
@@ -15,7 +15,6 @@
 
 #include <axp_pmic.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/sun8i_rsb.c +0 -1
index f36f2c7afacf..2197f1805663 100644
@@ -10,7 +10,6 @@
 
 #include <axp_pmic.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/tegra186_bpmp_i2c.c +0 -1
index 588f6bdcc4b4..d30eb5231229 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/i2c/tegra_i2c.c +0 -1
index 57d77d56ea55..3c324bd26635 100644
@@ -5,7 +5,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/i2c/xilinx_xiic.c +0 -1
index 72199a62b2d7..056024e350fb 100644
@@ -9,7 +9,6 @@
  * Copyright (c) 2009-2010 Intel Corporation
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 35/81
#51 lore raw

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

Hello Tom,

Quoted 67 lines · Tom Rini

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

---
Cc: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>

---
  drivers/i2c/acpi_i2c.c                     | 1 -
  drivers/i2c/ast2600_i2c.c                  | 1 -
  drivers/i2c/ast_i2c.c                      | 1 -
  drivers/i2c/at91_i2c.c                     | 1 -
  drivers/i2c/cros_ec_ldo.c                  | 1 -
  drivers/i2c/cros_ec_tunnel.c               | 1 -
  drivers/i2c/davinci_i2c.c                  | 2 +-
  drivers/i2c/designware_i2c.c               | 1 -
  drivers/i2c/designware_i2c_pci.c           | 1 -
  drivers/i2c/exynos_hs_i2c.c                | 1 -
  drivers/i2c/fsl_i2c.c                      | 2 +-
  drivers/i2c/i2c-cdns.c                     | 1 -
  drivers/i2c/i2c-cortina.c                  | 2 +-
  drivers/i2c/i2c-emul-uclass.c              | 1 -
  drivers/i2c/i2c-gpio.c                     | 1 -
  drivers/i2c/i2c-microchip.c                | 1 -
  drivers/i2c/i2c-uclass.c                   | 1 -
  drivers/i2c/i2c-versatile.c                | 1 -
  drivers/i2c/i2c_core.c                     | 2 +-
  drivers/i2c/ihs_i2c.c                      | 1 -
  drivers/i2c/imx_lpi2c.c                    | 1 -
  drivers/i2c/intel_i2c.c                    | 2 +-
  drivers/i2c/iproc_i2c.c                    | 1 -
  drivers/i2c/lpc32xx_i2c.c                  | 2 +-
  drivers/i2c/meson_i2c.c                    | 1 -
  drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +-
  drivers/i2c/muxes/i2c-mux-gpio.c           | 1 -
  drivers/i2c/muxes/i2c-mux-uclass.c         | 1 -
  drivers/i2c/muxes/pca954x.c                | 1 -
  drivers/i2c/mv_i2c.c                       | 1 -
  drivers/i2c/mvtwsi.c                       | 2 +-
  drivers/i2c/mxc_i2c.c                      | 2 +-
  drivers/i2c/nx_i2c.c                       | 2 +-
  drivers/i2c/ocores_i2c.c                   | 1 -
  drivers/i2c/omap24xx_i2c.c                 | 1 -
  drivers/i2c/qup_i2c.c                      | 1 -
  drivers/i2c/rcar_i2c.c                     | 1 -
  drivers/i2c/rcar_iic.c                     | 1 -
  drivers/i2c/rk_i2c.c                       | 1 -
  drivers/i2c/s3c24x0_i2c.c                  | 2 +-
  drivers/i2c/sandbox_i2c.c                  | 1 -
  drivers/i2c/sh_i2c.c                       | 1 -
Quoted 8 lines
  drivers/i2c/soft_i2c.c                     | 2 +-
  drivers/i2c/stm32f7_i2c.c                  | 1 -
  drivers/i2c/sun6i_p2wi.c                   | 1 -
  drivers/i2c/sun8i_rsb.c                    | 1 -
  drivers/i2c/tegra186_bpmp_i2c.c            | 1 -
  drivers/i2c/tegra_i2c.c                    | 1 -
  drivers/i2c/xilinx_xiic.c                  | 1 -
  49 files changed, 12 insertions(+), 49 deletions(-)

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
Tested-by on v1 35/81
#52 lore raw

Re: [PATCH 35/81] i2c: 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 690 lines

---
Cc: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>

---
  drivers/i2c/acpi_i2c.c                     | 1 -
  drivers/i2c/ast2600_i2c.c                  | 1 -
  drivers/i2c/ast_i2c.c                      | 1 -
  drivers/i2c/at91_i2c.c                     | 1 -
  drivers/i2c/cros_ec_ldo.c                  | 1 -
  drivers/i2c/cros_ec_tunnel.c               | 1 -
  drivers/i2c/davinci_i2c.c                  | 2 +-
  drivers/i2c/designware_i2c.c               | 1 -
  drivers/i2c/designware_i2c_pci.c           | 1 -
  drivers/i2c/exynos_hs_i2c.c                | 1 -
  drivers/i2c/fsl_i2c.c                      | 2 +-
  drivers/i2c/i2c-cdns.c                     | 1 -
  drivers/i2c/i2c-cortina.c                  | 2 +-
  drivers/i2c/i2c-emul-uclass.c              | 1 -
  drivers/i2c/i2c-gpio.c                     | 1 -
  drivers/i2c/i2c-microchip.c                | 1 -
  drivers/i2c/i2c-uclass.c                   | 1 -
  drivers/i2c/i2c-versatile.c                | 1 -
  drivers/i2c/i2c_core.c                     | 2 +-
  drivers/i2c/ihs_i2c.c                      | 1 -
  drivers/i2c/imx_lpi2c.c                    | 1 -
  drivers/i2c/intel_i2c.c                    | 2 +-
  drivers/i2c/iproc_i2c.c                    | 1 -
  drivers/i2c/lpc32xx_i2c.c                  | 2 +-
  drivers/i2c/meson_i2c.c                    | 1 -
  drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +-
  drivers/i2c/muxes/i2c-mux-gpio.c           | 1 -
  drivers/i2c/muxes/i2c-mux-uclass.c         | 1 -
  drivers/i2c/muxes/pca954x.c                | 1 -
  drivers/i2c/mv_i2c.c                       | 1 -
  drivers/i2c/mvtwsi.c                       | 2 +-
  drivers/i2c/mxc_i2c.c                      | 2 +-
  drivers/i2c/nx_i2c.c                       | 2 +-
  drivers/i2c/ocores_i2c.c                   | 1 -
  drivers/i2c/omap24xx_i2c.c                 | 1 -
  drivers/i2c/qup_i2c.c                      | 1 -
  drivers/i2c/rcar_i2c.c                     | 1 -
  drivers/i2c/rcar_iic.c                     | 1 -
  drivers/i2c/rk_i2c.c                       | 1 -
  drivers/i2c/s3c24x0_i2c.c                  | 2 +-
  drivers/i2c/sandbox_i2c.c                  | 1 -
  drivers/i2c/sh_i2c.c                       | 1 -
  drivers/i2c/soft_i2c.c                     | 2 +-
  drivers/i2c/stm32f7_i2c.c                  | 1 -
  drivers/i2c/sun6i_p2wi.c                   | 1 -
  drivers/i2c/sun8i_rsb.c                    | 1 -
  drivers/i2c/tegra186_bpmp_i2c.c            | 1 -
  drivers/i2c/tegra_i2c.c                    | 1 -
  drivers/i2c/xilinx_xiic.c                  | 1 -
  49 files changed, 12 insertions(+), 49 deletions(-)
drivers/i2c/acpi_i2c.c +0 -1
index 142f41178c10..82cb5db5cc8b 100644
@@ -3,7 +3,6 @@
   * Copyright 2019 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/ast2600_i2c.c +0 -1
index e566b01feacf..9d1d70670b95 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright ASPEED Technology Inc.
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/i2c/ast_i2c.c +0 -1
index 1c1d5566dad4..02ee406bbd7d 100644
@@ -5,7 +5,6 @@
   * Copyright 2017 Google, Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/i2c/at91_i2c.c +0 -1
index b7a25885e666..cfae36c74d19 100644
@@ -8,7 +8,6 @@
  #include <malloc.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/i2c/cros_ec_ldo.c +0 -1
index c593540ac138..dfe823c142c5 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <cros_ec.h>
  #include <errno.h>
drivers/i2c/cros_ec_tunnel.c +0 -1
index 75828b6e7c27..2d610e0a2aa9 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <cros_ec.h>
  #include <errno.h>
drivers/i2c/davinci_i2c.c +1 -1
index 25ef937dc0b3..391327472087 100644
@@ -11,7 +11,7 @@
   * Please see doc/driver-model/i2c-howto.rst for instructions.
   */
 
-#include <common.h>
+#include <config.h>
  #include <i2c.h>
  #include <dm.h>
  #include <log.h>
drivers/i2c/designware_i2c.c +0 -1
index 29cf63375c7f..e8c1623d41fd 100644
@@ -4,7 +4,6 @@
   * Vipin Kumar, STMicroelectronics, [email protected].
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/designware_i2c_pci.c +0 -1
index 28495a3f4285..11c986722650 100644
@@ -5,7 +5,6 @@
   * Copyright 2019 Google Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <spl.h>
drivers/i2c/exynos_hs_i2c.c +0 -1
index a7349e06cfd3..9a364fdae375 100644
@@ -6,7 +6,6 @@
   * David Mueller, ELSOFT AG, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/fsl_i2c.c +1 -1
index d9d8ee81d2ed..bac14fb2f422 100644
@@ -6,7 +6,7 @@
   * Changes for multibus/multiadapter I2C support.
   */
 
-#include <common.h>
+#include <config.h>
  #include <command.h>
  #include <i2c.h>		/* Functional interface */
  #include <log.h>
drivers/i2c/i2c-cdns.c +0 -1
index 935b2ac63772..3f7cf8533ec7 100644
@@ -7,7 +7,6 @@
   * with added driver-model support and code cleanup.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <linux/bitops.h>
drivers/i2c/i2c-cortina.c +1 -1
index 960ae8c700f9..96f957164c19 100644
@@ -4,12 +4,12 @@
   * Arthur Li, Cortina Access, [email protected].
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <log.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <mapmem.h>
+#include <time.h>
  #include "i2c-cortina.h"
 
  static void set_speed(struct i2c_regs *regs, int i2c_spd)
drivers/i2c/i2c-emul-uclass.c +0 -1
index d421ddfcbe29..0954d53847e6 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_I2C_EMUL
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/i2c-gpio.c +0 -1
index 5fc3cfe42ef7..e0a575fb4a48 100644
@@ -5,7 +5,6 @@
   * This file is based on: drivers/i2c/soft-i2c.c,
   * with added driver-model support and code cleanup.
   */
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/i2c-microchip.c +0 -1
index d453e243d6f2..788747879a25 100644
@@ -6,7 +6,6 @@
   * Padmarao Begari <[email protected]>
   * Conor Dooley <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/i2c-uclass.c +0 -1
index 98f95859f3bc..380a9f8f3add 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_I2C
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/i2c-versatile.c +0 -1
index 0a1a85dfc288..a8f0a170f799 100644
@@ -5,7 +5,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/i2c_core.c +1 -1
index fe0cd75d94a1..7c43a5546d3d 100644
@@ -7,7 +7,7 @@
   *
   * Multibus/multiadapter I2C core functions (wrappers)
   */
-#include <common.h>
+#include <config.h>
  #include <i2c.h>
  #include <linker_lists.h>
  #include <asm/global_data.h>
drivers/i2c/ihs_i2c.c +0 -1
index d715714638ff..dc88cd19167e 100644
@@ -4,7 +4,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <dm.h>
  #include <regmap.h>
drivers/i2c/imx_lpi2c.c +0 -1
index ad9293c92e1a..6c0d8eb5f4f5 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Freescale Semiconductors, Inc.
   */
 
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <asm/io.h>
drivers/i2c/intel_i2c.c +1 -1
index 4fc6f1a11a75..d8ceea10cda7 100644
@@ -7,11 +7,11 @@
   * Copyright (C) 2016 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
  #include <pci.h>
+#include <time.h>
  #include <asm/io.h>
 
  /* PCI Configuration Space (D31:F3): SMBus */
drivers/i2c/iproc_i2c.c +0 -1
index 39af49c4ec54..6570f64fe774 100644
@@ -6,7 +6,6 @@
 
  #include <asm/global_data.h>
  #include <asm/io.h>
-#include <common.h>
  #include <config.h>
  #include <dm.h>
  #include <linux/printk.h>
drivers/i2c/lpc32xx_i2c.c +1 -1
index 496f4feec566..a4e42e64a9b8 100644
@@ -6,7 +6,7 @@
   * Written-by: Albert ARIBAUD - 3ADEV <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <log.h>
  #include <asm/io.h>
  #include <i2c.h>
drivers/i2c/meson_i2c.c +0 -1
index 434e3461b1dd..19f1b6b08196 100644
@@ -2,7 +2,6 @@
  /*
   * (C) Copyright 2017 - Beniamino Galvani <[email protected]>
   */
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <clk.h>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c +1 -1
index ad730e0e79ff..a83d7cb0829d 100644
@@ -4,12 +4,12 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
  #include <log.h>
  #include <malloc.h>
+#include <time.h>
  #include <asm/global_data.h>
  #include <asm/gpio.h>
  #include <linux/delay.h>
drivers/i2c/muxes/i2c-mux-gpio.c +0 -1
index 4ca206115f85..f212bd1f9836 100644
@@ -10,7 +10,6 @@
  #include <asm/global_data.h>
  #include <asm/io.h>
  #include <asm-generic/gpio.h>
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <dm/devres.h>
drivers/i2c/muxes/i2c-mux-uclass.c +0 -1
index a5d1bb0576db..d1999d21feb7 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_I2C_MUX
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/muxes/pca954x.c +0 -1
index 0034dfbf6daf..b4e3e16a9764 100644
@@ -5,7 +5,6 @@
   * Written by Michal Simek
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/mv_i2c.c +0 -1
index 5bc9cd7b295a..949cc45d308d 100644
@@ -16,7 +16,6 @@
   * [email protected], 27-Jan-01.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/mvtwsi.c +1 -1
index c38330f758a9..44e8e191b039 100644
@@ -7,7 +7,7 @@
   * Copyright (c) 2010 Albert Aribaud.
   */
 
-#include <common.h>
+#include <config.h>
  #include <i2c.h>
  #include <log.h>
  #include <asm/global_data.h>
drivers/i2c/mxc_i2c.c +1 -1
index d501133a0c8f..0acdaf7e7431 100644
@@ -14,7 +14,7 @@
   *
   */
 
-#include <common.h>
+#include <config.h>
  #include <log.h>
  #include <asm/arch/clock.h>
  #include <asm/arch/imx-regs.h>
drivers/i2c/nx_i2c.c +1 -1
index 07cda0fa6793..8562dd82bd63 100644
@@ -1,8 +1,8 @@
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
+#include <time.h>
  #include <asm/arch/nexell.h>
  #include <asm/arch/reset.h>
  #include <asm/arch/clk.h>
drivers/i2c/ocores_i2c.c +0 -1
index fff85118d0de..cf714d22ee46 100644
@@ -12,7 +12,6 @@
   * Andreas Larsson <[email protected]>
   */
 
-#include <common.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
  #include <clk.h>
drivers/i2c/omap24xx_i2c.c +0 -1
index 6fc9d1eba9d1..ebe472e20cdb 100644
@@ -38,7 +38,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/qup_i2c.c +0 -1
index 5ae3cccd4acd..26707d63980e 100644
@@ -9,7 +9,6 @@
 
  #include <init.h>
  #include <env.h>
-#include <common.h>
  #include <log.h>
  #include <dm/device_compat.h>
  #include <linux/delay.h>
drivers/i2c/rcar_i2c.c +0 -1
index ff9a2d80dda1..f0f9b2afacfb 100644
@@ -11,7 +11,6 @@
   *   Kuninori Morimoto <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/rcar_iic.c +0 -1
index f0e50914c68d..2aa0f5fbfae4 100644
@@ -9,7 +9,6 @@
   * Copyright (C) 2011, 2013 Nobuhiro Iwamatsu <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/rk_i2c.c +0 -1
index 9927af94a80b..fa167268ae71 100644
@@ -6,7 +6,6 @@
   * Peter, Software Engineering, <[email protected]>.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <errno.h>
drivers/i2c/s3c24x0_i2c.c +1 -1
index 505e20bc61c8..72d2ab0f73d8 100644
@@ -4,10 +4,10 @@
   * David Mueller, ELSOFT AG, [email protected]
   */
 
-#include <common.h>
  #include <errno.h>
  #include <dm.h>
  #include <fdtdec.h>
+#include <time.h>
  #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
  #include <log.h>
  #include <asm/arch/clk.h>
drivers/i2c/sandbox_i2c.c +0 -1
index c99e6de93327..74bb5e933973 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2014 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/sh_i2c.c +0 -1
index 3335d9482a29..ab816101dea0 100644
@@ -7,7 +7,6 @@
   * Please see doc/driver-model/i2c-howto.rst for instructions.
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <log.h>
  #include <asm/global_data.h>
drivers/i2c/soft_i2c.c +1 -1
index ed8ba47de450..1f2afc65e8b3 100644
@@ -15,7 +15,7 @@
   * Please see doc/driver-model/i2c-howto.rst for instructions.
   */
 
-#include <common.h>
+#include <config.h>
  #if defined(CONFIG_AT91FAMILY)
  #include <asm/io.h>
  #include <asm/arch/hardware.h>
drivers/i2c/stm32f7_i2c.c +0 -1
index f42e08a64180..3f51b1dd1db4 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_I2C
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
drivers/i2c/sun6i_p2wi.c +0 -1
index b8e07a533ca9..c927c0edf250 100644
@@ -15,7 +15,6 @@
 
  #include <axp_pmic.h>
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/sun8i_rsb.c +0 -1
index f36f2c7afacf..2197f1805663 100644
@@ -10,7 +10,6 @@
 
  #include <axp_pmic.h>
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/tegra186_bpmp_i2c.c +0 -1
index 588f6bdcc4b4..d30eb5231229 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/i2c/tegra_i2c.c +0 -1
index 57d77d56ea55..3c324bd26635 100644
@@ -5,7 +5,6 @@
   *  NVIDIA Corporation <www.nvidia.com>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/i2c/xilinx_xiic.c +0 -1
index 72199a62b2d7..056024e350fb 100644
@@ -9,7 +9,6 @@
   * Copyright (c) 2009-2010 Intel Corporation
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <i2c.h>
author
#53 lore raw

PATCH 36/81 input: 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: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>

---
 drivers/input/apple_spi_kbd.c   | 1 -
 drivers/input/button_kbd.c      | 1 -
 drivers/input/cros_ec_keyb.c    | 1 -
 drivers/input/i8042.c           | 1 -
 drivers/input/input.c           | 2 +-
 drivers/input/key_matrix.c      | 1 -
 drivers/input/keyboard-uclass.c | 1 -
 drivers/input/tegra-kbc.c       | 2 +-
 8 files changed, 2 insertions(+), 8 deletions(-)
drivers/input/apple_spi_kbd.c +0 -1
index 7cf12f453a30..5b30cec2dcb9 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Mark Kettenis <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <keyboard.h>
 #include <spi.h>
drivers/input/button_kbd.c +0 -1
index c73d3b18be9c..0a917ac8b995 100644
@@ -4,7 +4,6 @@
  */
 
 #include <stdlib.h>
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <input.h>
drivers/input/cros_ec_keyb.c +0 -1
index c4853463739b..0917ee20fedc 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2012 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <cros_ec.h>
 #include <dm.h>
 #include <errno.h>
drivers/input/i8042.c +0 -1
index e6070ca01529..9bf21053cf06 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_KEYBOARD
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
drivers/input/input.c +1 -1
index 8a6506e7c6f9..3f146fb07e6d 100644
@@ -6,13 +6,13 @@
  * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, [email protected]
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
 #include <stdio_dev.h>
+#include <time.h>
 #include <input.h>
 #ifdef CONFIG_DM_KEYBOARD
 #include <keyboard.h>
drivers/input/key_matrix.c +0 -1
index e2fb2e170787..2e631660c880 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <key_matrix.h>
 #include <log.h>
drivers/input/keyboard-uclass.c +0 -1
index aefc8e825e20..df9ee8f7d659 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_KEYBOARD
 
-#include <common.h>
 #include <dm.h>
 #include <keyboard.h>
 #include <log.h>
drivers/input/tegra-kbc.c +1 -1
index d4741a76663e..fc13975d4f0f 100644
@@ -4,7 +4,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <input.h>
@@ -13,6 +12,7 @@
 #include <log.h>
 #include <stdio_dev.h>
 #include <tegra-kbc.h>
+#include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
Signature · 1 line
2.34.1
author
#54 lore raw

PATCH 37/81 iommu: 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: Mark Kettenis <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Caleb Connolly <[email protected]>

---
 drivers/iommu/apple_dart.c    | 1 -
 drivers/iommu/iommu-uclass.c  | 1 -
 drivers/iommu/sandbox_iommu.c | 1 -
 3 files changed, 3 deletions(-)
drivers/iommu/apple_dart.c +0 -1
index 6ecd84303bc2..9327dea1e3bb 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Mark Kettenis <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <iommu.h>
drivers/iommu/iommu-uclass.c +0 -1
index dff3239cccb1..bb31cd519d25 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_IOMMU
 
-#include <common.h>
 #include <dm.h>
 #include <iommu.h>
 #include <malloc.h>
drivers/iommu/sandbox_iommu.c +0 -1
index 6ceb7fd5ec37..e37976f86f02 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Mark Kettenis <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <iommu.h>
 #include <lmb.h>
Signature · 1 line
2.34.1
author
#55 lore raw

PATCH 38/81 led: 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: 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: Ivan Vozvakhov <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Christian Gmeiner <[email protected]>

---
 drivers/led/led-uclass.c  | 1 -
 drivers/led/led_bcm6328.c | 1 -
 drivers/led/led_bcm6358.c | 1 -
 drivers/led/led_bcm6753.c | 1 -
 drivers/led/led_bcm6858.c | 1 -
 drivers/led/led_cortina.c | 1 -
 drivers/led/led_gpio.c    | 1 -
 drivers/led/led_pwm.c     | 1 -
 8 files changed, 8 deletions(-)
drivers/led/led-uclass.c +0 -1
index a4be56fc2584..f37bf6a1550c 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_LED
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_bcm6328.c +0 -1
index f59a92fb1fda..dcc5741195cd 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_bcm6358.c +0 -1
index 25aa3994d0e4..b1373ab74267 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_bcm6753.c +0 -1
index 2466d9301166..170caf7bdca7 100644
@@ -6,7 +6,6 @@
  * drivers/led/led_bcm6858.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_bcm6858.c +0 -1
index 397dc0d8693d..a6efdcf64053 100644
@@ -7,7 +7,6 @@
  * drivers/led/led_bcm6358.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_cortina.c +0 -1
index bcbe78d632ac..2d3ad323d33b 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_gpio.c +0 -1
index 71421de628c9..ce22fb49f2a9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
drivers/led/led_pwm.c +0 -1
index ae6de3087ab7..15dd836509b8 100644
@@ -4,7 +4,6 @@
  * Author: Ivan Vozvakhov <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
Signature · 1 line
2.34.1
author
#56 lore raw

PATCH 39/81 mailbox: 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: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Matthias Schiffer <[email protected]>

---
 drivers/mailbox/apple-mbox.c        | 1 -
 drivers/mailbox/k3-sec-proxy.c      | 1 -
 drivers/mailbox/mailbox-uclass.c    | 1 -
 drivers/mailbox/sandbox-mbox-test.c | 1 -
 drivers/mailbox/sandbox-mbox.c      | 1 -
 drivers/mailbox/stm32-ipcc.c        | 1 -
 drivers/mailbox/tegra-hsp.c         | 1 -
 drivers/mailbox/zynqmp-ipi.c        | 1 -
 8 files changed, 8 deletions(-)
drivers/mailbox/apple-mbox.c +0 -1
index 30c8e2f03fa8..2ee49734f406 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Mark Kettenis <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
 #include <asm/io.h>
drivers/mailbox/k3-sec-proxy.c +0 -1
index 05f6b1795d64..5eafe46fd4d0 100644
@@ -6,7 +6,6 @@
  *	Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <asm/global_data.h>
drivers/mailbox/mailbox-uclass.c +0 -1
index 85ba8c5fd99d..4bf4987ce0a1 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MAILBOX
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mailbox.h>
drivers/mailbox/sandbox-mbox-test.c +0 -1
index ffd4674d1ef7..a2cfde2f62d6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mailbox.h>
 #include <malloc.h>
drivers/mailbox/sandbox-mbox.c +0 -1
index 87d38de0cb61..87e06e492fe7 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mailbox-uclass.h>
drivers/mailbox/stm32-ipcc.c +0 -1
index 046e1a8aca6e..dda108735fce 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MAILBOX
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/mailbox/tegra-hsp.c +0 -1
index 08c51c40f141..bfd4d7cdf2e4 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
drivers/mailbox/zynqmp-ipi.c +0 -1
index eb86847bbe23..4df69734ed95 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018-2019 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/system.h>
Signature · 1 line
2.34.1
author
#57 lore raw

PATCH 40/81 memory: 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: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Christophe Kerello <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Nishanth Menon <[email protected]>

---
 drivers/memory/stm32-fmc2-ebi.c | 1 -
 drivers/memory/ti-aemif.c       | 1 -
 drivers/memory/ti-gpmc.c        | 1 -
 3 files changed, 3 deletions(-)
drivers/memory/stm32-fmc2-ebi.c +0 -1
index 1ce960778586..713dead5c572 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_NOP
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <reset.h>
drivers/memory/ti-aemif.c +0 -1
index 41325eb0f941..29131f536a66 100644
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <asm/arch/hardware.h>
 #include <asm/ti-common/ti-aemif.h>
 
drivers/memory/ti-gpmc.c +0 -1
index 8877b8f4385b..8af48e199a74 100644
@@ -7,7 +7,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
Signature · 1 line
2.34.1
author
#58 lore raw

PATCH 41/81 misc: 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: Sean Anderson <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: "Michał Barnaś" <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: "Milan P. Stanić" <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Michel Alex <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Igor Opaniuk <[email protected]>
Cc: Clement Faure <[email protected]>
Cc: Mathieu Othacehe <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Tim Lunn <[email protected]>
Cc: "Marek Behún" <[email protected]>
Cc: Stefan Roese <[email protected]>

---
 drivers/misc/altera_sysid.c      | 1 -
 drivers/misc/atsha204a-i2c.c     | 1 -
 drivers/misc/cbmem_console.c     | 2 +-
 drivers/misc/cros_ec.c           | 2 +-
 drivers/misc/cros_ec_i2c.c       | 1 -
 drivers/misc/cros_ec_lpc.c       | 2 +-
 drivers/misc/cros_ec_sandbox.c   | 2 +-
 drivers/misc/cros_ec_spi.c       | 2 +-
 drivers/misc/ds4510.c            | 1 -
 drivers/misc/esm_pmic.c          | 1 -
 drivers/misc/fs_loader.c         | 1 -
 drivers/misc/fsl_devdis.c        | 2 +-
 drivers/misc/fsl_ifc.c           | 2 +-
 drivers/misc/fsl_iim.c           | 1 -
 drivers/misc/fsl_portals.c       | 2 +-
 drivers/misc/fsl_sec_mon.c       | 2 +-
 drivers/misc/gdsys_ioep.c        | 1 -
 drivers/misc/gdsys_rxaui_ctrl.c  | 1 -
 drivers/misc/gdsys_soc.c         | 1 -
 drivers/misc/gpio_led.c          | 1 -
 drivers/misc/i2c_eeprom.c        | 1 -
 drivers/misc/i2c_eeprom_emul.c   | 1 -
 drivers/misc/ihs_fpga.c          | 1 -
 drivers/misc/imx8/fuse.c         | 1 -
 drivers/misc/imx8/scu.c          | 1 -
 drivers/misc/imx8/scu_api.c      | 1 -
 drivers/misc/imx_ele/ele_api.c   | 1 -
 drivers/misc/imx_ele/ele_mu.c    | 1 -
 drivers/misc/imx_ele/fuse.c      | 1 -
 drivers/misc/irq-uclass.c        | 1 -
 drivers/misc/irq_sandbox.c       | 1 -
 drivers/misc/irq_sandbox_test.c  | 1 -
 drivers/misc/jz4780_efuse.c      | 1 -
 drivers/misc/k3_avs.c            | 1 -
 drivers/misc/k3_esm.c            | 1 -
 drivers/misc/ls2_sfp.c           | 1 -
 drivers/misc/microchip_flexcom.c | 1 -
 drivers/misc/misc-uclass.c       | 1 -
 drivers/misc/misc_sandbox.c      | 1 -
 drivers/misc/mpc83xx_serdes.c    | 1 -
 drivers/misc/mxc_ocotp.c         | 1 -
 drivers/misc/mxs_ocotp.c         | 1 -
 drivers/misc/npcm_host_intf.c    | 1 -
 drivers/misc/npcm_otp.c          | 1 -
 drivers/misc/nuvoton_nct6102d.c  | 1 -
 drivers/misc/nvmem.c             | 1 -
 drivers/misc/p2sb-uclass.c       | 1 -
 drivers/misc/p2sb_emul.c         | 1 -
 drivers/misc/p2sb_sandbox.c      | 1 -
 drivers/misc/pca9551_led.c       | 1 -
 drivers/misc/pwrseq-uclass.c     | 1 -
 drivers/misc/qfw.c               | 1 -
 drivers/misc/rockchip-efuse.c    | 1 -
 drivers/misc/rockchip-otp.c      | 1 -
 drivers/misc/sandbox_adder.c     | 1 -
 drivers/misc/sifive-otp.c        | 1 -
 drivers/misc/sl28cpld.c          | 1 -
 drivers/misc/smsc_lpc47m.c       | 1 -
 drivers/misc/smsc_sio1007.c      | 1 -
 drivers/misc/spltest_sandbox.c   | 1 -
 drivers/misc/status_led.c        | 2 +-
 drivers/misc/stm32_rcc.c         | 1 -
 drivers/misc/stm32mp_fuse.c      | 1 -
 drivers/misc/swap_case.c         | 1 -
 drivers/misc/syscon_sandbox.c    | 1 -
 drivers/misc/tegra186_bpmp.c     | 1 -
 drivers/misc/tegra_car.c         | 1 -
 drivers/misc/test_drv.c          | 1 -
 drivers/misc/turris_omnia_mcu.c  | 1 -
 drivers/misc/usb251xb.c          | 1 -
 drivers/misc/vexpress_config.c   | 1 -
 drivers/misc/winbond_w83627.c    | 1 -
 72 files changed, 10 insertions(+), 72 deletions(-)
drivers/misc/altera_sysid.c +0 -1
index 878df12771c8..21e64fa3e6fe 100644
@@ -4,7 +4,6 @@
  * Scott McNutt <[email protected]>
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
drivers/misc/atsha204a-i2c.c +0 -1
index 707daa90bdba..3b9046da880c 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <errno.h>
drivers/misc/cbmem_console.c +1 -1
index ba3a599c4a51..8220addd579b 100644
@@ -3,8 +3,8 @@
  * Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.
  */
 
-#include <common.h>
 #include <console.h>
+#include <linux/string.h>
 #include <asm/cb_sysinfo.h>
 
 void cbmemc_putc(struct stdio_dev *dev, char data)
drivers/misc/cros_ec.c +1 -1
index 9c1e6a5e3e70..fabe4964a334 100644
@@ -15,7 +15,6 @@
 
 #define LOG_CATEGORY UCLASS_CROS_EC
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
@@ -24,6 +23,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <time.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
drivers/misc/cros_ec_i2c.c +0 -1
index a1b78a3045dd..5516aa8b3ffd 100644
@@ -12,7 +12,6 @@
  * KBC.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <cros_ec.h>
drivers/misc/cros_ec_lpc.c +1 -1
index 1a8a81349c3a..e2a3226362a9 100644
@@ -12,11 +12,11 @@
  * KBC.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <command.h>
 #include <cros_ec.h>
 #include <log.h>
+#include <time.h>
 #include <asm/io.h>
 
 #ifdef DEBUG_TRACE
drivers/misc/cros_ec_sandbox.c +1 -1
index 1201535f4af4..1cad51d474de 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_CROS_EC
 
-#include <common.h>
 #include <cros_ec.h>
 #include <dm.h>
 #include <ec_commands.h>
@@ -17,6 +16,7 @@
 #include <os.h>
 #include <u-boot/sha256.h>
 #include <spi.h>
+#include <time.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
 #include <asm/sdl.h>
drivers/misc/cros_ec_spi.c +1 -1
index 591ff30df89b..e86791c03a73 100644
@@ -12,12 +12,12 @@
  * KBC.
  */
 
-#include <common.h>
 #include <cros_ec.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
 #include <spi.h>
+#include <time.h>
 
 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
 {
drivers/misc/ds4510.c +0 -1
index 9340596f2c63..302015e27938 100644
@@ -8,7 +8,6 @@
  * and 4 programmable non-volatile GPIO pins.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <command.h>
 #include <linux/delay.h>
drivers/misc/esm_pmic.c +0 -1
index a518f750611a..1963c8664a54 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <power/pmic.h>
drivers/misc/fs_loader.c +0 -1
index 1ffc199ba1e4..66803f4b9975 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
drivers/misc/fsl_devdis.c +1 -1
index 179053a298af..2c3d23480762 100644
@@ -3,7 +3,7 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  * Author: Zhuoyu Zhang <[email protected]>
  */
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <asm/arch-ls102xa/immap_ls102xa.h>
 #include <asm/arch-ls102xa/config.h>
drivers/misc/fsl_ifc.c +1 -1
index f165b8c36ba4..93f41da0f974 100644
@@ -4,7 +4,7 @@
  * Author: Dipen Dudhat <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_ifc.h>
 #include <part.h>
 
drivers/misc/fsl_iim.c +0 -1
index 85cc3c26b2ef..65468a68dbdf 100644
@@ -8,7 +8,6 @@
  * Martha Marx <[email protected]>
  */
 
-#include <common.h>
 #include <fuse.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/misc/fsl_portals.c +1 -1
index 6b831281e96f..e7c0df78b6b6 100644
@@ -4,7 +4,7 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
drivers/misc/fsl_sec_mon.c +1 -1
index 3597ee22242c..7518089e1e3e 100644
@@ -3,7 +3,7 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_sec_mon.h>
 #include <linux/delay.h>
 
drivers/misc/gdsys_ioep.c +0 -1
index 145cfa23c6c5..d4916a277b84 100644
@@ -11,7 +11,6 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/misc/gdsys_rxaui_ctrl.c +0 -1
index 8f5cbe420f87..d4cd63ca9f89 100644
@@ -7,7 +7,6 @@
  * Mario Six,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <misc.h>
drivers/misc/gdsys_soc.c +0 -1
index 27e7dc483276..0adbb8df3c2c 100644
@@ -4,7 +4,6 @@
  * Mario Six,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/lists.h>
drivers/misc/gpio_led.c +0 -1
index 30679f80cf15..e63689967a7a 100644
@@ -5,7 +5,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <common.h>
 #include <status_led.h>
 #include <asm/gpio.h>
 
drivers/misc/i2c_eeprom.c +0 -1
index 9cb375a99ab8..10f0173d8050 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C_EEPROM
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
drivers/misc/i2c_eeprom_emul.c +0 -1
index 6f32087ede56..3ad2e047ee3e 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2014 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/misc/ihs_fpga.c +0 -1
index a0fece985d85..fe196b608198 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <regmap.h>
drivers/misc/imx8/fuse.c +0 -1
index b81f73f283f4..90d251a44058 100644
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <console.h>
 #include <errno.h>
 #include <fuse.h>
drivers/misc/imx8/scu.c +0 -1
index 798800aa7583..bbd7e24200bd 100644
@@ -5,7 +5,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/misc/imx8/scu_api.c +0 -1
index 6e2c678e614f..591d71b096a8 100644
@@ -5,7 +5,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <malloc.h>
 #include <asm/global_data.h>
drivers/misc/imx_ele/ele_api.c +0 -1
index e0ec22c7abf9..3745504637b3 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <hang.h>
 #include <malloc.h>
 #include <asm/io.h>
drivers/misc/imx_ele/ele_mu.c +0 -1
index 053cdcf0fe07..0cf81f33ba5e 100644
@@ -3,7 +3,6 @@
  * Copyright 2020-2022 NXP
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/lists.h>
drivers/misc/imx_ele/fuse.c +0 -1
index 4e4dcb42cdd9..d12539c8aac0 100644
@@ -3,7 +3,6 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
 #include <console.h>
 #include <errno.h>
 #include <fuse.h>
drivers/misc/irq-uclass.c +0 -1
index 7b79ed2df466..79eb7c200dc2 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_IRQ
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <irq.h>
drivers/misc/irq_sandbox.c +0 -1
index 8b5573fcaddd..5d176f63b5cf 100644
@@ -5,7 +5,6 @@
  * Copyright 2019 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 #include <irq.h>
 #include <acpi/acpi_device.h>
drivers/misc/irq_sandbox_test.c +0 -1
index 95c45c24edb8..3669b863bec1 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 #include <irq.h>
 #include <asm/irq.h>
drivers/misc/jz4780_efuse.c +0 -1
index 1fba3271db61..5c92de26ec5f 100644
@@ -6,7 +6,6 @@
  * Author: Alex Smith <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/unaligned.h>
 #include <errno.h>
drivers/misc/k3_avs.c +0 -1
index 0d29eff1ac08..87471cc3b16a 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
drivers/misc/k3_esm.c +0 -1
index f6ac18bdc757..fa3d65656220 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
drivers/misc/ls2_sfp.c +0 -1
index 5351c7ed34fd..8cb6e999bed1 100644
@@ -12,7 +12,6 @@
  */
 
 #define LOG_CATEGORY UCLASS_MISC
-#include <common.h>
 #include <clk.h>
 #include <fuse.h>
 #include <misc.h>
drivers/misc/microchip_flexcom.c +0 -1
index e0a6f2d38801..c5ddecac7551 100644
@@ -4,7 +4,6 @@
  * Author: Eugen Hristev <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/misc/misc-uclass.c +0 -1
index cfe9d562fa0d..1389e146b612 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <misc.h>
drivers/misc/misc_sandbox.c +0 -1
index 31cde2dbac07..2473419df2a3 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <misc.h>
 
drivers/misc/mpc83xx_serdes.c +0 -1
index 93c87e998c4f..cf9aa9b35b33 100644
@@ -9,7 +9,6 @@
  * Copyright (C) 2008 MontaVista Software, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
drivers/misc/mxc_ocotp.c +0 -1
index 8ee18f29d9be..d1674caa138c 100644
@@ -11,7 +11,6 @@
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fuse.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/misc/mxs_ocotp.c +0 -1
index facc720c8ef2..6432c62dac34 100644
@@ -11,7 +11,6 @@
  *       etc.) which would make common driver an ifdef nightmare :-(
  */
 
-#include <common.h>
 #include <fuse.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/misc/npcm_host_intf.c +0 -1
index 79f57f57d89c..58bab888c3c8 100644
@@ -4,7 +4,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <syscon.h>
drivers/misc/npcm_otp.c +0 -1
index 08029724c040..adb6135291dc 100644
@@ -4,7 +4,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fuse.h>
drivers/misc/nuvoton_nct6102d.c +0 -1
index daf5019d0170..a3ca037d25f7 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <nuvoton_nct6102d.h>
 #include <asm/io.h>
 #include <asm/pnp_def.h>
drivers/misc/nvmem.c +0 -1
index 5a2bd1f9f72c..d0cb0a35b816 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2022 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <i2c_eeprom.h>
 #include <linker_lists.h>
 #include <misc.h>
drivers/misc/p2sb-uclass.c +0 -1
index f24857a1515e..016c80733782 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_P2SB
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/misc/p2sb_emul.c +0 -1
index 51f87161d5b7..3dac6bd82e30 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <log.h>
drivers/misc/p2sb_sandbox.c +0 -1
index d80bca22a6b2..9f3cd14958b8 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_P2SB
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <p2sb.h>
drivers/misc/pca9551_led.c +0 -1
index cdc4390f8155..040d0d5cf48c 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <errno.h>
 #include <i2c.h>
 #include <status_led.h>
drivers/misc/pwrseq-uclass.c +0 -1
index a0f24e1bf3a9..bddc3c336857 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_PWRSEQ
 
-#include <common.h>
 #include <dm.h>
 #include <pwrseq.h>
 
drivers/misc/qfw.c +0 -1
index db98619fdf53..0e002ac25f48 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_QFW
 
-#include <common.h>
 #include <acpi/acpi_table.h>
 #include <bootdev.h>
 #include <bootflow.h>
drivers/misc/rockchip-efuse.c +0 -1
index 2f96b79ea407..c7430147718a 100644
@@ -6,7 +6,6 @@
  * Written by Philipp Tomsich <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <command.h>
 #include <display_options.h>
drivers/misc/rockchip-otp.c +0 -1
index 4f757083a1b6..2123c31038fc 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <command.h>
 #include <display_options.h>
drivers/misc/sandbox_adder.c +0 -1
index 3ea33e46e9f2..de1c63575820 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <misc.h>
drivers/misc/sifive-otp.c +0 -1
index a624a358802c..7fbcd3799e52 100644
@@ -17,7 +17,6 @@
  * Right now first 1KiB is used to store only serial number.
  */
 
-#include <common.h>
 #include <dm/device.h>
 #include <dm/read.h>
 #include <linux/bitops.h>
drivers/misc/sl28cpld.c +0 -1
index 01ef1c6178fc..1c61b005af3a 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Michael Walle <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 
drivers/misc/smsc_lpc47m.c +0 -1
index bda064f1365b..1b15907b0933 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2014, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/pnp_def.h>
 
drivers/misc/smsc_sio1007.c +0 -1
index 3b7b1c8bcf2a..6d99aa61d91d 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <smsc_sio1007.h>
drivers/misc/spltest_sandbox.c +0 -1
index 6b9701a06aee..3011a2292713 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 
drivers/misc/status_led.c +1 -1
index a6e9c03a02ec..3b1baa4f840b 100644
@@ -4,8 +4,8 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <status_led.h>
+#include <linux/types.h>
 
 /*
  * The purpose of this code is to signal the operational status of a
drivers/misc/stm32_rcc.c +0 -1
index c1e5428a6b81..0dd827e1dd0e 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_NOP
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/misc/stm32mp_fuse.c +0 -1
index 9fd6c367dc61..34be6c28c192 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <command.h>
 #include <fuse.h>
 #include <misc.h>
drivers/misc/swap_case.c +0 -1
index ee5c12bd0a42..d4a5620c62c1 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/misc/syscon_sandbox.c +0 -1
index d5cef188d742..6adb4154c25b 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <syscon.h>
drivers/misc/tegra186_bpmp.c +0 -1
index fecac9c4d902..a1585b818677 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/misc/tegra_car.c +0 -1
index 0ddbb3c619b2..497ec18564cc 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/lists.h>
drivers/misc/test_drv.c +0 -1
index 927618256f0a..9b1e357a1397 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2014 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/test.h>
 #include <asm/global_data.h>
drivers/misc/turris_omnia_mcu.c +0 -1
index 6b2f17c0002d..be77acbd1652 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2024 Marek Behún <[email protected]>
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <dm/lists.h>
drivers/misc/usb251xb.c +0 -1
index 92e92ba5e624..daba2c2d6835 100644
@@ -10,7 +10,6 @@
  * https://patchwork.kernel.org/patch/9257715/
  */
 
-#include <common.h>
 #include <asm/gpio.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/misc/vexpress_config.c +0 -1
index 99aad1412ae7..e7655ceff74c 100644
@@ -4,7 +4,6 @@
  * Author: Liviu Dudau <[email protected]>
  *
  */
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <dm/read.h>
drivers/misc/winbond_w83627.c +0 -1
index 3838b3f74f40..87b9043e65c4 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/pnp_def.h>
 
Signature · 1 line
2.34.1
Reviewed-by on v1 41/81
#59 lore raw

Re: [PATCH 41/81] misc: 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 1,008 lines

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: "Michał Barnaś" <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: "Milan P. Stanić" <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Michel Alex <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Igor Opaniuk <[email protected]>
Cc: Clement Faure <[email protected]>
Cc: Mathieu Othacehe <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Tim Lunn <[email protected]>
Cc: "Marek Behún" <[email protected]>
Cc: Stefan Roese <[email protected]>

---
  drivers/misc/altera_sysid.c      | 1 -
  drivers/misc/atsha204a-i2c.c     | 1 -
  drivers/misc/cbmem_console.c     | 2 +-
  drivers/misc/cros_ec.c           | 2 +-
  drivers/misc/cros_ec_i2c.c       | 1 -
  drivers/misc/cros_ec_lpc.c       | 2 +-
  drivers/misc/cros_ec_sandbox.c   | 2 +-
  drivers/misc/cros_ec_spi.c       | 2 +-
  drivers/misc/ds4510.c            | 1 -
  drivers/misc/esm_pmic.c          | 1 -
  drivers/misc/fs_loader.c         | 1 -
  drivers/misc/fsl_devdis.c        | 2 +-
  drivers/misc/fsl_ifc.c           | 2 +-
  drivers/misc/fsl_iim.c           | 1 -
  drivers/misc/fsl_portals.c       | 2 +-
  drivers/misc/fsl_sec_mon.c       | 2 +-
  drivers/misc/gdsys_ioep.c        | 1 -
  drivers/misc/gdsys_rxaui_ctrl.c  | 1 -
  drivers/misc/gdsys_soc.c         | 1 -
  drivers/misc/gpio_led.c          | 1 -
  drivers/misc/i2c_eeprom.c        | 1 -
  drivers/misc/i2c_eeprom_emul.c   | 1 -
  drivers/misc/ihs_fpga.c          | 1 -
  drivers/misc/imx8/fuse.c         | 1 -
  drivers/misc/imx8/scu.c          | 1 -
  drivers/misc/imx8/scu_api.c      | 1 -
  drivers/misc/imx_ele/ele_api.c   | 1 -
  drivers/misc/imx_ele/ele_mu.c    | 1 -
  drivers/misc/imx_ele/fuse.c      | 1 -
  drivers/misc/irq-uclass.c        | 1 -
  drivers/misc/irq_sandbox.c       | 1 -
  drivers/misc/irq_sandbox_test.c  | 1 -
  drivers/misc/jz4780_efuse.c      | 1 -
  drivers/misc/k3_avs.c            | 1 -
  drivers/misc/k3_esm.c            | 1 -
  drivers/misc/ls2_sfp.c           | 1 -
  drivers/misc/microchip_flexcom.c | 1 -
  drivers/misc/misc-uclass.c       | 1 -
  drivers/misc/misc_sandbox.c      | 1 -
  drivers/misc/mpc83xx_serdes.c    | 1 -
  drivers/misc/mxc_ocotp.c         | 1 -
  drivers/misc/mxs_ocotp.c         | 1 -
  drivers/misc/npcm_host_intf.c    | 1 -
  drivers/misc/npcm_otp.c          | 1 -
  drivers/misc/nuvoton_nct6102d.c  | 1 -
  drivers/misc/nvmem.c             | 1 -
  drivers/misc/p2sb-uclass.c       | 1 -
  drivers/misc/p2sb_emul.c         | 1 -
  drivers/misc/p2sb_sandbox.c      | 1 -
  drivers/misc/pca9551_led.c       | 1 -
  drivers/misc/pwrseq-uclass.c     | 1 -
  drivers/misc/qfw.c               | 1 -
  drivers/misc/rockchip-efuse.c    | 1 -
  drivers/misc/rockchip-otp.c      | 1 -
  drivers/misc/sandbox_adder.c     | 1 -
  drivers/misc/sifive-otp.c        | 1 -
  drivers/misc/sl28cpld.c          | 1 -
  drivers/misc/smsc_lpc47m.c       | 1 -
  drivers/misc/smsc_sio1007.c      | 1 -
  drivers/misc/spltest_sandbox.c   | 1 -
  drivers/misc/status_led.c        | 2 +-
  drivers/misc/stm32_rcc.c         | 1 -
  drivers/misc/stm32mp_fuse.c      | 1 -
  drivers/misc/swap_case.c         | 1 -
  drivers/misc/syscon_sandbox.c    | 1 -
  drivers/misc/tegra186_bpmp.c     | 1 -
  drivers/misc/tegra_car.c         | 1 -
  drivers/misc/test_drv.c          | 1 -
  drivers/misc/turris_omnia_mcu.c  | 1 -
  drivers/misc/usb251xb.c          | 1 -
  drivers/misc/vexpress_config.c   | 1 -
  drivers/misc/winbond_w83627.c    | 1 -
  72 files changed, 10 insertions(+), 72 deletions(-)
drivers/misc/altera_sysid.c +0 -1
index 878df12771c8..21e64fa3e6fe 100644
@@ -4,7 +4,6 @@
   * Scott McNutt <[email protected]>
   */
 
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <errno.h>
drivers/misc/atsha204a-i2c.c +0 -1
index 707daa90bdba..3b9046da880c 100644
@@ -10,7 +10,6 @@
   * published by the Free Software Foundation.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <errno.h>
drivers/misc/cbmem_console.c +1 -1
index ba3a599c4a51..8220addd579b 100644
@@ -3,8 +3,8 @@
   * Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.
   */
 
-#include <common.h>
  #include <console.h>
+#include <linux/string.h>
  #include <asm/cb_sysinfo.h>
 
  void cbmemc_putc(struct stdio_dev *dev, char data)
drivers/misc/cros_ec.c +1 -1
index 9c1e6a5e3e70..fabe4964a334 100644
@@ -15,7 +15,6 @@
 
  #define LOG_CATEGORY UCLASS_CROS_EC
 
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <i2c.h>
@@ -24,6 +23,7 @@
  #include <log.h>
  #include <malloc.h>
  #include <spi.h>
+#include <time.h>
  #include <linux/delay.h>
  #include <linux/errno.h>
  #include <asm/io.h>
drivers/misc/cros_ec_i2c.c +0 -1
index a1b78a3045dd..5516aa8b3ffd 100644
@@ -12,7 +12,6 @@
   * KBC.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <cros_ec.h>
drivers/misc/cros_ec_lpc.c +1 -1
index 1a8a81349c3a..e2a3226362a9 100644
@@ -12,11 +12,11 @@
   * KBC.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <command.h>
  #include <cros_ec.h>
  #include <log.h>
+#include <time.h>
  #include <asm/io.h>
 
  #ifdef DEBUG_TRACE
drivers/misc/cros_ec_sandbox.c +1 -1
index 1201535f4af4..1cad51d474de 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_CROS_EC
 
-#include <common.h>
  #include <cros_ec.h>
  #include <dm.h>
  #include <ec_commands.h>
@@ -17,6 +16,7 @@
  #include <os.h>
  #include <u-boot/sha256.h>
  #include <spi.h>
+#include <time.h>
  #include <asm/malloc.h>
  #include <asm/state.h>
  #include <asm/sdl.h>
drivers/misc/cros_ec_spi.c +1 -1
index 591ff30df89b..e86791c03a73 100644
@@ -12,12 +12,12 @@
   * KBC.
   */
 
-#include <common.h>
  #include <cros_ec.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
  #include <spi.h>
+#include <time.h>
 
  int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
  {
drivers/misc/ds4510.c +0 -1
index 9340596f2c63..302015e27938 100644
@@ -8,7 +8,6 @@
   * and 4 programmable non-volatile GPIO pins.
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <command.h>
  #include <linux/delay.h>
drivers/misc/esm_pmic.c +0 -1
index a518f750611a..1963c8664a54 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <power/pmic.h>
drivers/misc/fs_loader.c +0 -1
index 1ffc199ba1e4..66803f4b9975 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER
 
-#include <common.h>
  #include <dm.h>
  #include <env.h>
  #include <errno.h>
drivers/misc/fsl_devdis.c +1 -1
index 179053a298af..2c3d23480762 100644
@@ -3,7 +3,7 @@
   * Copyright 2015 Freescale Semiconductor, Inc.
   * Author: Zhuoyu Zhang <[email protected]>
   */
-#include <common.h>
+#include <config.h>
  #include <asm/io.h>
  #include <asm/arch-ls102xa/immap_ls102xa.h>
  #include <asm/arch-ls102xa/config.h>
drivers/misc/fsl_ifc.c +1 -1
index f165b8c36ba4..93f41da0f974 100644
@@ -4,7 +4,7 @@
   * Author: Dipen Dudhat <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <fsl_ifc.h>
  #include <part.h>
 
drivers/misc/fsl_iim.c +0 -1
index 85cc3c26b2ef..65468a68dbdf 100644
@@ -8,7 +8,6 @@
   * Martha Marx <[email protected]>
   */
 
-#include <common.h>
  #include <fuse.h>
  #include <linux/delay.h>
  #include <linux/errno.h>
drivers/misc/fsl_portals.c +1 -1
index 6b831281e96f..e7c0df78b6b6 100644
@@ -4,7 +4,7 @@
   * Copyright 2017 NXP
   */
 
-#include <common.h>
+#include <config.h>
  #include <log.h>
  #include <linux/libfdt.h>
  #include <fdt_support.h>
drivers/misc/fsl_sec_mon.c +1 -1
index 3597ee22242c..7518089e1e3e 100644
@@ -3,7 +3,7 @@
   * Copyright 2015 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
+#include <config.h>
  #include <fsl_sec_mon.h>
  #include <linux/delay.h>
 
drivers/misc/gdsys_ioep.c +0 -1
index 145cfa23c6c5..d4916a277b84 100644
@@ -11,7 +11,6 @@
   * SPDX-License-Identifier:	GPL-2.0+
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/misc/gdsys_rxaui_ctrl.c +0 -1
index 8f5cbe420f87..d4cd63ca9f89 100644
@@ -7,7 +7,6 @@
   * Mario Six,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <regmap.h>
  #include <misc.h>
drivers/misc/gdsys_soc.c +0 -1
index 27e7dc483276..0adbb8df3c2c 100644
@@ -4,7 +4,6 @@
   * Mario Six,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <dm/lists.h>
drivers/misc/gpio_led.c +0 -1
index 30679f80cf15..e63689967a7a 100644
@@ -5,7 +5,6 @@
   * Licensed under the GPL-2 or later.
   */
 
-#include <common.h>
  #include <status_led.h>
  #include <asm/gpio.h>
 
drivers/misc/i2c_eeprom.c +0 -1
index 9cb375a99ab8..10f0173d8050 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_I2C_EEPROM
 
-#include <common.h>
  #include <linux/delay.h>
  #include <linux/err.h>
  #include <linux/kernel.h>
drivers/misc/i2c_eeprom_emul.c +0 -1
index 6f32087ede56..3ad2e047ee3e 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2014 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/misc/ihs_fpga.c +0 -1
index a0fece985d85..fe196b608198 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <regmap.h>
drivers/misc/imx8/fuse.c +0 -1
index b81f73f283f4..90d251a44058 100644
@@ -3,7 +3,6 @@
   * Copyright 2019 NXP
   */
 
-#include <common.h>
  #include <console.h>
  #include <errno.h>
  #include <fuse.h>
drivers/misc/imx8/scu.c +0 -1
index 798800aa7583..bbd7e24200bd 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/misc/imx8/scu_api.c +0 -1
index 6e2c678e614f..591d71b096a8 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <hang.h>
  #include <malloc.h>
  #include <asm/global_data.h>
drivers/misc/imx_ele/ele_api.c +0 -1
index e0ec22c7abf9..3745504637b3 100644
@@ -4,7 +4,6 @@
   *
   */
 
-#include <common.h>
  #include <hang.h>
  #include <malloc.h>
  #include <asm/io.h>
drivers/misc/imx_ele/ele_mu.c +0 -1
index 053cdcf0fe07..0cf81f33ba5e 100644
@@ -3,7 +3,6 @@
   * Copyright 2020-2022 NXP
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <dm/lists.h>
drivers/misc/imx_ele/fuse.c +0 -1
index 4e4dcb42cdd9..d12539c8aac0 100644
@@ -3,7 +3,6 @@
   * Copyright 2020 NXP
   */
 
-#include <common.h>
  #include <console.h>
  #include <errno.h>
  #include <fuse.h>
drivers/misc/irq-uclass.c +0 -1
index 7b79ed2df466..79eb7c200dc2 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_IRQ
 
-#include <common.h>
  #include <dm.h>
  #include <dt-structs.h>
  #include <irq.h>
drivers/misc/irq_sandbox.c +0 -1
index 8b5573fcaddd..5d176f63b5cf 100644
@@ -5,7 +5,6 @@
   * Copyright 2019 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <irq.h>
  #include <acpi/acpi_device.h>
drivers/misc/irq_sandbox_test.c +0 -1
index 95c45c24edb8..3669b863bec1 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
  #include <irq.h>
  #include <asm/irq.h>
drivers/misc/jz4780_efuse.c +0 -1
index 1fba3271db61..5c92de26ec5f 100644
@@ -6,7 +6,6 @@
   * Author: Alex Smith <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/unaligned.h>
  #include <errno.h>
drivers/misc/k3_avs.c +0 -1
index 0d29eff1ac08..87471cc3b16a 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/io.h>
drivers/misc/k3_esm.c +0 -1
index f6ac18bdc757..fa3d65656220 100644
@@ -7,7 +7,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <asm/io.h>
drivers/misc/ls2_sfp.c +0 -1
index 5351c7ed34fd..8cb6e999bed1 100644
@@ -12,7 +12,6 @@
   */
 
  #define LOG_CATEGORY UCLASS_MISC
-#include <common.h>
  #include <clk.h>
  #include <fuse.h>
  #include <misc.h>
drivers/misc/microchip_flexcom.c +0 -1
index e0a6f2d38801..c5ddecac7551 100644
@@ -4,7 +4,6 @@
   * Author: Eugen Hristev <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/misc/misc-uclass.c +0 -1
index cfe9d562fa0d..1389e146b612 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <misc.h>
drivers/misc/misc_sandbox.c +0 -1
index 31cde2dbac07..2473419df2a3 100644
@@ -4,7 +4,6 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <misc.h>
 
drivers/misc/mpc83xx_serdes.c +0 -1
index 93c87e998c4f..cf9aa9b35b33 100644
@@ -9,7 +9,6 @@
   * Copyright (C) 2008 MontaVista Software, Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <mapmem.h>
drivers/misc/mxc_ocotp.c +0 -1
index 8ee18f29d9be..d1674caa138c 100644
@@ -11,7 +11,6 @@
   * Copyright (C) 2011 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <fuse.h>
  #include <linux/delay.h>
  #include <linux/errno.h>
drivers/misc/mxs_ocotp.c +0 -1
index facc720c8ef2..6432c62dac34 100644
@@ -11,7 +11,6 @@
   *       etc.) which would make common driver an ifdef nightmare :-(
   */
 
-#include <common.h>
  #include <fuse.h>
  #include <linux/delay.h>
  #include <linux/errno.h>
drivers/misc/npcm_host_intf.c +0 -1
index 79f57f57d89c..58bab888c3c8 100644
@@ -4,7 +4,6 @@
   * Copyright (c) 2022 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <regmap.h>
  #include <syscon.h>
drivers/misc/npcm_otp.c +0 -1
index 08029724c040..adb6135291dc 100644
@@ -4,7 +4,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fuse.h>
drivers/misc/nuvoton_nct6102d.c +0 -1
index daf5019d0170..a3ca037d25f7 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <nuvoton_nct6102d.h>
  #include <asm/io.h>
  #include <asm/pnp_def.h>
drivers/misc/nvmem.c +0 -1
index 5a2bd1f9f72c..d0cb0a35b816 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2022 Sean Anderson <[email protected]>
   */
 
-#include <common.h>
  #include <i2c_eeprom.h>
  #include <linker_lists.h>
  #include <misc.h>
drivers/misc/p2sb-uclass.c +0 -1
index f24857a1515e..016c80733782 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_P2SB
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/misc/p2sb_emul.c +0 -1
index 51f87161d5b7..3dac6bd82e30 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
  #include <axi.h>
  #include <dm.h>
  #include <log.h>
drivers/misc/p2sb_sandbox.c +0 -1
index d80bca22a6b2..9f3cd14958b8 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_P2SB
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <p2sb.h>
drivers/misc/pca9551_led.c +0 -1
index cdc4390f8155..040d0d5cf48c 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2015 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <errno.h>
  #include <i2c.h>
  #include <status_led.h>
drivers/misc/pwrseq-uclass.c +0 -1
index a0f24e1bf3a9..bddc3c336857 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_PWRSEQ
 
-#include <common.h>
  #include <dm.h>
  #include <pwrseq.h>
 
drivers/misc/qfw.c +0 -1
index db98619fdf53..0e002ac25f48 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_QFW
 
-#include <common.h>
  #include <acpi/acpi_table.h>
  #include <bootdev.h>
  #include <bootflow.h>
drivers/misc/rockchip-efuse.c +0 -1
index 2f96b79ea407..c7430147718a 100644
@@ -6,7 +6,6 @@
   * Written by Philipp Tomsich <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <command.h>
  #include <display_options.h>
drivers/misc/rockchip-otp.c +0 -1
index 4f757083a1b6..2123c31038fc 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <command.h>
  #include <display_options.h>
drivers/misc/sandbox_adder.c +0 -1
index 3ea33e46e9f2..de1c63575820 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
  #include <axi.h>
  #include <dm.h>
  #include <misc.h>
drivers/misc/sifive-otp.c +0 -1
index a624a358802c..7fbcd3799e52 100644
@@ -17,7 +17,6 @@
   * Right now first 1KiB is used to store only serial number.
   */
 
-#include <common.h>
  #include <dm/device.h>
  #include <dm/read.h>
  #include <linux/bitops.h>
drivers/misc/sl28cpld.c +0 -1
index 01ef1c6178fc..1c61b005af3a 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2021 Michael Walle <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
 
drivers/misc/smsc_lpc47m.c +0 -1
index bda064f1365b..1b15907b0933 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2014, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/pnp_def.h>
 
drivers/misc/smsc_sio1007.c +0 -1
index 3b7b1c8bcf2a..6d99aa61d91d 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <errno.h>
  #include <smsc_sio1007.h>
drivers/misc/spltest_sandbox.c +0 -1
index 6b9701a06aee..3011a2292713 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dt-structs.h>
 
drivers/misc/status_led.c +1 -1
index a6e9c03a02ec..3b1baa4f840b 100644
@@ -4,8 +4,8 @@
   * Wolfgang Denk, DENX Software Engineering, [email protected].
   */
 
-#include <common.h>
  #include <status_led.h>
+#include <linux/types.h>
 
  /*
   * The purpose of this code is to signal the operational status of a
drivers/misc/stm32_rcc.c +0 -1
index c1e5428a6b81..0dd827e1dd0e 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_NOP
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/misc/stm32mp_fuse.c +0 -1
index 9fd6c367dc61..34be6c28c192 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
   */
 
-#include <common.h>
  #include <command.h>
  #include <fuse.h>
  #include <misc.h>
drivers/misc/swap_case.c +0 -1
index ee5c12bd0a42..d4a5620c62c1 100644
@@ -6,7 +6,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/misc/syscon_sandbox.c +0 -1
index d5cef188d742..6adb4154c25b 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <syscon.h>
drivers/misc/tegra186_bpmp.c +0 -1
index fecac9c4d902..a1585b818677 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/misc/tegra_car.c +0 -1
index 0ddbb3c619b2..497ec18564cc 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <dm/lists.h>
drivers/misc/test_drv.c +0 -1
index 927618256f0a..9b1e357a1397 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2014 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/test.h>
  #include <asm/global_data.h>
drivers/misc/turris_omnia_mcu.c +0 -1
index 6b2f17c0002d..be77acbd1652 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2024 Marek Behún <[email protected]>
   */
 
-#include <common.h>
  #include <console.h>
  #include <dm.h>
  #include <dm/lists.h>
drivers/misc/usb251xb.c +0 -1
index 92e92ba5e624..daba2c2d6835 100644
@@ -10,7 +10,6 @@
   * https://patchwork.kernel.org/patch/9257715/
   */
 
-#include <common.h>
  #include <asm/gpio.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/misc/vexpress_config.c +0 -1
index 99aad1412ae7..e7655ceff74c 100644
@@ -4,7 +4,6 @@
   * Author: Liviu Dudau <[email protected]>
   *
   */
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <dm/read.h>
drivers/misc/winbond_w83627.c +0 -1
index 3838b3f74f40..87b9043e65c4 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/pnp_def.h>
 
author
#60 lore raw

PATCH 42/81 mmc: 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: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>
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: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Thomas Fitzsimmons <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[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: Tianrui Wei <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Michal Simek <[email protected]>

---
 drivers/mmc/am654_sdhci.c     | 1 -
 drivers/mmc/arm_pl180_mmci.c  | 1 -
 drivers/mmc/aspeed_sdhci.c    | 1 -
 drivers/mmc/atmel_sdhci.c     | 1 -
 drivers/mmc/bcm2835_sdhci.c   | 1 -
 drivers/mmc/bcm2835_sdhost.c  | 1 -
 drivers/mmc/bcmstb_sdhci.c    | 1 -
 drivers/mmc/ca_dw_mmc.c       | 1 -
 drivers/mmc/davinci_mmc.c     | 1 -
 drivers/mmc/dw_mmc.c          | 1 -
 drivers/mmc/exynos_dw_mmc.c   | 1 -
 drivers/mmc/f_sdh30.c         | 1 -
 drivers/mmc/fsl_esdhc.c       | 1 -
 drivers/mmc/fsl_esdhc_imx.c   | 1 -
 drivers/mmc/fsl_esdhc_spl.c   | 2 +-
 drivers/mmc/ftsdc010_mci.c    | 1 -
 drivers/mmc/gen_atmel_mci.c   | 2 +-
 drivers/mmc/hi6220_dw_mmc.c   | 1 -
 drivers/mmc/iproc_sdhci.c     | 1 -
 drivers/mmc/jz_mmc.c          | 1 -
 drivers/mmc/kona_sdhci.c      | 1 -
 drivers/mmc/meson_gx_mmc.c    | 1 -
 drivers/mmc/mmc-pwrseq.c      | 1 -
 drivers/mmc/mmc-uclass.c      | 1 -
 drivers/mmc/mmc.c             | 3 ++-
 drivers/mmc/mmc_boot.c        | 1 -
 drivers/mmc/mmc_bootdev.c     | 1 -
 drivers/mmc/mmc_legacy.c      | 1 -
 drivers/mmc/mmc_spi.c         | 1 -
 drivers/mmc/mmc_write.c       | 1 -
 drivers/mmc/msm_sdhci.c       | 1 -
 drivers/mmc/mtk-sd.c          | 1 -
 drivers/mmc/mv_sdhci.c        | 1 -
 drivers/mmc/mvebu_mmc.c       | 1 -
 drivers/mmc/mxcmmc.c          | 1 -
 drivers/mmc/mxsmmc.c          | 1 -
 drivers/mmc/nexell_dw_mmc.c   | 1 -
 drivers/mmc/npcm_sdhci.c      | 1 -
 drivers/mmc/omap_hsmmc.c      | 1 -
 drivers/mmc/owl_mmc.c         | 1 -
 drivers/mmc/pci_mmc.c         | 1 -
 drivers/mmc/piton_mmc.c       | 1 -
 drivers/mmc/rockchip_dw_mmc.c | 1 -
 drivers/mmc/rockchip_sdhci.c  | 1 -
 drivers/mmc/rpmb.c            | 1 -
 drivers/mmc/s5p_sdhci.c       | 1 -
 drivers/mmc/sandbox_mmc.c     | 1 -
 drivers/mmc/sdhci-adma.c      | 1 -
 drivers/mmc/sdhci-cadence.c   | 1 -
 drivers/mmc/sdhci.c           | 2 +-
 drivers/mmc/sh_mmcif.c        | 1 -
 drivers/mmc/snps_dw_mmc.c     | 1 -
 drivers/mmc/socfpga_dw_mmc.c  | 1 -
 drivers/mmc/sti_sdhci.c       | 1 -
 drivers/mmc/stm32_sdmmc2.c    | 1 -
 drivers/mmc/sunxi_mmc.c       | 1 -
 drivers/mmc/tangier_sdhci.c   | 1 -
 drivers/mmc/tegra_mmc.c       | 1 -
 drivers/mmc/tmio-common.c     | 1 -
 drivers/mmc/uniphier-sd.c     | 1 -
 drivers/mmc/xenon_sdhci.c     | 1 -
 drivers/mmc/zynq_sdhci.c      | 1 -
 62 files changed, 5 insertions(+), 62 deletions(-)
drivers/mmc/am654_sdhci.c +0 -1
index ffb461c2f6c1..48fac7a11b48 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/arm_pl180_mmci.c +0 -1
index cecc7ad783d0..f00b0ff0dc95 100644
@@ -11,7 +11,6 @@
 
 /* #define DEBUG */
 
-#include "common.h"
 #include <clk.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/aspeed_sdhci.c +0 -1
index c9626c6beb8f..87a6f66ebb37 100644
@@ -4,7 +4,6 @@
  * Eddie James <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/atmel_sdhci.c +0 -1
index d92bad97b71e..0b265196f025 100644
@@ -4,7 +4,6 @@
  *		      Wenyou.Yang <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhci.c +0 -1
index 5e48394fd0fb..598a51d914a9 100644
@@ -36,7 +36,6 @@
  * Inspired by sdhci-pci.c, by Pierre Ossman
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhost.c +0 -1
index 5c23c03d10d7..720127468d37 100644
@@ -30,7 +30,6 @@
  *  sdhci.c and sdhci-pci.c by Pierre Ossman
  */
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <asm/arch/msg.h>
drivers/mmc/bcmstb_sdhci.c +0 -1
index 49846adcf547..7bddbebb1622 100644
@@ -6,7 +6,6 @@
  * Author: Thomas Fitzsimmons <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mach/sdhci.h>
 #include <malloc.h>
drivers/mmc/ca_dw_mmc.c +0 -1
index a17ed8c11cbe..54a2ba4795e3 100644
@@ -4,7 +4,6 @@
  * Arthur Li <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/davinci_mmc.c +0 -1
index 3a3d23aec00a..5107fcd83625 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <mmc.h>
drivers/mmc/dw_mmc.c +0 -1
index e1036641452a..e6107c770fe3 100644
@@ -6,7 +6,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/exynos_dw_mmc.c +0 -1
index 2f849c43b129..a51f762988da 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/f_sdh30.c +0 -1
index 3d587a464d50..f47cf8485216 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Socionext, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/fsl_esdhc.c +0 -1
index 5ac1c6a0e9e1..0c66980b6218 100644
@@ -10,7 +10,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <errno.h>
drivers/mmc/fsl_esdhc_imx.c +0 -1
index 8b2ef9391f3e..a9b8d7dd67f3 100644
@@ -11,7 +11,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <clk.h>
 #include <cpu_func.h>
drivers/mmc/fsl_esdhc_spl.c +1 -1
index 6d7c0cff22a5..1a11258be4de 100644
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <mmc.h>
drivers/mmc/ftsdc010_mci.c +0 -1
index cabb747fbbdb..11e44264e47d 100644
@@ -9,7 +9,6 @@
  * Author: Rick Chen ([email protected])
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/gen_atmel_mci.c +1 -1
index 3ee99558f6f9..6a531fa09615 100644
@@ -8,7 +8,7 @@
  * Copyright (C) 2004-2006 Atmel Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <display_options.h>
 #include <dm.h>
drivers/mmc/hi6220_dw_mmc.c +0 -1
index dc0210402bd2..c68a9157bfcc 100644
@@ -4,7 +4,6 @@
  * peter.griffin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/iproc_sdhci.c +0 -1
index 11d86ad658f9..7ab74ff117a6 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
drivers/mmc/jz_mmc.c +0 -1
index 61e48ee0f62d..fc10bb256a4d 100644
@@ -6,7 +6,6 @@
  * Author: Paul Burton <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <asm/global_data.h>
drivers/mmc/kona_sdhci.c +0 -1
index 2bbe673b9129..83f141226325 100644
@@ -3,7 +3,6 @@
  * Copyright 2013 Broadcom Corporation.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
 #include <linux/delay.h>
drivers/mmc/meson_gx_mmc.c +0 -1
index 0825c0a2a838..5852b24c6d2a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Carlo Caione <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/mmc-pwrseq.c +0 -1
index 2539f61323d1..a1c9624a2225 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <pwrseq.h>
drivers/mmc/mmc-uclass.c +0 -1
index 0685b86af464..da6a39b7d990 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <bootdev.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/mmc.c +2 -1
index 4543d94c7205..b18dc331f785 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <command.h>
 #include <dm.h>
@@ -17,6 +16,7 @@
 #include <errno.h>
 #include <mmc.h>
 #include <part.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <linux/list.h>
+#include <linux/printk.h>
 #include <div64.h>
 #include "mmc_private.h"
 
drivers/mmc/mmc_boot.c +0 -1
index 0a74b1fb776a..367c957b5181 100644
@@ -4,7 +4,6 @@
  * Written by Amar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <mmc.h>
 #include "mmc_private.h"
drivers/mmc/mmc_bootdev.c +0 -1
index 55ecead2ddf9..5a1688b75d09 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <mmc.h>
drivers/mmc/mmc_legacy.c +0 -1
index a101ee43fde5..a87d2276c1b8 100644
@@ -5,7 +5,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/mmc_spi.c +0 -1
index bcea800e5f61..675e642efd08 100644
@@ -6,7 +6,6 @@
  *
  * Licensed under the GPL-2 or later.
  */
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mmc_write.c +0 -1
index a6f93380dd09..c023d15e52a8 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <part.h>
drivers/mmc/msm_sdhci.c +0 -1
index 5e9d66526a83..4ce0de6c47d8 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/mtk-sd.c +0 -1
index 4bd66ecf93ad..3a9258255a78 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <errno.h>
drivers/mmc/mv_sdhci.c +0 -1
index dbdd671c88bc..2da5334c21f1 100644
@@ -3,7 +3,6 @@
  * Marvell SD Host Controller Interface
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
drivers/mmc/mvebu_mmc.c +0 -1
index fea55c61ed7d..5af1953cd148 100644
@@ -7,7 +7,6 @@
  * Written-by: Maen Suleiman, Gerald Kerma
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mxcmmc.c +0 -1
index 0057273a2a76..1acea6f820b4 100644
@@ -17,7 +17,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <mmc.h>
 #include <part.h>
drivers/mmc/mxsmmc.c +0 -1
index 35a8e21058ed..95390a5be7e5 100644
@@ -20,7 +20,6 @@
  * Kyle Harris, Nexus Technologies, Inc. [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/nexell_dw_mmc.c +0 -1
index 2723e4887cf7..2e1ce54c7d50 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2019 Stefan Bosch <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <dwmmc.h>
drivers/mmc/npcm_sdhci.c +0 -1
index d63521d6855f..dff4732ea06f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sdhci.h>
 #include <clk.h>
drivers/mmc/omap_hsmmc.c +0 -1
index 118d9cd16fdb..2b7f9fc9a205 100644
@@ -23,7 +23,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/owl_mmc.c +0 -1
index e84171a661a7..bd4906f58e74 100644
@@ -11,7 +11,6 @@
  * channel, and those special bits used in this driver is picked from vendor
  * source exclusively for MMC/SD.
  */
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/pci_mmc.c +0 -1
index 4d163ccba041..d446c55f72b2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/piton_mmc.c +0 -1
index a330bbf8cbe2..fed1f8416088 100644
@@ -11,7 +11,6 @@
 
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
drivers/mmc/rockchip_dw_mmc.c +0 -1
index ad4529d6afa8..1a10b7057a47 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/mmc/rockchip_sdhci.c +0 -1
index c889c7bc9855..35667b86b50b 100644
@@ -5,7 +5,6 @@
  * Rockchip SD Host Controller Interface
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/ofnode.h>
drivers/mmc/rpmb.c +0 -1
index b68d98573c9a..0658ce22cf13 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <memalign.h>
 #include <mmc.h>
drivers/mmc/s5p_sdhci.c +0 -1
index 3b74feae68c7..80dbb38c9b36 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/sandbox_mmc.c +0 -1
index 0ba7940a4dbf..a24520f2e78c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/mmc/sdhci-adma.c +0 -1
index 283ba956deb9..fdb189d71a64 100644
@@ -3,7 +3,6 @@
  * SDHCI ADMA2 helper functions.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <sdhci.h>
 #include <malloc.h>
drivers/mmc/sdhci-cadence.c +0 -1
index 0570dbca00d7..07ec35a04635 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/mmc/sdhci.c +1 -1
index d06f2c02bb7b..560b7e889c77 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
@@ -15,6 +14,7 @@
 #include <malloc.h>
 #include <mmc.h>
 #include <sdhci.h>
+#include <time.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/mmc/sh_mmcif.c +0 -1
index 76dc1c68b821..06a30d5efb81 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <watchdog.h>
 #include <command.h>
drivers/mmc/snps_dw_mmc.c +0 -1
index 0134399e3934..9bdbe5070b1d 100644
@@ -7,7 +7,6 @@
  * Author: Eugeniy Paltsev <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/socfpga_dw_mmc.c +0 -1
index 387cb8b6b50a..f738019b8357 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2013 Altera Corporation <www.altera.com>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/secure_reg_helper.h>
drivers/mmc/sti_sdhci.c +0 -1
index 23a1dd43c9b2..91018b7e21af 100644
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/stm32_sdmmc2.c +0 -1
index 39ae79ba1293..9483fb57daf8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/sunxi_mmc.c +0 -1
index 714706d2411b..0b56d1405bee 100644
@@ -13,7 +13,6 @@
  * proper DM_MMC implementation at the end.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tangier_sdhci.c +0 -1
index 115642733243..ae65c310b685 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (c) 2017 Intel Corporation
  */
-#include <common.h>
 #include <dm.h>
 #include <dm/device.h>
 #include <linux/io.h>
drivers/mmc/tegra_mmc.c +0 -1
index c01fb3d01657..5ed7f01d3f36 100644
@@ -7,7 +7,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tmio-common.c +0 -1
index 719c4830bc30..0b396122b464 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
drivers/mmc/uniphier-sd.c +0 -1
index 8cde4308aaed..5b3650d52eea 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <fdtdec.h>
 #include <malloc.h>
drivers/mmc/xenon_sdhci.c +0 -1
index 27dbe0404e04..0e4902fab77c 100644
@@ -14,7 +14,6 @@
  * Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/zynq_sdhci.c +0 -1
index 935540d17194..898be5a0913a 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <linux/delay.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 42/81
#61 lore raw

Re: [PATCH 42/81] mmc: 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 873 lines

---
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>
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: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Thomas Fitzsimmons <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[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: Tianrui Wei <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Michal Simek <[email protected]>

---
 drivers/mmc/am654_sdhci.c     | 1 -
 drivers/mmc/arm_pl180_mmci.c  | 1 -
 drivers/mmc/aspeed_sdhci.c    | 1 -
 drivers/mmc/atmel_sdhci.c     | 1 -
 drivers/mmc/bcm2835_sdhci.c   | 1 -
 drivers/mmc/bcm2835_sdhost.c  | 1 -
 drivers/mmc/bcmstb_sdhci.c    | 1 -
 drivers/mmc/ca_dw_mmc.c       | 1 -
 drivers/mmc/davinci_mmc.c     | 1 -
 drivers/mmc/dw_mmc.c          | 1 -
 drivers/mmc/exynos_dw_mmc.c   | 1 -
 drivers/mmc/f_sdh30.c         | 1 -
 drivers/mmc/fsl_esdhc.c       | 1 -
 drivers/mmc/fsl_esdhc_imx.c   | 1 -
 drivers/mmc/fsl_esdhc_spl.c   | 2 +-
 drivers/mmc/ftsdc010_mci.c    | 1 -
 drivers/mmc/gen_atmel_mci.c   | 2 +-
 drivers/mmc/hi6220_dw_mmc.c   | 1 -
 drivers/mmc/iproc_sdhci.c     | 1 -
 drivers/mmc/jz_mmc.c          | 1 -
 drivers/mmc/kona_sdhci.c      | 1 -
 drivers/mmc/meson_gx_mmc.c    | 1 -
 drivers/mmc/mmc-pwrseq.c      | 1 -
 drivers/mmc/mmc-uclass.c      | 1 -
 drivers/mmc/mmc.c             | 3 ++-
 drivers/mmc/mmc_boot.c        | 1 -
 drivers/mmc/mmc_bootdev.c     | 1 -
 drivers/mmc/mmc_legacy.c      | 1 -
 drivers/mmc/mmc_spi.c         | 1 -
 drivers/mmc/mmc_write.c       | 1 -
 drivers/mmc/msm_sdhci.c       | 1 -
 drivers/mmc/mtk-sd.c          | 1 -
 drivers/mmc/mv_sdhci.c        | 1 -
 drivers/mmc/mvebu_mmc.c       | 1 -
 drivers/mmc/mxcmmc.c          | 1 -
 drivers/mmc/mxsmmc.c          | 1 -
 drivers/mmc/nexell_dw_mmc.c   | 1 -
 drivers/mmc/npcm_sdhci.c      | 1 -
 drivers/mmc/omap_hsmmc.c      | 1 -
 drivers/mmc/owl_mmc.c         | 1 -
 drivers/mmc/pci_mmc.c         | 1 -
 drivers/mmc/piton_mmc.c       | 1 -
 drivers/mmc/rockchip_dw_mmc.c | 1 -
 drivers/mmc/rockchip_sdhci.c  | 1 -
 drivers/mmc/rpmb.c            | 1 -
 drivers/mmc/s5p_sdhci.c       | 1 -
 drivers/mmc/sandbox_mmc.c     | 1 -
 drivers/mmc/sdhci-adma.c      | 1 -
 drivers/mmc/sdhci-cadence.c   | 1 -
 drivers/mmc/sdhci.c           | 2 +-
 drivers/mmc/sh_mmcif.c        | 1 -
 drivers/mmc/snps_dw_mmc.c     | 1 -
 drivers/mmc/socfpga_dw_mmc.c  | 1 -
 drivers/mmc/sti_sdhci.c       | 1 -
 drivers/mmc/stm32_sdmmc2.c    | 1 -
 drivers/mmc/sunxi_mmc.c       | 1 -
 drivers/mmc/tangier_sdhci.c   | 1 -
 drivers/mmc/tegra_mmc.c       | 1 -
 drivers/mmc/tmio-common.c     | 1 -
 drivers/mmc/uniphier-sd.c     | 1 -
 drivers/mmc/xenon_sdhci.c     | 1 -
 drivers/mmc/zynq_sdhci.c      | 1 -
 62 files changed, 5 insertions(+), 62 deletions(-)
drivers/mmc/am654_sdhci.c +0 -1
index ffb461c2f6c1..48fac7a11b48 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/arm_pl180_mmci.c +0 -1
index cecc7ad783d0..f00b0ff0dc95 100644
@@ -11,7 +11,6 @@
 
 /* #define DEBUG */
 
-#include "common.h"
 #include <clk.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/aspeed_sdhci.c +0 -1
index c9626c6beb8f..87a6f66ebb37 100644
@@ -4,7 +4,6 @@
  * Eddie James <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/atmel_sdhci.c +0 -1
index d92bad97b71e..0b265196f025 100644
@@ -4,7 +4,6 @@
  *                   Wenyou.Yang <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhci.c +0 -1
index 5e48394fd0fb..598a51d914a9 100644
@@ -36,7 +36,6 @@
  * Inspired by sdhci-pci.c, by Pierre Ossman
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhost.c +0 -1
index 5c23c03d10d7..720127468d37 100644
@@ -30,7 +30,6 @@
  *  sdhci.c and sdhci-pci.c by Pierre Ossman
  */
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <asm/arch/msg.h>
drivers/mmc/bcmstb_sdhci.c +0 -1
index 49846adcf547..7bddbebb1622 100644
@@ -6,7 +6,6 @@
  * Author: Thomas Fitzsimmons <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mach/sdhci.h>
 #include <malloc.h>
drivers/mmc/ca_dw_mmc.c +0 -1
index a17ed8c11cbe..54a2ba4795e3 100644
@@ -4,7 +4,6 @@
  * Arthur Li <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/davinci_mmc.c +0 -1
index 3a3d23aec00a..5107fcd83625 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <mmc.h>
drivers/mmc/dw_mmc.c +0 -1
index e1036641452a..e6107c770fe3 100644
@@ -6,7 +6,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/exynos_dw_mmc.c +0 -1
index 2f849c43b129..a51f762988da 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/f_sdh30.c +0 -1
index 3d587a464d50..f47cf8485216 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Socionext, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/fsl_esdhc.c +0 -1
index 5ac1c6a0e9e1..0c66980b6218 100644
@@ -10,7 +10,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <errno.h>
drivers/mmc/fsl_esdhc_imx.c +0 -1
index 8b2ef9391f3e..a9b8d7dd67f3 100644
@@ -11,7 +11,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <clk.h>
 #include <cpu_func.h>
drivers/mmc/fsl_esdhc_spl.c +1 -1
index 6d7c0cff22a5..1a11258be4de 100644
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <mmc.h>
drivers/mmc/ftsdc010_mci.c +0 -1
index cabb747fbbdb..11e44264e47d 100644
@@ -9,7 +9,6 @@
  * Author: Rick Chen ([email protected])
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/gen_atmel_mci.c +1 -1
index 3ee99558f6f9..6a531fa09615 100644
@@ -8,7 +8,7 @@
  * Copyright (C) 2004-2006 Atmel Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <display_options.h>
 #include <dm.h>
drivers/mmc/hi6220_dw_mmc.c +0 -1
index dc0210402bd2..c68a9157bfcc 100644
@@ -4,7 +4,6 @@
  * peter.griffin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/iproc_sdhci.c +0 -1
index 11d86ad658f9..7ab74ff117a6 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
drivers/mmc/jz_mmc.c +0 -1
index 61e48ee0f62d..fc10bb256a4d 100644
@@ -6,7 +6,6 @@
  * Author: Paul Burton <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <asm/global_data.h>
drivers/mmc/kona_sdhci.c +0 -1
index 2bbe673b9129..83f141226325 100644
@@ -3,7 +3,6 @@
  * Copyright 2013 Broadcom Corporation.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
 #include <linux/delay.h>
drivers/mmc/meson_gx_mmc.c +0 -1
index 0825c0a2a838..5852b24c6d2a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Carlo Caione <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/mmc-pwrseq.c +0 -1
index 2539f61323d1..a1c9624a2225 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <pwrseq.h>
drivers/mmc/mmc-uclass.c +0 -1
index 0685b86af464..da6a39b7d990 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <bootdev.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/mmc.c +2 -1
index 4543d94c7205..b18dc331f785 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <command.h>
 #include <dm.h>
@@ -17,6 +16,7 @@
 #include <errno.h>
 #include <mmc.h>
 #include <part.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <linux/list.h>
+#include <linux/printk.h>
 #include <div64.h>
 #include "mmc_private.h"
 
drivers/mmc/mmc_boot.c +0 -1
index 0a74b1fb776a..367c957b5181 100644
@@ -4,7 +4,6 @@
  * Written by Amar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <mmc.h>
 #include "mmc_private.h"
drivers/mmc/mmc_bootdev.c +0 -1
index 55ecead2ddf9..5a1688b75d09 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <mmc.h>
drivers/mmc/mmc_legacy.c +0 -1
index a101ee43fde5..a87d2276c1b8 100644
@@ -5,7 +5,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/mmc_spi.c +0 -1
index bcea800e5f61..675e642efd08 100644
@@ -6,7 +6,6 @@
  *
  * Licensed under the GPL-2 or later.
  */
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mmc_write.c +0 -1
index a6f93380dd09..c023d15e52a8 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <part.h>
drivers/mmc/msm_sdhci.c +0 -1
index 5e9d66526a83..4ce0de6c47d8 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/mtk-sd.c +0 -1
index 4bd66ecf93ad..3a9258255a78 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <errno.h>
drivers/mmc/mv_sdhci.c +0 -1
index dbdd671c88bc..2da5334c21f1 100644
@@ -3,7 +3,6 @@
  * Marvell SD Host Controller Interface
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
drivers/mmc/mvebu_mmc.c +0 -1
index fea55c61ed7d..5af1953cd148 100644
@@ -7,7 +7,6 @@
  * Written-by: Maen Suleiman, Gerald Kerma
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mxcmmc.c +0 -1
index 0057273a2a76..1acea6f820b4 100644
@@ -17,7 +17,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <mmc.h>
 #include <part.h>
drivers/mmc/mxsmmc.c +0 -1
index 35a8e21058ed..95390a5be7e5 100644
@@ -20,7 +20,6 @@
  * Kyle Harris, Nexus Technologies, Inc. [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/nexell_dw_mmc.c +0 -1
index 2723e4887cf7..2e1ce54c7d50 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2019 Stefan Bosch <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <dwmmc.h>
drivers/mmc/npcm_sdhci.c +0 -1
index d63521d6855f..dff4732ea06f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sdhci.h>
 #include <clk.h>
drivers/mmc/omap_hsmmc.c +0 -1
index 118d9cd16fdb..2b7f9fc9a205 100644
@@ -23,7 +23,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/owl_mmc.c +0 -1
index e84171a661a7..bd4906f58e74 100644
@@ -11,7 +11,6 @@
  * channel, and those special bits used in this driver is picked from vendor
  * source exclusively for MMC/SD.
  */
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/pci_mmc.c +0 -1
index 4d163ccba041..d446c55f72b2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/piton_mmc.c +0 -1
index a330bbf8cbe2..fed1f8416088 100644
@@ -11,7 +11,6 @@
 
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
drivers/mmc/rockchip_dw_mmc.c +0 -1
index ad4529d6afa8..1a10b7057a47 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/mmc/rockchip_sdhci.c +0 -1
index c889c7bc9855..35667b86b50b 100644
@@ -5,7 +5,6 @@
  * Rockchip SD Host Controller Interface
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/ofnode.h>
drivers/mmc/rpmb.c +0 -1
index b68d98573c9a..0658ce22cf13 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <memalign.h>
 #include <mmc.h>
drivers/mmc/s5p_sdhci.c +0 -1
index 3b74feae68c7..80dbb38c9b36 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/sandbox_mmc.c +0 -1
index 0ba7940a4dbf..a24520f2e78c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/mmc/sdhci-adma.c +0 -1
index 283ba956deb9..fdb189d71a64 100644
@@ -3,7 +3,6 @@
  * SDHCI ADMA2 helper functions.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <sdhci.h>
 #include <malloc.h>
drivers/mmc/sdhci-cadence.c +0 -1
index 0570dbca00d7..07ec35a04635 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/mmc/sdhci.c +1 -1
index d06f2c02bb7b..560b7e889c77 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
@@ -15,6 +14,7 @@
 #include <malloc.h>
 #include <mmc.h>
 #include <sdhci.h>
+#include <time.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/mmc/sh_mmcif.c +0 -1
index 76dc1c68b821..06a30d5efb81 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <watchdog.h>
 #include <command.h>
drivers/mmc/snps_dw_mmc.c +0 -1
index 0134399e3934..9bdbe5070b1d 100644
@@ -7,7 +7,6 @@
  * Author: Eugeniy Paltsev <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/socfpga_dw_mmc.c +0 -1
index 387cb8b6b50a..f738019b8357 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2013 Altera Corporation <www.altera.com>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/secure_reg_helper.h>
drivers/mmc/sti_sdhci.c +0 -1
index 23a1dd43c9b2..91018b7e21af 100644
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/stm32_sdmmc2.c +0 -1
index 39ae79ba1293..9483fb57daf8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/sunxi_mmc.c +0 -1
index 714706d2411b..0b56d1405bee 100644
@@ -13,7 +13,6 @@
  * proper DM_MMC implementation at the end.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tangier_sdhci.c +0 -1
index 115642733243..ae65c310b685 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (c) 2017 Intel Corporation
  */
-#include <common.h>
 #include <dm.h>
 #include <dm/device.h>
 #include <linux/io.h>
drivers/mmc/tegra_mmc.c +0 -1
index c01fb3d01657..5ed7f01d3f36 100644
@@ -7,7 +7,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tmio-common.c +0 -1
index 719c4830bc30..0b396122b464 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
drivers/mmc/uniphier-sd.c +0 -1
index 8cde4308aaed..5b3650d52eea 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <fdtdec.h>
 #include <malloc.h>
drivers/mmc/xenon_sdhci.c +0 -1
index 27dbe0404e04..0e4902fab77c 100644
@@ -14,7 +14,6 @@
  * Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/zynq_sdhci.c +0 -2
index 935540d17194..898be5a0913a 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <linux/delay.h>
--

2.34.1

Reviewed-by on v1 42/81
#62 lore raw

RE: [PATCH 42/81] mmc: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 23 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Thursday, May 2, 2024 10:31 AM
To: [email protected]
Cc: Peng Fan <[email protected]>; Jaehoon Chung <[email protected]>; Ryan Chen <[email protected]>; Chia-Wei Wang <[email protected]>; Aspeed BMC SW team <BMC- [email protected]>; Joel Stanley <[email protected]>; Matthias Brugger <[email protected]>; Peter Robinson <[email protected]>; Thomas Fitzsimmons <[email protected]>; Alex Nemirovsky <[email protected]>; Masahisa Kojima <[email protected]>; Neil Armstrong <[email protected]>; Simon Glass <[email protected]>; Caleb Connolly <[email protected]>; Sumit Garg <[email protected]>; Ryder Lee <[email protected]>; Weijie Gao <[email protected]>; Chunfeng Yun <[email protected]>; GSS_MTK_Uboot_upstream <[email protected]>; Tianrui Wei <[email protected]>; Philipp Tomsich <[email protected]>; Kever Yang <[email protected]>; Nobuhiro Iwamatsu <[email protected]>; Marek Vasut <[email protected]>; Eugeniy Paltsev <[email protected]>; Patrice Chotard <[email protected]>; Patrick Delaunay <[email protected]>; Thierry Reding <[email protected]>; Svyatoslav Ryhel <[email protected]>; Kunihiko Hayashi <[email protected]>; Dai Okamura <[email protected]>; Stefan Roese <[email protected]>; Michal Simek <[email protected]>
Subject: [PATCH 42/81] mmc: Remove <common.h> and add needed includes

Quoted 4 lines

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

Best Regards,
Jaehoon Chung

Quoted 874 lines

---
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>
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: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Thomas Fitzsimmons <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[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: Tianrui Wei <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Michal Simek <[email protected]>

---
 drivers/mmc/am654_sdhci.c     | 1 -
 drivers/mmc/arm_pl180_mmci.c  | 1 -
 drivers/mmc/aspeed_sdhci.c    | 1 -
 drivers/mmc/atmel_sdhci.c     | 1 -
 drivers/mmc/bcm2835_sdhci.c   | 1 -
 drivers/mmc/bcm2835_sdhost.c  | 1 -
 drivers/mmc/bcmstb_sdhci.c    | 1 -
 drivers/mmc/ca_dw_mmc.c       | 1 -
 drivers/mmc/davinci_mmc.c     | 1 -
 drivers/mmc/dw_mmc.c          | 1 -
 drivers/mmc/exynos_dw_mmc.c   | 1 -
 drivers/mmc/f_sdh30.c         | 1 -
 drivers/mmc/fsl_esdhc.c       | 1 -
 drivers/mmc/fsl_esdhc_imx.c   | 1 -
 drivers/mmc/fsl_esdhc_spl.c   | 2 +-
 drivers/mmc/ftsdc010_mci.c    | 1 -
 drivers/mmc/gen_atmel_mci.c   | 2 +-
 drivers/mmc/hi6220_dw_mmc.c   | 1 -
 drivers/mmc/iproc_sdhci.c     | 1 -
 drivers/mmc/jz_mmc.c          | 1 -
 drivers/mmc/kona_sdhci.c      | 1 -
 drivers/mmc/meson_gx_mmc.c    | 1 -
 drivers/mmc/mmc-pwrseq.c      | 1 -
 drivers/mmc/mmc-uclass.c      | 1 -
 drivers/mmc/mmc.c             | 3 ++-
 drivers/mmc/mmc_boot.c        | 1 -
 drivers/mmc/mmc_bootdev.c     | 1 -
 drivers/mmc/mmc_legacy.c      | 1 -
 drivers/mmc/mmc_spi.c         | 1 -
 drivers/mmc/mmc_write.c       | 1 -
 drivers/mmc/msm_sdhci.c       | 1 -
 drivers/mmc/mtk-sd.c          | 1 -
 drivers/mmc/mv_sdhci.c        | 1 -
 drivers/mmc/mvebu_mmc.c       | 1 -
 drivers/mmc/mxcmmc.c          | 1 -
 drivers/mmc/mxsmmc.c          | 1 -
 drivers/mmc/nexell_dw_mmc.c   | 1 -
 drivers/mmc/npcm_sdhci.c      | 1 -
 drivers/mmc/omap_hsmmc.c      | 1 -
 drivers/mmc/owl_mmc.c         | 1 -
 drivers/mmc/pci_mmc.c         | 1 -
 drivers/mmc/piton_mmc.c       | 1 -
 drivers/mmc/rockchip_dw_mmc.c | 1 -
 drivers/mmc/rockchip_sdhci.c  | 1 -
 drivers/mmc/rpmb.c            | 1 -
 drivers/mmc/s5p_sdhci.c       | 1 -
 drivers/mmc/sandbox_mmc.c     | 1 -
 drivers/mmc/sdhci-adma.c      | 1 -
 drivers/mmc/sdhci-cadence.c   | 1 -
 drivers/mmc/sdhci.c           | 2 +-
 drivers/mmc/sh_mmcif.c        | 1 -
 drivers/mmc/snps_dw_mmc.c     | 1 -
 drivers/mmc/socfpga_dw_mmc.c  | 1 -
 drivers/mmc/sti_sdhci.c       | 1 -
 drivers/mmc/stm32_sdmmc2.c    | 1 -
 drivers/mmc/sunxi_mmc.c       | 1 -
 drivers/mmc/tangier_sdhci.c   | 1 -
 drivers/mmc/tegra_mmc.c       | 1 -
 drivers/mmc/tmio-common.c     | 1 -
 drivers/mmc/uniphier-sd.c     | 1 -
 drivers/mmc/xenon_sdhci.c     | 1 -
 drivers/mmc/zynq_sdhci.c      | 1 -
 62 files changed, 5 insertions(+), 62 deletions(-)
drivers/mmc/am654_sdhci.c +0 -1
index ffb461c2f6c1..48fac7a11b48 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/arm_pl180_mmci.c +0 -1
index cecc7ad783d0..f00b0ff0dc95 100644
@@ -11,7 +11,6 @@
 
 /* #define DEBUG */
 
-#include "common.h"
 #include <clk.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/aspeed_sdhci.c +0 -1
index c9626c6beb8f..87a6f66ebb37 100644
@@ -4,7 +4,6 @@
  * Eddie James <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/atmel_sdhci.c +0 -1
index d92bad97b71e..0b265196f025 100644
@@ -4,7 +4,6 @@
  *		      Wenyou.Yang <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhci.c +0 -1
index 5e48394fd0fb..598a51d914a9 100644
@@ -36,7 +36,6 @@
  * Inspired by sdhci-pci.c, by Pierre Ossman
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/bcm2835_sdhost.c +0 -1
index 5c23c03d10d7..720127468d37 100644
@@ -30,7 +30,6 @@
  *  sdhci.c and sdhci-pci.c by Pierre Ossman
  */
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <asm/arch/msg.h>
drivers/mmc/bcmstb_sdhci.c +0 -1
index 49846adcf547..7bddbebb1622 100644
@@ -6,7 +6,6 @@
  * Author: Thomas Fitzsimmons <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mach/sdhci.h>
 #include <malloc.h>
drivers/mmc/ca_dw_mmc.c +0 -1
index a17ed8c11cbe..54a2ba4795e3 100644
@@ -4,7 +4,6 @@
  * Arthur Li <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/davinci_mmc.c +0 -1
index 3a3d23aec00a..5107fcd83625 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <mmc.h>
drivers/mmc/dw_mmc.c +0 -1
index e1036641452a..e6107c770fe3 100644
@@ -6,7 +6,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/exynos_dw_mmc.c +0 -1
index 2f849c43b129..a51f762988da 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/f_sdh30.c +0 -1
index 3d587a464d50..f47cf8485216 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Socionext, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/fsl_esdhc.c +0 -1
index 5ac1c6a0e9e1..0c66980b6218 100644
@@ -10,7 +10,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <errno.h>
drivers/mmc/fsl_esdhc_imx.c +0 -1
index 8b2ef9391f3e..a9b8d7dd67f3 100644
@@ -11,7 +11,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <clk.h>
 #include <cpu_func.h>
drivers/mmc/fsl_esdhc_spl.c +1 -1
index 6d7c0cff22a5..1a11258be4de 100644
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <mmc.h>
drivers/mmc/ftsdc010_mci.c +0 -1
index cabb747fbbdb..11e44264e47d 100644
@@ -9,7 +9,6 @@
  * Author: Rick Chen ([email protected])
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/gen_atmel_mci.c +1 -1
index 3ee99558f6f9..6a531fa09615 100644
@@ -8,7 +8,7 @@
  * Copyright (C) 2004-2006 Atmel Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <display_options.h>
 #include <dm.h>
drivers/mmc/hi6220_dw_mmc.c +0 -1
index dc0210402bd2..c68a9157bfcc 100644
@@ -4,7 +4,6 @@
  * peter.griffin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/iproc_sdhci.c +0 -1
index 11d86ad658f9..7ab74ff117a6 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
drivers/mmc/jz_mmc.c +0 -1
index 61e48ee0f62d..fc10bb256a4d 100644
@@ -6,7 +6,6 @@
  * Author: Paul Burton <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mmc.h>
 #include <asm/global_data.h>
drivers/mmc/kona_sdhci.c +0 -1
index 2bbe673b9129..83f141226325 100644
@@ -3,7 +3,6 @@
  * Copyright 2013 Broadcom Corporation.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
 #include <linux/delay.h>
drivers/mmc/meson_gx_mmc.c +0 -1
index 0825c0a2a838..5852b24c6d2a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Carlo Caione <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/mmc-pwrseq.c +0 -1
index 2539f61323d1..a1c9624a2225 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <pwrseq.h>
drivers/mmc/mmc-uclass.c +0 -1
index 0685b86af464..da6a39b7d990 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <bootdev.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/mmc.c +2 -1
index 4543d94c7205..b18dc331f785 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <command.h>
 #include <dm.h>
@@ -17,6 +16,7 @@
 #include <errno.h>
 #include <mmc.h>
 #include <part.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <linux/list.h>
+#include <linux/printk.h>
 #include <div64.h>
 #include "mmc_private.h"
 
drivers/mmc/mmc_boot.c +0 -1
index 0a74b1fb776a..367c957b5181 100644
@@ -4,7 +4,6 @@
  * Written by Amar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <mmc.h>
 #include "mmc_private.h"
drivers/mmc/mmc_bootdev.c +0 -1
index 55ecead2ddf9..5a1688b75d09 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <mmc.h>
drivers/mmc/mmc_legacy.c +0 -1
index a101ee43fde5..a87d2276c1b8 100644
@@ -5,7 +5,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/mmc_spi.c +0 -1
index bcea800e5f61..675e642efd08 100644
@@ -6,7 +6,6 @@
  *
  * Licensed under the GPL-2 or later.
  */
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mmc_write.c +0 -1
index a6f93380dd09..c023d15e52a8 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <part.h>
drivers/mmc/msm_sdhci.c +0 -1
index 5e9d66526a83..4ce0de6c47d8 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mmc/mtk-sd.c +0 -1
index 4bd66ecf93ad..3a9258255a78 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <mmc.h>
 #include <errno.h>
drivers/mmc/mv_sdhci.c +0 -1
index dbdd671c88bc..2da5334c21f1 100644
@@ -3,7 +3,6 @@
  * Marvell SD Host Controller Interface
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
drivers/mmc/mvebu_mmc.c +0 -1
index fea55c61ed7d..5af1953cd148 100644
@@ -7,7 +7,6 @@
  * Written-by: Maen Suleiman, Gerald Kerma
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/mxcmmc.c +0 -1
index 0057273a2a76..1acea6f820b4 100644
@@ -17,7 +17,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <mmc.h>
 #include <part.h>
drivers/mmc/mxsmmc.c +0 -1
index 35a8e21058ed..95390a5be7e5 100644
@@ -20,7 +20,6 @@
  * Kyle Harris, Nexus Technologies, Inc. [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
drivers/mmc/nexell_dw_mmc.c +0 -1
index 2723e4887cf7..2e1ce54c7d50 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2019 Stefan Bosch <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 #include <dwmmc.h>
drivers/mmc/npcm_sdhci.c +0 -1
index d63521d6855f..dff4732ea06f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <sdhci.h>
 #include <clk.h>
drivers/mmc/omap_hsmmc.c +0 -1
index 118d9cd16fdb..2b7f9fc9a205 100644
@@ -23,7 +23,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/owl_mmc.c +0 -1
index e84171a661a7..bd4906f58e74 100644
@@ -11,7 +11,6 @@
  * channel, and those special bits used in this driver is picked from vendor
  * source exclusively for MMC/SD.
  */
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/pci_mmc.c +0 -1
index 4d163ccba041..d446c55f72b2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/piton_mmc.c +0 -1
index a330bbf8cbe2..fed1f8416088 100644
@@ -11,7 +11,6 @@
 
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
drivers/mmc/rockchip_dw_mmc.c +0 -1
index ad4529d6afa8..1a10b7057a47 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/mmc/rockchip_sdhci.c +0 -1
index c889c7bc9855..35667b86b50b 100644
@@ -5,7 +5,6 @@
  * Rockchip SD Host Controller Interface
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/ofnode.h>
drivers/mmc/rpmb.c +0 -1
index b68d98573c9a..0658ce22cf13 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <memalign.h>
 #include <mmc.h>
drivers/mmc/s5p_sdhci.c +0 -1
index 3b74feae68c7..80dbb38c9b36 100644
@@ -4,7 +4,6 @@
  * Jaehoon Chung <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mmc/sandbox_mmc.c +0 -1
index 0ba7940a4dbf..a24520f2e78c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/mmc/sdhci-adma.c +0 -1
index 283ba956deb9..fdb189d71a64 100644
@@ -3,7 +3,6 @@
  * SDHCI ADMA2 helper functions.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <sdhci.h>
 #include <malloc.h>
drivers/mmc/sdhci-cadence.c +0 -1
index 0570dbca00d7..07ec35a04635 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/mmc/sdhci.c +1 -1
index d06f2c02bb7b..560b7e889c77 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
@@ -15,6 +14,7 @@
 #include <malloc.h>
 #include <mmc.h>
 #include <sdhci.h>
+#include <time.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/mmc/sh_mmcif.c +0 -1
index 76dc1c68b821..06a30d5efb81 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <watchdog.h>
 #include <command.h>
drivers/mmc/snps_dw_mmc.c +0 -1
index 0134399e3934..9bdbe5070b1d 100644
@@ -7,7 +7,6 @@
  * Author: Eugeniy Paltsev <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dwmmc.h>
drivers/mmc/socfpga_dw_mmc.c +0 -0
index 387cb8b6b50a..f738019b8357 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2013 Altera Corporation <https://protect2.fireeye.com/v1/url?k=02245fbf-5dbf6742-

0225d4f0-000babff317b-71f0095a955d1189&q=1&e=fd8eb5c0-5453-48c2-94b4- 6557ecb5f94f&u=http%3A%2F%2Fwww.altera.com%2F>
*/

drivers/mmc/socfpga_dw_mmc.c +0 -1
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/secure_reg_helper.h>
drivers/mmc/sti_sdhci.c +0 -1
index 23a1dd43c9b2..91018b7e21af 100644
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mmc.h>
drivers/mmc/stm32_sdmmc2.c +0 -1
index 39ae79ba1293..9483fb57daf8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mmc/sunxi_mmc.c +0 -1
index 714706d2411b..0b56d1405bee 100644
@@ -13,7 +13,6 @@
  * proper DM_MMC implementation at the end.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tangier_sdhci.c +0 -1
index 115642733243..ae65c310b685 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (c) 2017 Intel Corporation
  */
-#include <common.h>
 #include <dm.h>
 #include <dm/device.h>
 #include <linux/io.h>
drivers/mmc/tegra_mmc.c +0 -1
index c01fb3d01657..5ed7f01d3f36 100644
@@ -7,7 +7,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/mmc/tmio-common.c +0 -1
index 719c4830bc30..0b396122b464 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
drivers/mmc/uniphier-sd.c +0 -1
index 8cde4308aaed..5b3650d52eea 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <fdtdec.h>
 #include <malloc.h>
drivers/mmc/xenon_sdhci.c +0 -1
index 27dbe0404e04..0e4902fab77c 100644
@@ -14,7 +14,6 @@
  * Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
drivers/mmc/zynq_sdhci.c +0 -2
index 935540d17194..898be5a0913a 100644
@@ -7,7 +7,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <linux/delay.h>
--

2.34.1

Reviewed-by on v1 42/81
#63 lore raw

Re: [PATCH 42/81] mmc: 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.

Thanks,
- Kever

Quoted 870 lines

---
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>
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: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Thomas Fitzsimmons <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Masahisa Kojima <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[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: Tianrui Wei <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Michal Simek <[email protected]>

---
  drivers/mmc/am654_sdhci.c     | 1 -
  drivers/mmc/arm_pl180_mmci.c  | 1 -
  drivers/mmc/aspeed_sdhci.c    | 1 -
  drivers/mmc/atmel_sdhci.c     | 1 -
  drivers/mmc/bcm2835_sdhci.c   | 1 -
  drivers/mmc/bcm2835_sdhost.c  | 1 -
  drivers/mmc/bcmstb_sdhci.c    | 1 -
  drivers/mmc/ca_dw_mmc.c       | 1 -
  drivers/mmc/davinci_mmc.c     | 1 -
  drivers/mmc/dw_mmc.c          | 1 -
  drivers/mmc/exynos_dw_mmc.c   | 1 -
  drivers/mmc/f_sdh30.c         | 1 -
  drivers/mmc/fsl_esdhc.c       | 1 -
  drivers/mmc/fsl_esdhc_imx.c   | 1 -
  drivers/mmc/fsl_esdhc_spl.c   | 2 +-
  drivers/mmc/ftsdc010_mci.c    | 1 -
  drivers/mmc/gen_atmel_mci.c   | 2 +-
  drivers/mmc/hi6220_dw_mmc.c   | 1 -
  drivers/mmc/iproc_sdhci.c     | 1 -
  drivers/mmc/jz_mmc.c          | 1 -
  drivers/mmc/kona_sdhci.c      | 1 -
  drivers/mmc/meson_gx_mmc.c    | 1 -
  drivers/mmc/mmc-pwrseq.c      | 1 -
  drivers/mmc/mmc-uclass.c      | 1 -
  drivers/mmc/mmc.c             | 3 ++-
  drivers/mmc/mmc_boot.c        | 1 -
  drivers/mmc/mmc_bootdev.c     | 1 -
  drivers/mmc/mmc_legacy.c      | 1 -
  drivers/mmc/mmc_spi.c         | 1 -
  drivers/mmc/mmc_write.c       | 1 -
  drivers/mmc/msm_sdhci.c       | 1 -
  drivers/mmc/mtk-sd.c          | 1 -
  drivers/mmc/mv_sdhci.c        | 1 -
  drivers/mmc/mvebu_mmc.c       | 1 -
  drivers/mmc/mxcmmc.c          | 1 -
  drivers/mmc/mxsmmc.c          | 1 -
  drivers/mmc/nexell_dw_mmc.c   | 1 -
  drivers/mmc/npcm_sdhci.c      | 1 -
  drivers/mmc/omap_hsmmc.c      | 1 -
  drivers/mmc/owl_mmc.c         | 1 -
  drivers/mmc/pci_mmc.c         | 1 -
  drivers/mmc/piton_mmc.c       | 1 -
  drivers/mmc/rockchip_dw_mmc.c | 1 -
  drivers/mmc/rockchip_sdhci.c  | 1 -
  drivers/mmc/rpmb.c            | 1 -
  drivers/mmc/s5p_sdhci.c       | 1 -
  drivers/mmc/sandbox_mmc.c     | 1 -
  drivers/mmc/sdhci-adma.c      | 1 -
  drivers/mmc/sdhci-cadence.c   | 1 -
  drivers/mmc/sdhci.c           | 2 +-
  drivers/mmc/sh_mmcif.c        | 1 -
  drivers/mmc/snps_dw_mmc.c     | 1 -
  drivers/mmc/socfpga_dw_mmc.c  | 1 -
  drivers/mmc/sti_sdhci.c       | 1 -
  drivers/mmc/stm32_sdmmc2.c    | 1 -
  drivers/mmc/sunxi_mmc.c       | 1 -
  drivers/mmc/tangier_sdhci.c   | 1 -
  drivers/mmc/tegra_mmc.c       | 1 -
  drivers/mmc/tmio-common.c     | 1 -
  drivers/mmc/uniphier-sd.c     | 1 -
  drivers/mmc/xenon_sdhci.c     | 1 -
  drivers/mmc/zynq_sdhci.c      | 1 -
  62 files changed, 5 insertions(+), 62 deletions(-)
drivers/mmc/am654_sdhci.c +0 -1
index ffb461c2f6c1..48fac7a11b48 100644
@@ -6,7 +6,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <mmc.h>
drivers/mmc/arm_pl180_mmci.c +0 -1
index cecc7ad783d0..f00b0ff0dc95 100644
@@ -11,7 +11,6 @@
 
  /* #define DEBUG */
 
-#include "common.h"
  #include <clk.h>
  #include <errno.h>
  #include <log.h>
drivers/mmc/aspeed_sdhci.c +0 -1
index c9626c6beb8f..87a6f66ebb37 100644
@@ -4,7 +4,6 @@
   * Eddie James <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/mmc/atmel_sdhci.c +0 -1
index d92bad97b71e..0b265196f025 100644
@@ -4,7 +4,6 @@
   *		      Wenyou.Yang <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/mmc/bcm2835_sdhci.c +0 -1
index 5e48394fd0fb..598a51d914a9 100644
@@ -36,7 +36,6 @@
   * Inspired by sdhci-pci.c, by Pierre Ossman
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/bcm2835_sdhost.c +0 -1
index 5c23c03d10d7..720127468d37 100644
@@ -30,7 +30,6 @@
   *  sdhci.c and sdhci-pci.c by Pierre Ossman
   */
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <mmc.h>
  #include <asm/arch/msg.h>
drivers/mmc/bcmstb_sdhci.c +0 -1
index 49846adcf547..7bddbebb1622 100644
@@ -6,7 +6,6 @@
   * Author: Thomas Fitzsimmons <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mach/sdhci.h>
  #include <malloc.h>
drivers/mmc/ca_dw_mmc.c +0 -1
index a17ed8c11cbe..54a2ba4795e3 100644
@@ -4,7 +4,6 @@
   * Arthur Li <[email protected]>
   */
 
-#include <common.h>
  #include <dwmmc.h>
  #include <fdtdec.h>
  #include <asm/global_data.h>
drivers/mmc/davinci_mmc.c +0 -1
index 3a3d23aec00a..5107fcd83625 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <mmc.h>
drivers/mmc/dw_mmc.c +0 -1
index e1036641452a..e6107c770fe3 100644
@@ -6,7 +6,6 @@
   */
 
  #include <bouncebuf.h>
-#include <common.h>
  #include <cpu_func.h>
  #include <errno.h>
  #include <log.h>
drivers/mmc/exynos_dw_mmc.c +0 -1
index 2f849c43b129..a51f762988da 100644
@@ -4,7 +4,6 @@
   * Jaehoon Chung <[email protected]>
   */
 
-#include <common.h>
  #include <dwmmc.h>
  #include <fdtdec.h>
  #include <asm/global_data.h>
drivers/mmc/f_sdh30.c +0 -1
index 3d587a464d50..f47cf8485216 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Socionext, Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/mmc/fsl_esdhc.c +0 -1
index 5ac1c6a0e9e1..0c66980b6218 100644
@@ -10,7 +10,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <command.h>
  #include <cpu_func.h>
  #include <errno.h>
drivers/mmc/fsl_esdhc_imx.c +0 -1
index 8b2ef9391f3e..a9b8d7dd67f3 100644
@@ -11,7 +11,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <command.h>
  #include <clk.h>
  #include <cpu_func.h>
drivers/mmc/fsl_esdhc_spl.c +1 -1
index 6d7c0cff22a5..1a11258be4de 100644
@@ -3,7 +3,7 @@
   * Copyright 2013 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
+#include <config.h>
  #include <cpu_func.h>
  #include <hang.h>
  #include <mmc.h>
drivers/mmc/ftsdc010_mci.c +0 -1
index cabb747fbbdb..11e44264e47d 100644
@@ -9,7 +9,6 @@
   * Author: Rick Chen ([email protected])
   */
 
-#include <common.h>
  #include <clk.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/gen_atmel_mci.c +1 -1
index 3ee99558f6f9..6a531fa09615 100644
@@ -8,7 +8,7 @@
   * Copyright (C) 2004-2006 Atmel Corporation
   */
 
-#include <common.h>
+#include <config.h>
  #include <clk.h>
  #include <display_options.h>
  #include <dm.h>
drivers/mmc/hi6220_dw_mmc.c +0 -1
index dc0210402bd2..c68a9157bfcc 100644
@@ -4,7 +4,6 @@
   * peter.griffin <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dwmmc.h>
drivers/mmc/iproc_sdhci.c +0 -1
index 11d86ad658f9..7ab74ff117a6 100644
@@ -4,7 +4,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <malloc.h>
drivers/mmc/jz_mmc.c +0 -1
index 61e48ee0f62d..fc10bb256a4d 100644
@@ -6,7 +6,6 @@
   * Author: Paul Burton <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <mmc.h>
  #include <asm/global_data.h>
drivers/mmc/kona_sdhci.c +0 -1
index 2bbe673b9129..83f141226325 100644
@@ -3,7 +3,6 @@
   * Copyright 2013 Broadcom Corporation.
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <sdhci.h>
  #include <linux/delay.h>
drivers/mmc/meson_gx_mmc.c +0 -1
index 0825c0a2a838..5852b24c6d2a 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2016 Carlo Caione <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/mmc/mmc-pwrseq.c +0 -1
index 2539f61323d1..a1c9624a2225 100644
@@ -4,7 +4,6 @@
   * Jaehoon Chung <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <mmc.h>
  #include <pwrseq.h>
drivers/mmc/mmc-uclass.c +0 -1
index 0685b86af464..da6a39b7d990 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
  #include <bootdev.h>
  #include <log.h>
  #include <mmc.h>
drivers/mmc/mmc.c +2 -1
index 4543d94c7205..b18dc331f785 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <blk.h>
  #include <command.h>
  #include <dm.h>
@@ -17,6 +16,7 @@
  #include <errno.h>
  #include <mmc.h>
  #include <part.h>
+#include <time.h>
  #include <linux/bitops.h>
  #include <linux/delay.h>
  #include <linux/printk.h>
@@ -24,6 +24,7 @@
  #include <malloc.h>
  #include <memalign.h>
  #include <linux/list.h>
+#include <linux/printk.h>
  #include <div64.h>
  #include "mmc_private.h"
 
drivers/mmc/mmc_boot.c +0 -1
index 0a74b1fb776a..367c957b5181 100644
@@ -4,7 +4,6 @@
   * Written by Amar <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <mmc.h>
  #include "mmc_private.h"
drivers/mmc/mmc_bootdev.c +0 -1
index 55ecead2ddf9..5a1688b75d09 100644
@@ -6,7 +6,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <bootdev.h>
  #include <dm.h>
  #include <mmc.h>
drivers/mmc/mmc_legacy.c +0 -1
index a101ee43fde5..a87d2276c1b8 100644
@@ -5,7 +5,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <mmc.h>
drivers/mmc/mmc_spi.c +0 -1
index bcea800e5f61..675e642efd08 100644
@@ -6,7 +6,6 @@
   *
   * Licensed under the GPL-2 or later.
   */
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/mmc_write.c +0 -1
index a6f93380dd09..c023d15e52a8 100644
@@ -7,7 +7,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <blk.h>
  #include <dm.h>
  #include <part.h>
drivers/mmc/msm_sdhci.c +0 -1
index 5e9d66526a83..4ce0de6c47d8 100644
@@ -7,7 +7,6 @@
   * Based on Linux driver
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/mmc/mtk-sd.c +0 -1
index 4bd66ecf93ad..3a9258255a78 100644
@@ -7,7 +7,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <mmc.h>
  #include <errno.h>
drivers/mmc/mv_sdhci.c +0 -1
index dbdd671c88bc..2da5334c21f1 100644
@@ -3,7 +3,6 @@
   * Marvell SD Host Controller Interface
   */
 
-#include <common.h>
  #include <dm.h>
  #include <malloc.h>
  #include <sdhci.h>
drivers/mmc/mvebu_mmc.c +0 -1
index fea55c61ed7d..5af1953cd148 100644
@@ -7,7 +7,6 @@
   * Written-by: Maen Suleiman, Gerald Kerma
   */
 
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/mxcmmc.c +0 -1
index 0057273a2a76..1acea6f820b4 100644
@@ -17,7 +17,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <command.h>
  #include <mmc.h>
  #include <part.h>
drivers/mmc/mxsmmc.c +0 -1
index 35a8e21058ed..95390a5be7e5 100644
@@ -20,7 +20,6 @@
   * Kyle Harris, Nexus Technologies, Inc. [email protected]
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <mmc.h>
drivers/mmc/nexell_dw_mmc.c +0 -1
index 2723e4887cf7..2e1ce54c7d50 100644
@@ -6,7 +6,6 @@
   * (C) Copyright 2019 Stefan Bosch <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dt-structs.h>
  #include <dwmmc.h>
drivers/mmc/npcm_sdhci.c +0 -1
index d63521d6855f..dff4732ea06f 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Nuvoton Technology Corp.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <sdhci.h>
  #include <clk.h>
drivers/mmc/omap_hsmmc.c +0 -1
index 118d9cd16fdb..2b7f9fc9a205 100644
@@ -23,7 +23,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <cpu_func.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/owl_mmc.c +0 -1
index e84171a661a7..bd4906f58e74 100644
@@ -11,7 +11,6 @@
   * channel, and those special bits used in this driver is picked from vendor
   * source exclusively for MMC/SD.
   */
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/mmc/pci_mmc.c +0 -1
index 4d163ccba041..d446c55f72b2 100644
@@ -4,7 +4,6 @@
   * Copyright (C) 2014, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/mmc/piton_mmc.c +0 -1
index a330bbf8cbe2..fed1f8416088 100644
@@ -11,7 +11,6 @@
 
  #include <asm/gpio.h>
  #include <asm/io.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <errno.h>
drivers/mmc/rockchip_dw_mmc.c +0 -1
index ad4529d6afa8..1a10b7057a47 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2013 Google, Inc
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/mmc/rockchip_sdhci.c +0 -1
index c889c7bc9855..35667b86b50b 100644
@@ -5,7 +5,6 @@
   * Rockchip SD Host Controller Interface
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/ofnode.h>
drivers/mmc/rpmb.c +0 -1
index b68d98573c9a..0658ce22cf13 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <log.h>
  #include <memalign.h>
  #include <mmc.h>
drivers/mmc/s5p_sdhci.c +0 -1
index 3b74feae68c7..80dbb38c9b36 100644
@@ -4,7 +4,6 @@
   * Jaehoon Chung <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <malloc.h>
drivers/mmc/sandbox_mmc.c +0 -1
index 0ba7940a4dbf..a24520f2e78c 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <fdtdec.h>
drivers/mmc/sdhci-adma.c +0 -1
index 283ba956deb9..fdb189d71a64 100644
@@ -3,7 +3,6 @@
   * SDHCI ADMA2 helper functions.
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <sdhci.h>
  #include <malloc.h>
drivers/mmc/sdhci-cadence.c +0 -1
index 0570dbca00d7..07ec35a04635 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/global_data.h>
  #include <dm/device_compat.h>
drivers/mmc/sdhci.c +1 -1
index d06f2c02bb7b..560b7e889c77 100644
@@ -7,7 +7,6 @@
   * [email protected], 27-Jan-01.
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <dm.h>
  #include <errno.h>
@@ -15,6 +14,7 @@
  #include <malloc.h>
  #include <mmc.h>
  #include <sdhci.h>
+#include <time.h>
  #include <asm/cache.h>
  #include <linux/bitops.h>
  #include <linux/delay.h>
drivers/mmc/sh_mmcif.c +0 -1
index 76dc1c68b821..06a30d5efb81 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <log.h>
  #include <watchdog.h>
  #include <command.h>
drivers/mmc/snps_dw_mmc.c +0 -1
index 0134399e3934..9bdbe5070b1d 100644
@@ -7,7 +7,6 @@
   * Author: Eugeniy Paltsev <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dwmmc.h>
drivers/mmc/socfpga_dw_mmc.c +0 -1
index 387cb8b6b50a..f738019b8357 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2013 Altera Corporation <www.altera.com>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock_manager.h>
  #include <asm/arch/secure_reg_helper.h>
drivers/mmc/sti_sdhci.c +0 -1
index 23a1dd43c9b2..91018b7e21af 100644
@@ -4,7 +4,6 @@
   * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <mmc.h>
drivers/mmc/stm32_sdmmc2.c +0 -1
index 39ae79ba1293..9483fb57daf8 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_MMC
 
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/mmc/sunxi_mmc.c +0 -1
index 714706d2411b..0b56d1405bee 100644
@@ -13,7 +13,6 @@
   * proper DM_MMC implementation at the end.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/mmc/tangier_sdhci.c +0 -1
index 115642733243..ae65c310b685 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (c) 2017 Intel Corporation
   */
-#include <common.h>
  #include <dm.h>
  #include <dm/device.h>
  #include <linux/io.h>
drivers/mmc/tegra_mmc.c +0 -1
index c01fb3d01657..5ed7f01d3f36 100644
@@ -7,7 +7,6 @@
   */
 
  #include <bouncebuf.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/mmc/tmio-common.c +0 -1
index 719c4830bc30..0b396122b464 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <fdtdec.h>
drivers/mmc/uniphier-sd.c +0 -1
index 8cde4308aaed..5b3650d52eea 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <fdtdec.h>
  #include <malloc.h>
drivers/mmc/xenon_sdhci.c +0 -1
index 27dbe0404e04..0e4902fab77c 100644
@@ -14,7 +14,6 @@
   * Stefan Roese <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <asm/global_data.h>
drivers/mmc/zynq_sdhci.c +0 -1
index 935540d17194..898be5a0913a 100644
@@ -7,7 +7,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <linux/delay.h>
author
#64 lore raw

PATCH 43/81 mtd: 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: Stefan Roese <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Michael Trimarchi <[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: 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: Michal Simek <[email protected]>
Cc: Frieder Schrempf <[email protected]>
Cc: Abdellatif El Khlifi <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Sean Anderson <[email protected]>

---
 drivers/mtd/altera_qspi.c                       | 1 -
 drivers/mtd/cfi_flash.c                         | 3 ++-
 drivers/mtd/cfi_mtd.c                           | 1 -
 drivers/mtd/hbmc-am654.c                        | 1 -
 drivers/mtd/jedec_flash.c                       | 1 -
 drivers/mtd/mtd-uclass.c                        | 1 -
 drivers/mtd/mtd_uboot.c                         | 1 -
 drivers/mtd/mtdpart.c                           | 1 -
 drivers/mtd/nand/bbt.c                          | 1 -
 drivers/mtd/nand/core.c                         | 1 -
 drivers/mtd/nand/raw/am335x_spl_bch.c           | 2 +-
 drivers/mtd/nand/raw/arasan_nfc.c               | 1 -
 drivers/mtd/nand/raw/atmel_nand.c               | 2 +-
 drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c   | 1 -
 drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c    | 1 -
 drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c    | 1 -
 drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c   | 1 -
 drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c    | 1 -
 drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c    | 1 -
 drivers/mtd/nand/raw/brcmnand/brcmnand.c        | 1 -
 drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 -
 drivers/mtd/nand/raw/brcmnand/iproc_nand.c      | 1 -
 drivers/mtd/nand/raw/cortina_nand.c             | 1 -
 drivers/mtd/nand/raw/davinci_nand.c             | 2 +-
 drivers/mtd/nand/raw/denali.c                   | 1 -
 drivers/mtd/nand/raw/denali_spl.c               | 2 +-
 drivers/mtd/nand/raw/fsl_elbc_nand.c            | 2 +-
 drivers/mtd/nand/raw/fsl_elbc_spl.c             | 2 +-
 drivers/mtd/nand/raw/fsl_ifc_nand.c             | 2 +-
 drivers/mtd/nand/raw/fsl_ifc_spl.c              | 2 +-
 drivers/mtd/nand/raw/kirkwood_nand.c            | 1 -
 drivers/mtd/nand/raw/kmeter1_nand.c             | 2 +-
 drivers/mtd/nand/raw/lpc32xx_nand_mlc.c         | 2 +-
 drivers/mtd/nand/raw/lpc32xx_nand_slc.c         | 2 +-
 drivers/mtd/nand/raw/mxc_nand.c                 | 2 +-
 drivers/mtd/nand/raw/mxc_nand_spl.c             | 2 +-
 drivers/mtd/nand/raw/mxic_nand.c                | 1 -
 drivers/mtd/nand/raw/mxs_nand.c                 | 1 -
 drivers/mtd/nand/raw/mxs_nand_spl.c             | 1 -
 drivers/mtd/nand/raw/nand.c                     | 2 +-
 drivers/mtd/nand/raw/nand_base.c                | 1 -
 drivers/mtd/nand/raw/nand_bbt.c                 | 1 -
 drivers/mtd/nand/raw/nand_bch.c                 | 1 -
 drivers/mtd/nand/raw/nand_ecc.c                 | 1 -
 drivers/mtd/nand/raw/nand_ids.c                 | 1 -
 drivers/mtd/nand/raw/nand_spl_load.c            | 2 +-
 drivers/mtd/nand/raw/nand_spl_simple.c          | 2 +-
 drivers/mtd/nand/raw/nand_timings.c             | 1 -
 drivers/mtd/nand/raw/nand_util.c                | 1 -
 drivers/mtd/nand/raw/omap_elm.c                 | 1 -
 drivers/mtd/nand/raw/omap_gpmc.c                | 2 +-
 drivers/mtd/nand/raw/pxa3xx_nand.c              | 1 -
 drivers/mtd/nand/raw/rockchip_nfc.c             | 1 -
 drivers/mtd/nand/raw/stm32_fmc2_nand.c          | 1 -
 drivers/mtd/nand/raw/sunxi_nand.c               | 1 -
 drivers/mtd/nand/raw/sunxi_nand_spl.c           | 1 -
 drivers/mtd/nand/raw/tegra_nand.c               | 1 -
 drivers/mtd/nand/raw/vf610_nfc.c                | 2 +-
 drivers/mtd/nand/raw/zynq_nand.c                | 1 -
 drivers/mtd/nand/spi/core.c                     | 1 -
 drivers/mtd/nvmxip/nvmxip-uclass.c              | 1 -
 drivers/mtd/nvmxip/nvmxip.c                     | 1 -
 drivers/mtd/nvmxip/nvmxip_qspi.c                | 1 -
 drivers/mtd/onenand/onenand_base.c              | 1 -
 drivers/mtd/onenand/onenand_bbt.c               | 1 -
 drivers/mtd/onenand/onenand_spl.c               | 3 ++-
 drivers/mtd/onenand/onenand_uboot.c             | 2 +-
 drivers/mtd/onenand/samsung.c                   | 1 -
 drivers/mtd/renesas_rpc_hf.c                    | 1 -
 drivers/mtd/spi/fsl_espi_spl.c                  | 2 +-
 drivers/mtd/spi/sandbox.c                       | 1 -
 drivers/mtd/spi/sf-uclass.c                     | 1 -
 drivers/mtd/spi/sf_bootdev.c                    | 1 -
 drivers/mtd/spi/sf_dataflash.c                  | 1 -
 drivers/mtd/spi/sf_mtd.c                        | 1 -
 drivers/mtd/spi/sf_probe.c                      | 1 -
 drivers/mtd/spi/spi-nor-core.c                  | 1 -
 drivers/mtd/spi/spi-nor-ids.c                   | 1 -
 drivers/mtd/spi/spi-nor-tiny.c                  | 1 -
 drivers/mtd/stm32_flash.c                       | 2 +-
 drivers/mtd/ubispl/ubispl.c                     | 1 -
 81 files changed, 25 insertions(+), 81 deletions(-)
drivers/mtd/altera_qspi.c +0 -1
index d31391f36a47..c26615821c80 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Thomas Chou <[email protected]>
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <errno.h>
drivers/mtd/cfi_flash.c +2 -1
index 8ade7949a68e..a7826e81c177 100644
@@ -16,7 +16,7 @@
 /* The DEBUG define must be before common to enable debugging */
 /* #define DEBUG	*/
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <dm.h>
 #include <env.h>
@@ -26,6 +26,7 @@
 #include <init.h>
 #include <irq_func.h>
 #include <log.h>
+#include <time.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/io.h>
drivers/mtd/cfi_mtd.c +0 -1
index bf4473ba9e83..b14d4773931b 100644
@@ -5,7 +5,6 @@
  * Written by: Piotr Ziecik <[email protected]>
  */
 
-#include <common.h>
 #include <dma.h>
 #include <flash.h>
 #include <malloc.h>
drivers/mtd/hbmc-am654.c +0 -1
index 8161087b50c0..599beda30d55 100644
@@ -3,7 +3,6 @@
 // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
 // Author: Vignesh Raghavendra <[email protected]>
 
-#include <common.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <regmap.h>
drivers/mtd/jedec_flash.c +0 -1
index 859c7fd4ec24..a832f348f22d 100644
@@ -11,7 +11,6 @@
 /* The DEBUG define must be before common to enable debugging */
 /*#define DEBUG*/
 
-#include <common.h>
 #include <flash.h>
 #include <log.h>
 #include <asm/processor.h>
drivers/mtd/mtd-uclass.c +0 -1
index 0743fe7af9fd..720bd824c4d7 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MTD
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <errno.h>
drivers/mtd/mtd_uboot.c +0 -1
index 14ce726b10d8..69cb3b51f922 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2014
  * Heiko Schocher, DENX Software Engineering, [email protected].
  */
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
drivers/mtd/mtdpart.c +0 -1
index 4886392a1cfa..be1d19b4ffa5 100644
@@ -19,7 +19,6 @@
 #include <linux/kmod.h>
 #endif
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/bug.h>
 #include <linux/errno.h>
drivers/mtd/nand/bbt.c +0 -1
index 972aec6e2666..4ff0999f62a1 100644
@@ -9,7 +9,6 @@
 
 #define pr_fmt(fmt)	"nand-bbt: " fmt
 
-#include <common.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/mtd/nand.h>
drivers/mtd/nand/core.c +0 -1
index f6d9c584f786..472ad0bdefb1 100644
@@ -9,7 +9,6 @@
 
 #define pr_fmt(fmt)	"nand: " fmt
 
-#include <common.h>
 #include <watchdog.h>
 #ifndef __UBOOT__
 #include <linux/compat.h>
drivers/mtd/nand/raw/am335x_spl_bch.c +1 -1
index 6831af98b73b..64d8ce0965ad 100644
@@ -9,7 +9,7 @@
  * Stefan Roese, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <system-constants.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/arasan_nfc.c +0 -1
index ffcd963b3dac..4f013efafb36 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2014 - 2015 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/mtd/nand/raw/atmel_nand.c +1 -1
index 6d94e7af38e9..4dbf7b47135c 100644
@@ -10,7 +10,7 @@
  *     (C) Copyright 2012 ATMEL, Hong Xu
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <system-constants.h>
 #include <asm/gpio.h>
drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +0 -1
index 4e6d99fd3ca4..3f59fbbbb8f1 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +0 -1
index 6164989b9378..d54de0b3ecce 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c +0 -1
index feae66ef25a6..a101222a28fa 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +0 -1
index dbd85af7079d..385642d0c091 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +0 -1
index ef3649688c66..407898ddae6e 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +0 -1
index 027fdd37da3b..564c678c9ef2 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/brcmnand.c +0 -1
index efbf9a3120a4..b7bf7cc0893d 100644
@@ -12,7 +12,6 @@
  * GNU General Public License for more details.
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +0 -1
index a6acf556bcc7..b3b3df5c042e 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <dm/devres.h>
drivers/mtd/nand/raw/brcmnand/iproc_nand.c +0 -1
index 69711d98ce1b..430d6c938538 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2015 Broadcom Corporation
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
drivers/mtd/nand/raw/cortina_nand.c +0 -1
index b7be6602f7cc..06918a46e93f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2020, Cortina Access Inc..
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/bitops.h>
 #include <linux/sizes.h>
drivers/mtd/nand/raw/davinci_nand.c +1 -1
index 71bbb8231bfb..d4daf06b8de5 100644
@@ -28,7 +28,7 @@
  -
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <linux/mtd/rawnand.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/denali.c +0 -1
index c827f80281c1..b2401116689a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2009-2010, Intel Corporation and its suppliers.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <nand.h>
drivers/mtd/nand/raw/denali_spl.c +1 -1
index 165a23312cb5..b1e2c9d81617 100644
@@ -4,7 +4,7 @@
  * Copyright (C) 2014-2015  Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/unaligned.h>
drivers/mtd/nand/raw/fsl_elbc_nand.c +1 -1
index 7853c3f74e2a..157330cb287a 100644
@@ -7,7 +7,7 @@
  *          Scott Wood <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
drivers/mtd/nand/raw/fsl_elbc_spl.c +1 -1
index 26aaab08e893..17b8ef7ff4b9 100644
@@ -9,7 +9,7 @@
  * Author: Scott Wood <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <linux/mtd/rawnand.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/fsl_ifc_nand.c +1 -1
index 1d7c1fddd3f6..857d50ef9b09 100644
@@ -6,7 +6,7 @@
  * Authors: Dipen Dudhat <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
drivers/mtd/nand/raw/fsl_ifc_spl.c +1 -1
index 69d26f1f79ab..c2ebee948707 100644
@@ -6,7 +6,7 @@
  * Author: Dipen Dudhat <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <fsl_ifc.h>
drivers/mtd/nand/raw/kirkwood_nand.c +0 -1
index 621d2d232c88..cd182be268dc 100644
@@ -5,7 +5,6 @@
  * Written-by: Prafulla Wadaskar <[email protected]>
  */
 
-#include <common.h>
 #include <linux/mtd/rawnand.h>
 #include <asm/io.h>
 #include <asm/arch/soc.h>
drivers/mtd/nand/raw/kmeter1_nand.c +1 -1
index dfe73d64e46a..e9398eb4093e 100644
@@ -4,7 +4,7 @@
  * Heiko Schocher, DENX Software Engineering, [email protected]
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/mtd/nand/raw/lpc32xx_nand_mlc.c +1 -1
index f8ae216d56c6..c89661badbf5 100644
@@ -19,7 +19,7 @@
  * should not rely on the ECC validity.
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/mtd/nand/raw/lpc32xx_nand_slc.c +1 -1
index b21a0b9d293f..4d643bc64bc2 100644
@@ -10,7 +10,7 @@
  * Author: Kevin Wells
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <nand.h>
 #include <linux/bug.h>
drivers/mtd/nand/raw/mxc_nand.c +1 -1
index dbdc5b0bca1c..0750b38f7081 100644
@@ -5,7 +5,7 @@
  * Copyright 2009 Ilya Yanok, <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <nand.h>
 #include <linux/delay.h>
drivers/mtd/nand/raw/mxc_nand_spl.c +1 -1
index a855c9987f80..c5872848954e 100644
@@ -10,7 +10,7 @@
  * Stefan Roese, DENX Software Engineering, sr at denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <nand.h>
 #include <system-constants.h>
drivers/mtd/nand/raw/mxic_nand.c +0 -1
index 6abdc24bd30c..0e54b5f69389 100644
@@ -6,7 +6,6 @@
  *	Zhengxun Li <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/mtd/nand/raw/mxs_nand.c +0 -1
index fd65772af806..11b0247b2842 100644
@@ -13,7 +13,6 @@
  * Copyright 2017-2019 NXP
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/mtd/nand/raw/mxs_nand_spl.c +0 -1
index f7d3f02f85a0..c8e064347ada 100644
@@ -4,7 +4,6 @@
  * Copyright 2019 NXP
  * Author: Tim Harvey <[email protected]>
  */
-#include <common.h>
 #include <log.h>
 #include <nand.h>
 #include <malloc.h>
drivers/mtd/nand/raw/nand.c +1 -1
index b591170346d0..36054492e186 100644
@@ -5,7 +5,7 @@
  * Ladislav Michl <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <errno.h>
 #include <linux/mtd/concat.h>
drivers/mtd/nand/raw/nand_base.c +0 -1
index 688d17ba3c2f..18b95caffeff 100644
@@ -28,7 +28,6 @@
  */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <watchdog.h>
drivers/mtd/nand/raw/nand_bbt.c +0 -1
index cd451870a6f9..1fb8535ab054 100644
@@ -57,7 +57,6 @@
  *
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <dm/devres.h>
drivers/mtd/nand/raw/nand_bch.c +0 -1
index bb48ebbb96c7..f317cc26c903 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <log.h>
 #include <dm/devres.h>
 #include <linux/printk.h>
drivers/mtd/nand/raw/nand_ecc.c +0 -1
index 2bc329be1a3b..0530ccb07226 100644
@@ -22,7 +22,6 @@
  * this file might be covered by the GNU General Public License.
  */
 
-#include <common.h>
 
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
drivers/mtd/nand/raw/nand_ids.c +0 -1
index be60d6d9d995..4f46378ffe10 100644
@@ -6,7 +6,6 @@
  * published by the Free Software Foundation.
  *
  */
-#include <common.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/sizes.h>
 
drivers/mtd/nand/raw/nand_spl_load.c +1 -1
index 7ac9bf4d1206..87af675c1391 100644
@@ -4,7 +4,7 @@
  * Heiko Schocher, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 
 /*
drivers/mtd/nand/raw/nand_spl_simple.c +1 -1
index 80d6e0e1e4ef..c0956ab0e491 100644
@@ -4,7 +4,7 @@
  * Stefan Roese, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <system-constants.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/nand_timings.c +0 -1
index e6aa79039131..c1bac1d01cc4 100644
@@ -8,7 +8,6 @@
  * published by the Free Software Foundation.
  *
  */
-#include <common.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/mtd/rawnand.h>
drivers/mtd/nand/raw/nand_util.c +0 -1
index 72cc24f40376..fda4239fa792 100644
@@ -18,7 +18,6 @@
  * Copyright 2010 Freescale Semiconductor
  */
 
-#include <common.h>
 #include <command.h>
 #include <log.h>
 #include <watchdog.h>
drivers/mtd/nand/raw/omap_elm.c +0 -1
index 015ec9bc2de0..61751b9ae2db 100644
@@ -12,7 +12,6 @@
  *    sets in uboot
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/hardware.h>
drivers/mtd/nand/raw/omap_gpmc.c +1 -1
index 2f8fa7d73d21..92a92ad63a02 100644
@@ -4,7 +4,7 @@
  * Rohit Choraria <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <system-constants.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/pxa3xx_nand.c +0 -1
index 1d9a6d107b17..17c5601bead0 100644
@@ -6,7 +6,6 @@
  * Copyright © 2006 Marvell International Ltd.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <fdtdec.h>
 #include <nand.h>
drivers/mtd/nand/raw/rockchip_nfc.c +0 -1
index 088cc7fead24..f730e15d0410 100644
@@ -5,7 +5,6 @@
  * Author: Yifeng Zhao <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
drivers/mtd/nand/raw/stm32_fmc2_nand.c +0 -1
index d284b8cbb123..083ea4c5a74b 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_MTD
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/mtd/nand/raw/sunxi_nand.c +0 -1
index 0b5b74dc242d..34197bb09a19 100644
@@ -25,7 +25,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <memalign.h>
drivers/mtd/nand/raw/sunxi_nand_spl.c +0 -1
index c9b8c78ed752..040138e25592 100644
@@ -6,7 +6,6 @@
 
 #include <asm/arch/clock.h>
 #include <asm/io.h>
-#include <common.h>
 #include <config.h>
 #include <nand.h>
 #include <linux/bitops.h>
drivers/mtd/nand/raw/tegra_nand.c +0 -1
index 6086ecdfa3db..8285f87359e7 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2006 DENX Software Engineering
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/mtd/nand/raw/vf610_nfc.c +1 -1
index d2363a0662e2..102659503689 100644
@@ -21,7 +21,7 @@
  * - HW ECC: Only 24 and 32-bit error correction implemented.
  */
 
-#include <common.h>
+#include <config.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
 #include <linux/printk.h>
drivers/mtd/nand/raw/zynq_nand.c +0 -1
index bacaf13c570d..5f90171a6fe3 100644
@@ -6,7 +6,6 @@
  * This driver is based on plat_nand.c and mxc_nand.c drivers
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <asm/io.h>
drivers/mtd/nand/spi/core.c +0 -1
index 62c28aa422d2..ef50237f10e6 100644
@@ -21,7 +21,6 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/spi-mem.h>
 #else
-#include <common.h>
 #include <errno.h>
 #include <watchdog.h>
 #include <spi.h>
drivers/mtd/nvmxip/nvmxip-uclass.c +0 -1
index 9a316d1de397..95dfa58def17 100644
@@ -6,7 +6,6 @@
  *   Abdellatif El Khlifi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #if CONFIG_IS_ENABLED(SANDBOX64)
drivers/mtd/nvmxip/nvmxip.c +0 -1
index 0bd98d64275f..229938db3806 100644
@@ -6,7 +6,6 @@
  *   Abdellatif El Khlifi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
drivers/mtd/nvmxip/nvmxip_qspi.c +0 -1
index 4d7471118a4c..460887c7da34 100644
@@ -6,7 +6,6 @@
  *   Abdellatif El Khlifi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <linux/errno.h>
drivers/mtd/onenand/onenand_base.c +0 -1
index 762b01c1b0f0..edecb841338f 100644
@@ -19,7 +19,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <common.h>
 #include <log.h>
 #include <watchdog.h>
 #include <dm/devres.h>
drivers/mtd/onenand/onenand_bbt.c +0 -1
index cc1e449f4a72..6af1cb2ec19a 100644
@@ -14,7 +14,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
drivers/mtd/onenand/onenand_spl.c +2 -1
index 2699958a5de2..a9d54a243ade 100644
@@ -7,9 +7,10 @@
  *	Kyungmin Park <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/string.h>
 #include <linux/mtd/onenand_regs.h>
 #include <onenand_uboot.h>
 
drivers/mtd/onenand/onenand_uboot.c +1 -1
index ecacabefadcf..db0ac6c1fb8f 100644
@@ -13,7 +13,7 @@
  * OneNAND initialization at U-Boot
  */
 
-#include <common.h>
+#include <config.h>
 #include <display_options.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
drivers/mtd/onenand/samsung.c +0 -1
index c415e5149a01..ccfdad4913e8 100644
@@ -9,7 +9,6 @@
  *	Emulate the pseudo BufferRAM
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
drivers/mtd/renesas_rpc_hf.c +0 -1
index 979b64d4a2f6..8dcffde9aa39 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2017 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/mtd/spi/fsl_espi_spl.c +1 -1
index cdbdbd6ea581..73eea922c33a 100644
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <spi_flash.h>
drivers/mtd/spi/sandbox.c +0 -1
index 4fe547171a5f..2d5a16bf6a29 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI_FLASH
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/mtd/spi/sf-uclass.c +0 -1
index 2da0cf0dcf9f..a4d15bd64aa2 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SPI_FLASH
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <log.h>
drivers/mtd/spi/sf_bootdev.c +0 -1
index d6b47b11ce45..017a74a3016f 100644
@@ -5,7 +5,6 @@
  * Copyright 2022 Google LLC
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <bootflow.h>
 #include <bootmeth.h>
drivers/mtd/spi/sf_dataflash.c +0 -1
index 6a0d953a7290..6db24189c8ea 100644
@@ -6,7 +6,6 @@
  * Haikun Wang ([email protected])
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <errno.h>
drivers/mtd/spi/sf_mtd.c +0 -1
index 071b25ac67f2..7342f26d88e0 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2012-2014 Daniel Schwierzeck, [email protected]
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
drivers/mtd/spi/sf_probe.c +0 -1
index de6516f1065b..7100b64bf22a 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/mtd/spi-nor.h>
drivers/mtd/spi/spi-nor-core.c +0 -1
index f86003ca8c06..982dd251150d 100644
@@ -9,7 +9,6 @@
  * Synced from Linux v4.19
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <log.h>
 #include <watchdog.h>
drivers/mtd/spi/spi-nor-ids.c +0 -1
index 4e83b8c94c96..684206ea07dd 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <spi.h>
 #include <spi_flash.h>
 
drivers/mtd/spi/spi-nor-tiny.c +0 -1
index 0719fe845ca9..5755c5eed297 100644
@@ -9,7 +9,6 @@
  * Synced from Linux v4.19
  */
 
-#include <common.h>
 #include <log.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
drivers/mtd/stm32_flash.c +1 -1
index 4523344ba6b0..ec83be6b51fd 100644
@@ -4,7 +4,7 @@
  * Kamil Lulko, <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <flash.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
drivers/mtd/ubispl/ubispl.c +0 -1
index b58d8e8d5656..90a7c4c6f9e0 100644
@@ -7,7 +7,6 @@
  * Copyright (c) International Business Machines Corp., 2006
  */
 
-#include <common.h>
 #include <errno.h>
 #include <linux/bug.h>
 #include <u-boot/crc.h>
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 43/81
#65 lore raw

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

Quoted 104 lines · Tom Rini

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

---
Cc: Tom Rini <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Michael Trimarchi <[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: 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: Michal Simek <[email protected]>
Cc: Frieder Schrempf <[email protected]>
Cc: Abdellatif El Khlifi <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Sean Anderson <[email protected]>

---
  drivers/mtd/altera_qspi.c                       | 1 -
  drivers/mtd/cfi_flash.c                         | 3 ++-
  drivers/mtd/cfi_mtd.c                           | 1 -
  drivers/mtd/hbmc-am654.c                        | 1 -
  drivers/mtd/jedec_flash.c                       | 1 -
  drivers/mtd/mtd-uclass.c                        | 1 -
  drivers/mtd/mtd_uboot.c                         | 1 -
  drivers/mtd/mtdpart.c                           | 1 -
  drivers/mtd/nand/bbt.c                          | 1 -
  drivers/mtd/nand/core.c                         | 1 -
  drivers/mtd/nand/raw/am335x_spl_bch.c           | 2 +-
  drivers/mtd/nand/raw/arasan_nfc.c               | 1 -
  drivers/mtd/nand/raw/atmel_nand.c               | 2 +-
  drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c   | 1 -
  drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c    | 1 -
  drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c    | 1 -
  drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c   | 1 -
  drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c    | 1 -
  drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c    | 1 -
  drivers/mtd/nand/raw/brcmnand/brcmnand.c        | 1 -
  drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 -
  drivers/mtd/nand/raw/brcmnand/iproc_nand.c      | 1 -
  drivers/mtd/nand/raw/cortina_nand.c             | 1 -
  drivers/mtd/nand/raw/davinci_nand.c             | 2 +-
  drivers/mtd/nand/raw/denali.c                   | 1 -
  drivers/mtd/nand/raw/denali_spl.c               | 2 +-
  drivers/mtd/nand/raw/fsl_elbc_nand.c            | 2 +-
  drivers/mtd/nand/raw/fsl_elbc_spl.c             | 2 +-
  drivers/mtd/nand/raw/fsl_ifc_nand.c             | 2 +-
  drivers/mtd/nand/raw/fsl_ifc_spl.c              | 2 +-
  drivers/mtd/nand/raw/kirkwood_nand.c            | 1 -
  drivers/mtd/nand/raw/kmeter1_nand.c             | 2 +-
  drivers/mtd/nand/raw/lpc32xx_nand_mlc.c         | 2 +-
  drivers/mtd/nand/raw/lpc32xx_nand_slc.c         | 2 +-
  drivers/mtd/nand/raw/mxc_nand.c                 | 2 +-
  drivers/mtd/nand/raw/mxc_nand_spl.c             | 2 +-
  drivers/mtd/nand/raw/mxic_nand.c                | 1 -
  drivers/mtd/nand/raw/mxs_nand.c                 | 1 -
  drivers/mtd/nand/raw/mxs_nand_spl.c             | 1 -
  drivers/mtd/nand/raw/nand.c                     | 2 +-
  drivers/mtd/nand/raw/nand_base.c                | 1 -
  drivers/mtd/nand/raw/nand_bbt.c                 | 1 -
  drivers/mtd/nand/raw/nand_bch.c                 | 1 -
  drivers/mtd/nand/raw/nand_ecc.c                 | 1 -
  drivers/mtd/nand/raw/nand_ids.c                 | 1 -
  drivers/mtd/nand/raw/nand_spl_load.c            | 2 +-
  drivers/mtd/nand/raw/nand_spl_simple.c          | 2 +-
  drivers/mtd/nand/raw/nand_timings.c             | 1 -
  drivers/mtd/nand/raw/nand_util.c                | 1 -
  drivers/mtd/nand/raw/omap_elm.c                 | 1 -
  drivers/mtd/nand/raw/omap_gpmc.c                | 2 +-
  drivers/mtd/nand/raw/pxa3xx_nand.c              | 1 -
  drivers/mtd/nand/raw/rockchip_nfc.c             | 1 -
  drivers/mtd/nand/raw/stm32_fmc2_nand.c          | 1 -
  drivers/mtd/nand/raw/sunxi_nand.c               | 1 -
  drivers/mtd/nand/raw/sunxi_nand_spl.c           | 1 -
  drivers/mtd/nand/raw/tegra_nand.c               | 1 -
  drivers/mtd/nand/raw/vf610_nfc.c                | 2 +-
  drivers/mtd/nand/raw/zynq_nand.c                | 1 -
  drivers/mtd/nand/spi/core.c                     | 1 -
  drivers/mtd/nvmxip/nvmxip-uclass.c              | 1 -
  drivers/mtd/nvmxip/nvmxip.c                     | 1 -
  drivers/mtd/nvmxip/nvmxip_qspi.c                | 1 -
  drivers/mtd/onenand/onenand_base.c              | 1 -
  drivers/mtd/onenand/onenand_bbt.c               | 1 -
  drivers/mtd/onenand/onenand_spl.c               | 3 ++-
  drivers/mtd/onenand/onenand_uboot.c             | 2 +-
  drivers/mtd/onenand/samsung.c                   | 1 -
  drivers/mtd/renesas_rpc_hf.c                    | 1 -
  drivers/mtd/spi/fsl_espi_spl.c                  | 2 +-
  drivers/mtd/spi/sandbox.c                       | 1 -
  drivers/mtd/spi/sf-uclass.c                     | 1 -
  drivers/mtd/spi/sf_bootdev.c                    | 1 -
  drivers/mtd/spi/sf_dataflash.c                  | 1 -
Quoted 9 lines
  drivers/mtd/spi/sf_mtd.c                        | 1 -
  drivers/mtd/spi/sf_probe.c                      | 1 -
  drivers/mtd/spi/spi-nor-core.c                  | 1 -
  drivers/mtd/spi/spi-nor-ids.c                   | 1 -
  drivers/mtd/spi/spi-nor-tiny.c                  | 1 -
  drivers/mtd/stm32_flash.c                       | 2 +-
  drivers/mtd/ubispl/ubispl.c                     | 1 -
  81 files changed, 25 insertions(+), 81 deletions(-)

For drivers/mtd/nand/raw/brcmnand/*,

author
#66 lore raw

PATCH 44/81 mux: 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: Roger Quadros <[email protected]>
Cc: Nishanth Menon <[email protected]>

---
 drivers/mux/mmio.c       | 1 -
 drivers/mux/mux-uclass.c | 1 -
 2 files changed, 2 deletions(-)
drivers/mux/mmio.c +0 -1
index 00e0282dcc0e..e1125458a629 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]>
  * Copyright (C) 2019 Texas Instrument, Jean-jacques Hiblot <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <mux-internal.h>
 #include <regmap.h>
drivers/mux/mux-uclass.c +0 -1
index 8833888ded37..8a3e7a84f41b 100644
@@ -13,7 +13,6 @@
 
 #define LOG_CATEGORY UCLASS_MUX
 
-#include <common.h>
 #include <dm.h>
 #include <mux-internal.h>
 #include <dm/device-internal.h>
Signature · 1 line
2.34.1
author
#67 lore raw

PATCH 45/81 net: 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: Joe Hershberger <[email protected]>
Cc: Ramon Fried <[email protected]>
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: Alex Nemirovsky <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Robert Marko <[email protected]>
Cc: Luka Kovacic <[email protected]>
Cc: Luka Perkov <[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: Michal Simek <[email protected]>
Cc: Radu Pirea <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Ioana Ciornei <[email protected]>
Cc: Laurentiu Tudor <[email protected]>
Cc: Nate Drude <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: "Rafał Miłecki" <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Frank de Brabander <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Lukasz Tekieli <[email protected]>
Cc: Nicolas Frattaroli <[email protected]>
Cc: Yanhong Wang <[email protected]>
Cc: Jacky Chou <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Eugeniu Rosca <[email protected]>
Cc: Tejas Bhumkar <[email protected]>
Cc: "Sébastien Szymanski" <[email protected]>
Cc: Stefan Herbrechtsmeier <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Suman Anna <[email protected]>
Cc: Andreas Dannenberg <[email protected]>

---
 drivers/net/ag7xxx.c                      | 1 -
 drivers/net/altera_tse.c                  | 1 -
 drivers/net/aspeed_mdio.c                 | 1 -
 drivers/net/bcm-sf2-eth-gmac.c            | 1 -
 drivers/net/bcm-sf2-eth.c                 | 1 -
 drivers/net/bcm6348-eth.c                 | 1 -
 drivers/net/bcm6368-eth.c                 | 1 -
 drivers/net/bnxt/bnxt.c                   | 1 -
 drivers/net/calxedaxgmac.c                | 1 -
 drivers/net/cortina_ni.c                  | 1 -
 drivers/net/dc2114x.c                     | 1 -
 drivers/net/designware.c                  | 1 -
 drivers/net/dm9000x.c                     | 1 -
 drivers/net/dwc_eth_qos.c                 | 1 -
 drivers/net/dwc_eth_qos_imx.c             | 1 -
 drivers/net/dwc_eth_qos_qcom.c            | 1 -
 drivers/net/dwc_eth_qos_rockchip.c        | 1 -
 drivers/net/dwc_eth_qos_starfive.c        | 1 -
 drivers/net/dwmac_meson8b.c               | 1 -
 drivers/net/dwmac_s700.c                  | 1 -
 drivers/net/dwmac_socfpga.c               | 1 -
 drivers/net/e1000.c                       | 1 -
 drivers/net/e1000_spi.c                   | 2 +-
 drivers/net/eepro100.c                    | 2 +-
 drivers/net/eth-phy-uclass.c              | 1 -
 drivers/net/ethoc.c                       | 1 -
 drivers/net/fec_mxc.c                     | 1 -
 drivers/net/fm/b4860.c                    | 2 +-
 drivers/net/fm/dtsec.c                    | 1 -
 drivers/net/fm/eth.c                      | 2 +-
 drivers/net/fm/ls1043.c                   | 2 +-
 drivers/net/fm/ls1046.c                   | 2 +-
 drivers/net/fm/memac.c                    | 1 -
 drivers/net/fm/memac_phy.c                | 1 -
 drivers/net/fm/p1023.c                    | 2 +-
 drivers/net/fm/p4080.c                    | 2 +-
 drivers/net/fm/p5020.c                    | 2 +-
 drivers/net/fm/p5040.c                    | 2 +-
 drivers/net/fm/t1024.c                    | 2 +-
 drivers/net/fm/t1040.c                    | 2 +-
 drivers/net/fm/t2080.c                    | 2 +-
 drivers/net/fm/t4240.c                    | 2 +-
 drivers/net/fm/tgec.c                     | 1 -
 drivers/net/fm/tgec_phy.c                 | 1 -
 drivers/net/fsl-mc/mc.c                   | 2 +-
 drivers/net/fsl-mc/mc_sys.c               | 1 -
 drivers/net/fsl_enetc.c                   | 1 -
 drivers/net/fsl_enetc_mdio.c              | 1 -
 drivers/net/fsl_ls_mdio.c                 | 1 -
 drivers/net/fsl_mdio.c                    | 1 -
 drivers/net/ftgmac100.c                   | 1 -
 drivers/net/ftmac100.c                    | 1 -
 drivers/net/gmac_rockchip.c               | 1 -
 drivers/net/higmacv300.c                  | 1 -
 drivers/net/ks8851_mll.c                  | 1 -
 drivers/net/ldpaa_eth/ldpaa_eth.c         | 1 -
 drivers/net/ldpaa_eth/ldpaa_wriop.c       | 1 -
 drivers/net/ldpaa_eth/ls1088a.c           | 2 +-
 drivers/net/ldpaa_eth/ls2080a.c           | 2 +-
 drivers/net/ldpaa_eth/lx2160a.c           | 2 +-
 drivers/net/macb.c                        | 1 -
 drivers/net/mcffec.c                      | 2 +-
 drivers/net/mcfmii.c                      | 1 -
 drivers/net/mdio-ipq4019.c                | 1 -
 drivers/net/mpc8xx_fec.c                  | 1 -
 drivers/net/mscc_eswitch/jr2_switch.c     | 1 -
 drivers/net/mscc_eswitch/luton_switch.c   | 1 -
 drivers/net/mscc_eswitch/ocelot_switch.c  | 1 -
 drivers/net/mscc_eswitch/serval_switch.c  | 1 -
 drivers/net/mscc_eswitch/servalt_switch.c | 1 -
 drivers/net/mt7628-eth.c                  | 1 -
 drivers/net/mtk_eth.c                     | 1 -
 drivers/net/mv88e6xxx.c                   | 1 -
 drivers/net/mvgbe.c                       | 1 -
 drivers/net/mvmdio.c                      | 1 -
 drivers/net/mvneta.c                      | 1 -
 drivers/net/mvpp2.c                       | 1 -
 drivers/net/netconsole.c                  | 2 +-
 drivers/net/npcm750_eth.c                 | 1 -
 drivers/net/pch_gbe.c                     | 1 -
 drivers/net/pcnet.c                       | 1 -
 drivers/net/pfe_eth/pfe_cmd.c             | 1 -
 drivers/net/pfe_eth/pfe_eth.c             | 2 +-
 drivers/net/pfe_eth/pfe_mdio.c            | 2 +-
 drivers/net/phy/adin.c                    | 1 -
 drivers/net/phy/aquantia.c                | 1 -
 drivers/net/phy/atheros.c                 | 1 -
 drivers/net/phy/b53.c                     | 1 -
 drivers/net/phy/broadcom.c                | 1 -
 drivers/net/phy/ca_phy.c                  | 1 -
 drivers/net/phy/cortina.c                 | 1 -
 drivers/net/phy/davicom.c                 | 1 -
 drivers/net/phy/dp83867.c                 | 1 -
 drivers/net/phy/dp83869.c                 | 1 -
 drivers/net/phy/ethernet_id.c             | 1 -
 drivers/net/phy/fixed.c                   | 1 -
 drivers/net/phy/generic_10g.c             | 1 -
 drivers/net/phy/intel_xway.c              | 1 -
 drivers/net/phy/lxt.c                     | 1 -
 drivers/net/phy/marvell.c                 | 1 -
 drivers/net/phy/marvell10g.c              | 1 -
 drivers/net/phy/meson-gxl.c               | 1 -
 drivers/net/phy/micrel_ksz8xxx.c          | 1 -
 drivers/net/phy/micrel_ksz90x1.c          | 1 -
 drivers/net/phy/miiphybb.c                | 1 -
 drivers/net/phy/motorcomm.c               | 1 -
 drivers/net/phy/mv88e61xx.c               | 1 -
 drivers/net/phy/mv88e6352.c               | 1 -
 drivers/net/phy/natsemi.c                 | 1 -
 drivers/net/phy/ncsi.c                    | 1 -
 drivers/net/phy/nxp-c45-tja11xx.c         | 1 -
 drivers/net/phy/nxp-tja11xx.c             | 1 -
 drivers/net/phy/phy.c                     | 1 -
 drivers/net/phy/realtek.c                 | 1 -
 drivers/net/phy/smsc.c                    | 1 -
 drivers/net/phy/teranetics.c              | 1 -
 drivers/net/phy/vitesse.c                 | 1 -
 drivers/net/phy/xilinx_gmii2rgmii.c       | 1 -
 drivers/net/phy/xilinx_phy.c              | 1 -
 drivers/net/pic32_eth.c                   | 1 -
 drivers/net/pic32_mdio.c                  | 1 -
 drivers/net/qe/dm_qe_uec.c                | 1 -
 drivers/net/qe/dm_qe_uec_phy.c            | 1 -
 drivers/net/qe/uccf.c                     | 1 +
 drivers/net/qe/uccf.h                     | 4 ++--
 drivers/net/ravb.c                        | 1 -
 drivers/net/rswitch.c                     | 1 -
 drivers/net/rtl8139.c                     | 1 -
 drivers/net/rtl8169.c                     | 1 -
 drivers/net/sandbox-raw-bus.c             | 1 -
 drivers/net/sandbox-raw.c                 | 1 -
 drivers/net/sandbox.c                     | 1 -
 drivers/net/sh_eth.c                      | 1 -
 drivers/net/sja1105.c                     | 1 -
 drivers/net/smc911x.c                     | 1 -
 drivers/net/sun8i_emac.c                  | 1 -
 drivers/net/sunxi_emac.c                  | 1 -
 drivers/net/ti/am65-cpsw-nuss.c           | 1 -
 drivers/net/ti/cpsw-common.c              | 1 -
 drivers/net/ti/cpsw.c                     | 1 -
 drivers/net/ti/cpsw_mdio.c                | 1 -
 drivers/net/ti/davinci_emac.c             | 2 +-
 drivers/net/ti/keystone_net.c             | 1 -
 drivers/net/tsec.c                        | 1 -
 drivers/net/vsc7385.c                     | 1 -
 drivers/net/xilinx_axi_emac.c             | 1 -
 drivers/net/xilinx_axi_mrmac.c            | 1 -
 drivers/net/xilinx_emaclite.c             | 1 -
 drivers/net/zynq_gem.c                    | 1 -
 149 files changed, 26 insertions(+), 149 deletions(-)
drivers/net/ag7xxx.c +0 -1
index da1f3f458080..059a65d46610 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2019 Rosy Song <[email protected]>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/altera_tse.c +0 -1
index e2340936fa62..c57aafd00263 100644
@@ -8,7 +8,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/net/aspeed_mdio.c +0 -1
index a99715a72829..f2e4392aa9ac 100644
@@ -7,7 +7,6 @@
  * This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <miiphy.h>
drivers/net/bcm-sf2-eth-gmac.c +0 -1
index cbe1e85222fa..ba244b4a26e2 100644
@@ -11,7 +11,6 @@
 #endif
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/net/bcm-sf2-eth.c +0 -1
index 1524f5c99890..c10719c6b510 100644
@@ -3,7 +3,6 @@
  * Copyright 2014 Broadcom Corporation.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
drivers/net/bcm6348-eth.c +0 -1
index 15a94f6ce9a1..f87db4ab46e4 100644
@@ -6,7 +6,6 @@
  *	Copyright (C) 2008 Maxime Bizon <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
drivers/net/bcm6368-eth.c +0 -1
index 9679a45b0758..0601fcc42f58 100644
@@ -6,7 +6,6 @@
  *	Copyright (C) 2008 Maxime Bizon <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
drivers/net/bnxt/bnxt.c +0 -1
index 1c9a9962408a..25fbcd7b1161 100644
@@ -3,7 +3,6 @@
  * Copyright 2019-2021 Broadcom.
  */
 
-#include <common.h>
 
 #include <asm/io.h>
 #include <dm.h>
drivers/net/calxedaxgmac.c +0 -1
index eb1e2a756cd3..ebb399457fb5 100644
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Calxeda, Inc.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <net.h>
 #include <linux/compiler.h>
drivers/net/cortina_ni.c +0 -1
index ef6ecd88b0ce..790268828002 100644
@@ -7,7 +7,6 @@
  * Ethernet MAC Driver for all supported CAxxxx SoCs
  */
 
-#include <common.h>
 #include <command.h>
 #include <malloc.h>
 #include <net.h>
drivers/net/dc2114x.c +0 -1
index 4e7af95b41c4..ce028f451f13 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <malloc.h>
drivers/net/designware.c +0 -1
index 4c1642b29a84..254e9c5b7155 100644
@@ -8,7 +8,6 @@
  * Designware ethernet IP driver for U-Boot
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/dm9000x.c +0 -1
index bec8d67dad0f..9e17f0b9c280 100644
@@ -49,7 +49,6 @@
  * TODO: external MII is not functional, only internal at the moment.
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <malloc.h>
drivers/net/dwc_eth_qos.c +0 -1
index 32a5d52165ac..67ac86f82bcd 100644
@@ -29,7 +29,6 @@
 
 #define LOG_CATEGORY UCLASS_ETH
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/dwc_eth_qos_imx.c +0 -1
index 9c4e39044133..d6bed278ca79 100644
@@ -3,7 +3,6 @@
  * Copyright 2022 NXP
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/dwc_eth_qos_qcom.c +0 -1
index 8178138fc659..77d626393d5a 100644
@@ -5,7 +5,6 @@
  * Qcom DWMAC specific glue layer
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
drivers/net/dwc_eth_qos_rockchip.c +0 -1
index fa9e513faea3..c4557e57988d 100644
@@ -8,7 +8,6 @@
  * part in order to simplify future porting of fixes and support for other SoCs.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/net/dwc_eth_qos_starfive.c +0 -1
index 5be8ac0f1a51..09e714ce76a0 100644
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<[email protected]>
  */
 
-#include <common.h>
 #include <asm/cache.h>
 #include <asm/gpio.h>
 #include <clk.h>
drivers/net/dwmac_meson8b.c +0 -1
index 871171e1be5e..fde4aabbacec 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 BayLibre, SAS
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <phy.h>
drivers/net/dwmac_s700.c +0 -1
index 744b58bdd1a6..969d247b4f3a 100644
@@ -5,7 +5,6 @@
  * Actions DWMAC specific glue layer
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
drivers/net/dwmac_socfpga.c +0 -1
index 82fdff51dacc..bba3fc4d34b0 100644
@@ -5,7 +5,6 @@
  * Altera SoCFPGA EMAC extras
  */
 
-#include <common.h>
 #include <asm/arch/secure_reg_helper.h>
 #include <asm/arch/system_manager.h>
 #include <asm/io.h>
drivers/net/e1000.c +0 -1
index 4e7ba6667703..663d900eb099 100644
@@ -29,7 +29,6 @@ tested on both gig copper and gig fiber boards
  *  Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/e1000_spi.c +1 -1
index 69adf282c739..1e830b99f1d4 100644
@@ -1,9 +1,9 @@
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <linux/delay.h>
 #include "e1000.h"
 #include <malloc.h>
+#include <vsprintf.h>
 #include <linux/compiler.h>
 
 /*-----------------------------------------------------------------------
drivers/net/eepro100.c +1 -1
index 38d96ab72b6e..d18a8d577ca4 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <cpu_func.h>
 #include <malloc.h>
drivers/net/eth-phy-uclass.c +0 -1
index 9d1e8d38ffa6..1dae26878e61 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_ETH_PHY
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/net/ethoc.c +0 -1
index 13fad8119bb5..dc7e6f1929fd 100644
@@ -9,7 +9,6 @@
  * Copyright (C) 2016 Cadence Design Systems Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/fec_mxc.c +0 -1
index 90af18f80a88..0a0d92bc2cdd 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2007 Pengutronix, Juergen Beisert <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <env.h>
drivers/net/fm/b4860.c +1 -1
index 1c5543e3c878..46a0d38b101c 100644
@@ -3,7 +3,7 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  *	Roy Zang <[email protected]>
  */
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <phy.h>
 #include <fm_eth.h>
drivers/net/fm/dtsec.c +0 -1
index c51a65cb94fb..371d9f07a46d 100644
@@ -3,7 +3,6 @@
  * Copyright 2009-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <asm/types.h>
 #include <asm/io.h>
 #include <fsl_dtsec.h>
drivers/net/fm/eth.c +1 -1
index 9fd26de0d721..19f3f0fef073 100644
@@ -4,7 +4,7 @@
  * Copyright 2020 NXP
  *	Dave Liu <[email protected]>
  */
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <part.h>
 #include <asm/io.h>
drivers/net/fm/ls1043.c +1 -1
index 3db5c907a2ab..41b75761fddc 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/ls1046.c +1 -1
index 3b0ee98ddd35..56c5c6846a47 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/memac.c +0 -1
index eeb67a39a77f..37b54626af0c 100644
@@ -7,7 +7,6 @@
 /* MAXFRM - maximum frame length */
 #define MAXFRM_MASK	0x0000ffff
 
-#include <common.h>
 #include <log.h>
 #include <phy.h>
 #include <asm/types.h>
drivers/net/fm/memac_phy.c +0 -1
index e0b62b944909..26425d94ae55 100644
@@ -5,7 +5,6 @@
  *	Roy Zang <[email protected]>
  * Some part is taken from tsec.c
  */
-#include <common.h>
 #include <miiphy.h>
 #include <phy.h>
 #include <asm/io.h>
drivers/net/fm/p1023.c +1 -1
index 9013b276bc95..362bc9f30a1c 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/p4080.c +1 -1
index 7ad993221f78..6e63e338e5d5 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/p5020.c +1 -1
index f931491b1120..4fc1f723a3d9 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/p5040.c +1 -1
index ef9f4bcce4dd..f6ae947ef99b 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/t1024.c +1 -1
index 70ab4610cdf6..18d71e7b60e8 100644
@@ -4,7 +4,7 @@
  * Shengzhou Liu <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/immap_85xx.h>
drivers/net/fm/t1040.c +1 -1
index 5c260bed7fd5..dafa6d638e3a 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/t2080.c +1 -1
index 6174934d2b81..390ca0aee707 100644
@@ -5,7 +5,7 @@
  * Shengzhou Liu <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/immap_85xx.h>
drivers/net/fm/t4240.c +1 -1
index f0a02bfe457f..df76073eecde 100644
@@ -3,7 +3,7 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  *	Roy Zang <[email protected]>
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fm_eth.h>
 #include <asm/io.h>
drivers/net/fm/tgec.c +0 -1
index 9cc9f3fde3ad..f7b51ce0bbac 100644
@@ -7,7 +7,6 @@
 /* MAXFRM - maximum frame length */
 #define MAXFRM_MASK	0x0000ffff
 
-#include <common.h>
 #include <phy.h>
 #include <asm/types.h>
 #include <asm/io.h>
drivers/net/fm/tgec_phy.c +0 -1
index 22225c2f82f9..f6c8f80c835e 100644
@@ -4,7 +4,6 @@
  *	Andy Fleming <[email protected]>
  * Some part is taken from tsec.c
  */
-#include <common.h>
 #include <miiphy.h>
 #include <phy.h>
 #include <asm/io.h>
drivers/net/fsl-mc/mc.c +1 -1
index f5c5057bec10..c2869ce4010c 100644
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  * Copyright 2017-2018, 2020-2021 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
drivers/net/fsl-mc/mc_sys.c +0 -1
index 4d32516b0055..482fb0463d5d 100644
@@ -8,7 +8,6 @@
 
 #include <fsl-mc/fsl_mc_sys.h>
 #include <fsl-mc/fsl_mc_cmd.h>
-#include <common.h>
 #include <errno.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/net/fsl_enetc.c +0 -1
index 1fd5089cc4be..a6b0bafc8c60 100644
@@ -4,7 +4,6 @@
  * Copyright 2017-2021 NXP
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdt_support.h>
drivers/net/fsl_enetc_mdio.c +0 -1
index 50ad76dfeb55..2d5fcbb6dbd3 100644
@@ -4,7 +4,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
drivers/net/fsl_ls_mdio.c +0 -1
index fce73937502d..e3c37d9045f1 100644
@@ -3,7 +3,6 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <miiphy.h>
drivers/net/fsl_mdio.c +0 -1
index 5fd11db05f5e..a0f1c59e058c 100644
@@ -5,7 +5,6 @@
  *	Mingkai Hu <[email protected]>
  */
 
-#include <common.h>
 #include <miiphy.h>
 #include <phy.h>
 #include <fsl_mdio.h>
drivers/net/ftgmac100.c +0 -1
index 9b536fd5ab89..8781e50a48dc 100644
@@ -11,7 +11,6 @@
  * Copyright (C) 2018, IBM Corporation.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <reset.h>
 #include <cpu_func.h>
drivers/net/ftmac100.c +0 -1
index fae3adc3de34..199a0723b843 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <malloc.h>
drivers/net/gmac_rockchip.c +0 -1
index 51f835adabc3..d63e2dbfaebf 100644
@@ -5,7 +5,6 @@
  * Rockchip GMAC ethernet IP driver for U-Boot
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <log.h>
drivers/net/higmacv300.c +0 -1
index 1862235d0cd2..6b88f6fbf596 100644
@@ -8,7 +8,6 @@
 #include <malloc.h>
 #include <asm/cache.h>
 #include <asm/io.h>
-#include <common.h>
 #include <console.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
drivers/net/ks8851_mll.c +0 -1
index 518548e3bbcd..cc2e826257a9 100644
@@ -6,7 +6,6 @@
 
 #include <log.h>
 #include <asm/io.h>
-#include <common.h>
 #include <command.h>
 #include <malloc.h>
 #include <net.h>
drivers/net/ldpaa_eth/ldpaa_eth.c +0 -1
index 87fbada06ba2..b72198ca5307 100644
@@ -4,7 +4,6 @@
  * Copyright 2017, 2023 NXP
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm/device_compat.h>
 #include <fsl-mc/fsl_dpmac.h>
drivers/net/ldpaa_eth/ldpaa_wriop.c +0 -1
index adecb8135764..a803b8fa7972 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Freescale Semiconductor
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/types.h>
 #include <malloc.h>
drivers/net/ldpaa_eth/ls1088a.c +1 -1
index 32bcb51725ac..2727fb01179c 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2017 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fsl-mc/ldpaa_wriop.h>
 #include <asm/io.h>
drivers/net/ldpaa_eth/ls2080a.c +1 -1
index 845a36bce875..05017552b3fb 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fsl-mc/ldpaa_wriop.h>
 #include <asm/io.h>
drivers/net/ldpaa_eth/lx2160a.c +1 -1
index c2641a92d7ec..25ae684063bb 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2018, 2020 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <phy.h>
 #include <fsl-mc/ldpaa_wriop.h>
 #include <asm/io.h>
drivers/net/macb.c +0 -1
index bca014c3cbb1..cbf5f6055189 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2005-2006 Atmel Corporation
  */
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/mcffec.c +1 -1
index ec1fae9688bd..04b711e4f650 100644
@@ -10,7 +10,7 @@
  * (C) 2019 Angelo Dureghello <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <hang.h>
 #include <malloc.h>
drivers/net/mcfmii.c +0 -1
index eae20654513e..9bf887035d7f 100644
@@ -4,7 +4,6 @@
  * TsiChung Liew ([email protected])
  */
 
-#include <common.h>
 #include <config.h>
 #include <net.h>
 #include <netdev.h>
drivers/net/mdio-ipq4019.c +0 -1
index 50134b4d9b6a..c824c3da3ddb 100644
@@ -11,7 +11,6 @@
  */
 
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/bitops.h>
drivers/net/mpc8xx_fec.c +0 -1
index 78337731e1fd..c44fa6acdd70 100644
@@ -4,7 +4,6 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <command.h>
 #include <hang.h>
 #include <malloc.h>
drivers/net/mscc_eswitch/jr2_switch.c +0 -1
index 7157428a685e..925888e0765a 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
drivers/net/mscc_eswitch/luton_switch.c +0 -1
index 5e4f00c4f4d9..2f3d0911fdf7 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2019 Microsemi Corporation
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
drivers/net/mscc_eswitch/ocelot_switch.c +0 -1
index 7ea1f551a11a..30bb4b5bad8b 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <log.h>
drivers/net/mscc_eswitch/serval_switch.c +0 -1
index be06e4833733..8eab41df99ae 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2019 Microsemi Corporation
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <log.h>
drivers/net/mscc_eswitch/servalt_switch.c +0 -1
index 2d2329c204ae..61547d7933e4 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2019 Microsemi Corporation
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
drivers/net/mt7628-eth.c +0 -1
index b95de474fb02..fc8a6bb331bb 100644
@@ -13,7 +13,6 @@
  * copyrights here, so I can't add them here.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/mtk_eth.c +0 -1
index 75e7bcf83b76..94f17a97fe0f 100644
@@ -6,7 +6,6 @@
  * Author: Mark Lee <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/mv88e6xxx.c +0 -1
index 8fbbc1caccad..557b6b2c8f6a 100644
@@ -23,7 +23,6 @@
  * on the mv88e6176 via an SGMII interface.
  */
 
-#include <common.h>
 #include <dm/device.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
drivers/net/mvgbe.c +0 -1
index 3587ca2124e3..17b62bbc2052 100644
@@ -11,7 +11,6 @@
  * Copyright (C) 2002 [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/net/mvmdio.c +0 -1
index 5ebcfe14b7fb..3315e06f591f 100644
@@ -4,7 +4,6 @@
  * Author: Ken Ma<[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
drivers/net/mvneta.c +0 -1
index 24933473fa05..f014d39b1751 100644
@@ -12,7 +12,6 @@
  * Thomas Petazzoni <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/mvpp2.c +0 -1
index 1cd543076504..d19a79d16007 100644
@@ -13,7 +13,6 @@
  * warranty of any kind, whether express or implied.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <asm/cache.h>
drivers/net/netconsole.c +1 -1
index 151bc55e076b..1943de8ba730 100644
@@ -4,12 +4,12 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <log.h>
 #include <stdio_dev.h>
 #include <net.h>
+#include <vsprintf.h>
 
 #ifndef CFG_NETCONSOLE_BUFFER_SIZE
 #define CFG_NETCONSOLE_BUFFER_SIZE 512
drivers/net/npcm750_eth.c +0 -1
index 2028f4ae286e..f0ec6c556cc2 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/net/pch_gbe.c +0 -1
index ecf8c28fe41b..adeca3d040dd 100644
@@ -5,7 +5,6 @@
  * Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/net/pcnet.c +0 -1
index a1f3c2bd290c..180a96af16b6 100644
@@ -6,7 +6,6 @@
  * Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/pfe_eth/pfe_cmd.c +0 -1
index 2fe0db0fe717..99c2a8d4e92b 100644
@@ -9,7 +9,6 @@
  * @brief PFE utility commands
  */
 
-#include <common.h>
 #include <command.h>
 #include <log.h>
 #include <linux/delay.h>
drivers/net/pfe_eth/pfe_eth.c +1 -1
index ab532c5a420e..e24a6f93d910 100644
@@ -4,7 +4,7 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/net/pfe_eth/pfe_mdio.c +1 -1
index ff48726dbf55..ce2f76eabc8c 100644
@@ -3,7 +3,7 @@
  * Copyright 2015-2016 Freescale Semiconductor, Inc.
  * Copyright 2017 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/net/phy/adin.c +0 -1
index 0970449d0f9f..ce448810ff6d 100644
@@ -6,7 +6,6 @@
  * Copyright 2022 Variscite Ltd.
  * Copyright 2022 Josua Mayer <[email protected]>
  */
-#include <common.h>
 #include <phy.h>
 #include <linux/bitops.h>
 #include <linux/bitfield.h>
drivers/net/phy/aquantia.c +0 -1
index a958e88d44fd..4517a6b13ba6 100644
@@ -6,7 +6,6 @@
  * Copyright 2018, 2021 NXP
  */
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/net/phy/atheros.c +0 -1
index abb7bdf537cf..61525f68c359 100644
@@ -6,7 +6,6 @@
  * author Andy Fleming
  * Copyright (c) 2019 Michael Walle <[email protected]>
  */
-#include <common.h>
 #include <phy.h>
 #include <dm/device_compat.h>
 #include <linux/bitfield.h>
drivers/net/phy/b53.c +0 -1
index 26e8e2fe64fb..e95363067fe3 100644
@@ -22,7 +22,6 @@
  * cover other switches would be trivial.
  */
 
-#include <common.h>
 #include <command.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/net/phy/broadcom.c +0 -1
index ecccb7c3b54a..0a49015eb89a 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <phy.h>
 #include <linux/delay.h>
 
drivers/net/phy/ca_phy.c +0 -1
index edef21867b04..5b2c67d2fdad 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <linux/ctype.h>
drivers/net/phy/cortina.c +0 -1
index 1cf8b28f5827..d043e859bad7 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <linux/ctype.h>
drivers/net/phy/davicom.c +0 -1
index 31ffa1ac7a98..72d668129851 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <phy.h>
 
 #define MIIM_DM9161_SCR                0x10
drivers/net/phy/dp83867.c +0 -1
index b6726031ebb8..772cde1c520c 100644
@@ -3,7 +3,6 @@
  * TI PHY drivers
  *
  */
-#include <common.h>
 #include <log.h>
 #include <phy.h>
 #include <dm/devres.h>
drivers/net/phy/dp83869.c +0 -1
index f9d4782580e9..b6fb5adae1f4 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <phy.h>
 #include <linux/compat.h>
 #include <malloc.h>
drivers/net/phy/ethernet_id.c +0 -1
index 4dfdee60dccb..2f8454ca27da 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2022 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
drivers/net/phy/fixed.c +0 -1
index 2f0823b83651..11d361649769 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <malloc.h>
 #include <phy.h>
 #include <dm.h>
drivers/net/phy/generic_10g.c +0 -1
index 34ac51ea070c..38dc9a885631 100644
@@ -7,7 +7,6 @@
  *
  * Based loosely off of Linux's PHY Lib
  */
-#include <common.h>
 #include <miiphy.h>
 #include <phy.h>
 
drivers/net/phy/intel_xway.c +0 -1
index 9d1b97d349ff..fe50eec011ad 100644
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0+
-#include <common.h>
 #include <phy.h>
 #include <linux/bitfield.h>
 
drivers/net/phy/lxt.c +0 -1
index 20940033a38b..a817c58b128f 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <phy.h>
 
 /* LXT971 Status 2 registers */
drivers/net/phy/marvell.c +0 -1
index 0a90f710dfe4..b0a0b7fcb38b 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <errno.h>
 #include <marvell_phy.h>
 #include <phy.h>
drivers/net/phy/marvell10g.c +0 -1
index 9e64672f5cac..8c95bcbb9ad9 100644
@@ -22,7 +22,6 @@
  * If both the fiber and copper ports are connected, the first to gain
  * link takes priority and the other port is completely locked out.
  */
-#include <common.h>
 #include <console.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
drivers/net/phy/meson-gxl.c +0 -1
index b49c9b5f4953..d43b476b3c88 100644
@@ -7,7 +7,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 #include <config.h>
-#include <common.h>
 #include <linux/bitops.h>
 #include <dm.h>
 #include <phy.h>
drivers/net/phy/micrel_ksz8xxx.c +0 -1
index b0f3abcb037c..a9a64466ac2d 100644
@@ -6,7 +6,6 @@
  * author Andy Fleming
  * (C) 2012 NetModule AG, David Andrey, added KSZ9031
  */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/net/phy/micrel_ksz90x1.c +0 -1
index ffc3c987eaae..556d75e31ede 100644
@@ -8,7 +8,6 @@
  * (C) Copyright 2017 Adaptrum, Inc.
  * Written by Alexandru Gagniuc <[email protected]> for Adaptrum, Inc.
  */
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
drivers/net/phy/miiphybb.c +0 -1
index cf71f7d4e7e5..083d9d3996dc 100644
@@ -12,7 +12,6 @@
  * channel.
  */
 
-#include <common.h>
 #include <ioports.h>
 #include <ppc_asm.tmpl>
 #include <miiphy.h>
drivers/net/phy/motorcomm.c +0 -1
index a2c763c8791e..a96430cec43d 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <malloc.h>
 #include <phy.h>
 #include <linux/bitfield.h>
drivers/net/phy/mv88e61xx.c +0 -1
index 85778106eddc..ecc10f788afb 100644
@@ -29,7 +29,6 @@
  * changes may be required.
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
drivers/net/phy/mv88e6352.c +0 -1
index 56060762d85c..6284298ebc1a 100644
@@ -4,7 +4,6 @@
  * Valentin Lontgchamp, Keymile AG, [email protected]
  */
 
-#include <common.h>
 #include <command.h>
 #include <log.h>
 #include <miiphy.h>
drivers/net/phy/natsemi.c +0 -1
index 6b9e99ea1156..f7e514ef203a 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <phy.h>
 
 /* NatSemi DP83630 */
drivers/net/phy/ncsi.c +0 -1
index 2bca116a9d81..a1de438ffff1 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2019, IBM Corporation.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <phy.h>
drivers/net/phy/nxp-c45-tja11xx.c +0 -1
index f24fc5b2de61..a1e4c3d053b6 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 NXP
  * Author: Radu Pirea <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <dm/devres.h>
 #include <linux/delay.h>
drivers/net/phy/nxp-tja11xx.c +0 -1
index 471b0e322b58..a61471f42777 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/iopoll.h>
drivers/net/phy/phy.c +0 -1
index 270176cfe629..fbf85d90f546 100644
@@ -7,7 +7,6 @@
  *
  * Based loosely off of Linux's PHY Lib
  */
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <log.h>
drivers/net/phy/realtek.c +0 -1
index 7e1036b2271f..30f35cced9d6 100644
@@ -6,7 +6,6 @@
  * author Andy Fleming
  * Copyright 2016 Karsten Merker <[email protected]>
  */
-#include <common.h>
 #include <linux/bitops.h>
 #include <phy.h>
 #include <linux/delay.h>
drivers/net/phy/smsc.c +0 -1
index 056b607e0b8c..0d823f5f2b18 100644
@@ -9,7 +9,6 @@
  * Some code copied from linux kernel
  * Copyright (c) 2006 Herbert Valerio Riedel <[email protected]>
  */
-#include <common.h>
 #include <miiphy.h>
 
 /* This code does not check the partner abilities. */
drivers/net/phy/teranetics.c +0 -1
index 15f2c12ed83c..b39311976d60 100644
@@ -5,7 +5,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  * author Andy Fleming
  */
-#include <common.h>
 #include <phy.h>
 #include <linux/delay.h>
 
drivers/net/phy/vitesse.c +0 -1
index c5cf0d7dfbd1..4867d1931b44 100644
@@ -6,7 +6,6 @@
  * Original Author: Andy Fleming
  * Add vsc8662 phy support - Priyanka Jain
  */
-#include <common.h>
 #include <miiphy.h>
 
 /* Cicada Auxiliary Control/Status Register */
drivers/net/phy/xilinx_gmii2rgmii.c +0 -1
index e2969bc48424..e44b7b75bd58 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <phy.h>
drivers/net/phy/xilinx_phy.c +0 -1
index c07c780193f4..a59e17d11e5b 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <phy.h>
 #include <dm.h>
drivers/net/pic32_eth.c +0 -1
index 1333a3aa7e44..eea3c48aeffc 100644
@@ -3,7 +3,6 @@
  * (c) 2015 Purna Chandra Mandal <[email protected]>
  *
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
 #include <dm.h>
drivers/net/pic32_mdio.c +0 -1
index d4049cfea525..8610f9a1aa5d 100644
@@ -5,7 +5,6 @@
  * Copyright 2015 Microchip Inc.
  *	Purna Chandra Mandal <[email protected]>
  */
-#include <common.h>
 #include <phy.h>
 #include <miiphy.h>
 #include <errno.h>
drivers/net/qe/dm_qe_uec.c +0 -1
index 6d1509d90cf0..ac3aedd8b49e 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2020 Heiko Schocher <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <memalign.h>
drivers/net/qe/dm_qe_uec_phy.c +0 -1
index a0bcc8d3e55b..8c0168be859e 100644
@@ -8,7 +8,6 @@
  * Copyright (C) 2020 Heiko Schocher <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <miiphy.h>
drivers/net/qe/uccf.c +1 -0
index 00848a1a37d7..badf4e5db3e5 100644
@@ -7,6 +7,7 @@
  */
 
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/immap_qe.h>
drivers/net/qe/uccf.h +2 -2
index 99f8458edf67..e60bbe241cd9 100644
@@ -9,8 +9,8 @@
 #ifndef __UCCF_H__
 #define __UCCF_H__
 
-#include "common.h"
-#include "linux/immap_qe.h"
+#include <linux/types.h>
+#include <linux/immap_qe.h>
 #include <fsl_qe.h>
 
 /* Fast or Giga ethernet */
drivers/net/ravb.c +0 -1
index 4764bca70824..f1401d2f6ed2 100644
@@ -8,7 +8,6 @@
  * Based on the SuperH Ethernet driver.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/net/rswitch.c +0 -1
index 5a69ca1a0f9e..8e1b6e2f6f6a 100644
@@ -9,7 +9,6 @@
 
 #include <asm/io.h>
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/net/rtl8139.c +0 -1
index d8f24ec81a2f..2e0afad089f8 100644
@@ -68,7 +68,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/rtl8169.c +0 -1
index 93e83661cec4..e80aebc0bcf2 100644
@@ -39,7 +39,6 @@
  * 26 August 2006 Mihai Georgian <[email protected]>
  * Modified to use le32_to_cpu and cpu_to_le32 properly
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/net/sandbox-raw-bus.c +0 -1
index fb1ba5a8c83a..15670d6d24a1 100644
@@ -4,7 +4,6 @@
  * Copyright (c) 2018 Joe Hershberger <[email protected]>
  */
 
-#include <common.h>
 #include <asm/eth-raw-os.h>
 #include <dm.h>
 #include <errno.h>
drivers/net/sandbox-raw.c +0 -1
index 99eb7a3bbff6..1d716716778c 100644
@@ -8,7 +8,6 @@
 
 #include <log.h>
 #include <asm/eth-raw-os.h>
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <malloc.h>
drivers/net/sandbox.c +0 -1
index 13022addb6a3..fe3627db6e3e 100644
@@ -6,7 +6,6 @@
  * Joe Hershberger <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/net/sh_eth.c +0 -1
index 7b1f59dc4989..f1ce994cfd53 100644
@@ -9,7 +9,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <log.h>
drivers/net/sja1105.c +0 -1
index 48f044c64721..0ba84a4496f5 100644
@@ -8,7 +8,6 @@
  * Ported from Linux (drivers/net/dsa/sja1105/).
  */
 
-#include <common.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bitrev.h>
drivers/net/smc911x.c +0 -1
index 616b7ce174f4..f39ba40944f3 100644
@@ -5,7 +5,6 @@
  * (c) 2007 Pengutronix, Sascha Hauer <[email protected]>
  */
 
-#include <common.h>
 #include <command.h>
 #include <malloc.h>
 #include <net.h>
drivers/net/sun8i_emac.c +0 -1
index 8bff4fe9a9ea..f4b97798d2d6 100644
@@ -16,7 +16,6 @@
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdt_support.h>
drivers/net/sunxi_emac.c +0 -1
index f546ad1fe8dd..3dee849c97e9 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2012, Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/net/ti/am65-cpsw-nuss.c +0 -1
index b151e25d6a4c..335c8bee3fef 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/cache.h>
 #include <asm/gpio.h>
drivers/net/ti/cpsw-common.c +0 -1
index d5428274d190..3e66d7c7bdfb 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2016, Texas Instruments, Incorporated
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <asm/global_data.h>
drivers/net/ti/cpsw.c +0 -1
index 9a5e9642df11..d7746f454baf 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2010-2018 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <log.h>
drivers/net/ti/cpsw_mdio.c +0 -1
index f1b1eba75d00..9e0083ca7896 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm/device_compat.h>
 #include <log.h>
 #include <malloc.h>
drivers/net/ti/davinci_emac.c +1 -1
index 034877a76907..03a1a7a11599 100644
@@ -21,7 +21,7 @@
  * ver. 1.0: Sep 2005, Anant Gole - Created EMAC version for uBoot.
  * ver  1.1: Nov 2005, Anant Gole - Extended the RX logic for multiple descriptors
  */
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <log.h>
drivers/net/ti/keystone_net.c +0 -1
index 43dbf3f10670..c6e5bf21cf05 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2012-2014
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <asm/global_data.h>
drivers/net/tsec.c +0 -1
index 8833e3098d52..6481ee24a601 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <net.h>
drivers/net/vsc7385.c +0 -1
index 09883f06be28..bd1869dfc830 100644
@@ -13,7 +13,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <console.h>
 #include <log.h>
 #include <asm/io.h>
drivers/net/xilinx_axi_emac.c +0 -1
index ef151ee51b40..a1a39f61488e 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <display_options.h>
 #include <dm.h>
drivers/net/xilinx_axi_mrmac.c +0 -1
index 410fb25ddef4..555651937f86 100644
@@ -9,7 +9,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/net/xilinx_emaclite.c +0 -1
index 16ba915fbaaf..c25ac2e66009 100644
@@ -6,7 +6,6 @@
  * Michal SIMEK <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <net.h>
 #include <config.h>
drivers/net/zynq_gem.c +0 -1
index 7c57d32614fa..b41ee95892e8 100644
@@ -9,7 +9,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <generic-phy.h>
Signature · 1 line
2.34.1