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

Subsystems (123)
Network drivers Arm (32-bit) x86 SCSI +119 more subsystems
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/81 mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig

The constraints on the MMC_SUPPORTS_TUNING symbol can easily be expressed in Kconfig (with the addition of SPL_MMC_SUPPORTS_TUNING). Furthermore, in order to remove <common.h> from the MMC subsystem, the way this symbol is used today needs to be changed in order to continue functioning.

---
Cc: Weijie Gao <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>

---
 arch/arm/mach-mediatek/Kconfig     |  1 +
 arch/mips/mach-mtmips/Kconfig      |  1 +
 drivers/mmc/Kconfig                | 11 +++++++++++
 drivers/mmc/am654_sdhci.c          |  6 +++---
 drivers/mmc/fsl_esdhc.c            |  4 ++--
 drivers/mmc/fsl_esdhc_imx.c        |  8 ++++----
 drivers/mmc/mmc-uclass.c           |  2 +-
 drivers/mmc/mmc.c                  | 12 ++++++------
 drivers/mmc/mtk-sd.c               |  4 ++--
 drivers/mmc/octeontx_hsmmc.c       | 12 ++++++------
 drivers/mmc/omap_hsmmc.c           |  4 ++--
 drivers/mmc/sdhci-cadence.c        |  2 +-
 drivers/mmc/sdhci.c                |  4 ++--
 include/configs/mt7621.h           |  3 ---
 include/configs/mt7623.h           |  3 ---
 include/configs/octeontx2_common.h |  5 -----
 include/mmc.h                      |  9 +--------
 17 files changed, 43 insertions(+), 48 deletions(-)
arch/arm/mach-mediatek/Kconfig +1 -0
index 82018bd9d3e3..ff1fdee5c8da 100644
@@ -23,6 +23,7 @@ config TARGET_MT7622
 config TARGET_MT7623
 	bool "MediaTek MT7623 SoC"
 	select CPU_V7A
+	select MMC_SUPPORTS_TUNING
 	help
 	  The MediaTek MT7623 is a ARM-based SoC with a quad-core Cortex-A7
 	  including NEON and GPU, Mali-450 graphics, several DDR3 options,
arch/mips/mach-mtmips/Kconfig +1 -0
index 15b2792e619b..3fcd0b8465b4 100644
@@ -80,6 +80,7 @@ config SOC_MT7621
 	bool "MT7621"
 	select MIPS_CM
 	select MIPS_L2_CACHE
+	select MMC_SUPPORTS_TUNING
 	select SYS_CACHE_SHIFT_5
 	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 	select PINCTRL_MT7621
drivers/mmc/Kconfig +11 -0
index 549634891a36..d0944793c92d 100644
@@ -147,9 +147,16 @@ config SPL_MMC_IO_VOLTAGE
 	  support. For eMMC this not mandatory, but not enabling this option may
 	  prevent the driver of using the faster modes.
 
+config MMC_SUPPORTS_TUNING
+	bool
+
+config SPL_MMC_SUPPORTS_TUNING
+	bool
+
 config MMC_UHS_SUPPORT
 	bool "enable UHS support"
 	depends on MMC_IO_VOLTAGE
+	select MMC_SUPPORTS_TUNING
 	help
 	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
 	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
@@ -158,6 +165,7 @@ config MMC_UHS_SUPPORT
 config SPL_MMC_UHS_SUPPORT
 	bool "enable UHS support in SPL"
 	depends on SPL_MMC_IO_VOLTAGE
+	select SPL_MMC_SUPPORTS_TUNING
 	help
 	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
 	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
@@ -193,6 +201,7 @@ config SPL_MMC_HS400_SUPPORT
 
 config MMC_HS200_SUPPORT
 	bool "enable HS200 support"
+	select MMC_SUPPORTS_TUNING
 	help
 	  The HS200 mode is support by some eMMC. The bus frequency is up to
 	  200MHz. This mode requires tuning the IO.
@@ -200,6 +209,7 @@ config MMC_HS200_SUPPORT
 config SPL_MMC_HS200_SUPPORT
 	bool "enable HS200 support in SPL"
 	depends on SPL_MMC
+	select SPL_MMC_SUPPORTS_TUNING
 	help
 	  The HS200 mode is support by some eMMC. The bus frequency is up to
 	  200MHz. This mode requires tuning the IO.
@@ -347,6 +357,7 @@ config MMC_OCTEONTX
 	bool "Marvell Octeon Multimedia Card Interface support"
 	depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
 	depends on DM_MMC
+	select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2
 	help
 	  This selects the Octeon Multimedia card Interface.
 	  If you have an OcteonTX/TX2 or MIPS Octeon board with a
drivers/mmc/am654_sdhci.c +3 -3
index fadab7d40bb7..ffb461c2f6c1 100644
@@ -397,7 +397,7 @@ static void am654_sdhci_write_b(struct sdhci_host *host, u8 val, int reg)
 
 	writeb(val, host->ioaddr + reg);
 }
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 #define ITAPDLY_LENGTH 32
 #define ITAPDLY_LAST_INDEX (ITAPDLY_LENGTH - 1)
 
@@ -500,7 +500,7 @@ static int am654_sdhci_execute_tuning(struct mmc *mmc, u8 opcode)
 }
 #endif
 const struct sdhci_ops am654_sdhci_ops = {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.platform_execute_tuning = am654_sdhci_execute_tuning,
 #endif
 	.deferred_probe		= am654_sdhci_deferred_probe,
@@ -560,7 +560,7 @@ static int j721e_4bit_sdhci_set_ios_post(struct sdhci_host *host)
 }
 
 const struct sdhci_ops j721e_4bit_sdhci_ops = {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.platform_execute_tuning = am654_sdhci_execute_tuning,
 #endif
 	.deferred_probe		= am654_sdhci_deferred_probe,
drivers/mmc/fsl_esdhc.c +2 -2
index 595d88bd5625..5ac1c6a0e9e1 100644
@@ -1102,7 +1102,7 @@ static int fsl_esdhc_reinit(struct udevice *dev)
 	return esdhc_init_common(priv, &plat->mmc);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int fsl_esdhc_execute_tuning(struct udevice *dev, uint32_t opcode)
 {
 	struct fsl_esdhc_plat *plat = dev_get_plat(dev);
@@ -1175,7 +1175,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
 	.get_cd		= fsl_esdhc_get_cd,
 	.send_cmd	= fsl_esdhc_send_cmd,
 	.set_ios	= fsl_esdhc_set_ios,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = fsl_esdhc_execute_tuning,
 #endif
 	.reinit = fsl_esdhc_reinit,
drivers/mmc/fsl_esdhc_imx.c +4 -4
index b74c01400205..8b2ef9391f3e 100644
@@ -635,7 +635,7 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock)
 	priv->clock = clock;
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int esdhc_change_pinstate(struct udevice *dev)
 {
 	struct fsl_esdhc_priv *priv = dev_get_priv(dev);
@@ -913,7 +913,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc)
 	int ret __maybe_unused;
 	u32 clock;
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/*
 	 * call esdhc_set_timing() before update the clock rate,
 	 * This is because current we support DDR and SDR mode,
@@ -951,7 +951,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc)
 			esdhc_setbits32(&regs->sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
 	}
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/*
 	 * For HS400/HS400ES mode, make sure set the strobe dll in the
 	 * target clock rate. So call esdhc_set_strobe_dll() after the
@@ -1618,7 +1618,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
 	.get_cd		= fsl_esdhc_get_cd,
 	.send_cmd	= fsl_esdhc_send_cmd,
 	.set_ios	= fsl_esdhc_set_ios,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning	= fsl_esdhc_execute_tuning,
 #endif
 #if CONFIG_IS_ENABLED(MMC_HS400_ES_SUPPORT)
drivers/mmc/mmc-uclass.c +1 -1
index 24170c59ecc1..0685b86af464 100644
@@ -112,7 +112,7 @@ int mmc_getcd(struct mmc *mmc)
 	return dm_mmc_get_cd(mmc->dev);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode)
 {
 	struct dm_mmc_ops *ops = mmc_get_ops(dev);
drivers/mmc/mmc.c +6 -6
index 7b068c71ff37..4543d94c7205 100644
@@ -329,7 +329,7 @@ int mmc_set_blocklen(struct mmc *mmc, int len)
 				   MMC_QUIRK_RETRY_SET_BLOCKLEN, 4);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static const u8 tuning_blk_pattern_4bit[] = {
 	0xff, 0x0f, 0xff, 0x00, 0xff, 0xcc, 0xc3, 0xcc,
 	0xc3, 0x3c, 0xcc, 0xff, 0xfe, 0xff, 0xfe, 0xef,
@@ -1621,7 +1621,7 @@ static inline int bus_width(uint cap)
 }
 
 #if !CONFIG_IS_ENABLED(DM_MMC)
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int mmc_execute_tuning(struct mmc *mmc, uint opcode)
 {
 	return -ENOTSUPP;
@@ -1702,7 +1702,7 @@ void mmc_dump_capabilities(const char *text, uint caps)
 struct mode_width_tuning {
 	enum bus_mode mode;
 	uint widths;
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	uint tuning;
 #endif
 };
@@ -1743,7 +1743,7 @@ static inline int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage)
 #if !CONFIG_IS_ENABLED(MMC_TINY)
 static const struct mode_width_tuning sd_modes_by_pref[] = {
 #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	{
 		.mode = UHS_SDR104,
 		.widths = MMC_MODE_4BIT | MMC_MODE_1BIT,
@@ -1846,7 +1846,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)
 				mmc_set_clock(mmc, mmc->tran_speed,
 						MMC_CLK_ENABLE);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 				/* execute tuning if needed */
 				if (mwt->tuning && !mmc_host_is_spi(mmc)) {
 					err = mmc_execute_tuning(mmc,
@@ -2224,7 +2224,7 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
 				mmc_select_mode(mmc, mwt->mode);
 				mmc_set_clock(mmc, mmc->tran_speed,
 					      MMC_CLK_ENABLE);
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 
 				/* execute tuning if needed */
 				if (mwt->tuning) {
drivers/mmc/mtk-sd.c +2 -2
index 296aaee73318..4bd66ecf93ad 100644
@@ -1011,7 +1011,7 @@ static int msdc_ops_get_wp(struct udevice *dev)
 #endif
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static u32 test_delay_bit(u32 delay, u32 bit)
 {
 	bit %= PAD_DELAY_MAX;
@@ -1760,7 +1760,7 @@ static const struct dm_mmc_ops msdc_ops = {
 	.set_ios = msdc_ops_set_ios,
 	.get_cd = msdc_ops_get_cd,
 	.get_wp = msdc_ops_get_wp,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = msdc_execute_tuning,
 #endif
 	.wait_dat0 = msdc_ops_wait_dat0,
drivers/mmc/octeontx_hsmmc.c +6 -6
index 7f9c4f4d36d4..3b5e12217325 100644
@@ -794,7 +794,7 @@ octeontx_mmc_get_cr_mods(struct mmc *mmc, const struct mmc_cmd *cmd,
 	u8 desired_ctype = 0;
 
 	if (IS_MMC(mmc)) {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 		if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) {
 			if (cmd->resp_type == MMC_RSP_R1)
 				cr.rtype_xor = 1;
@@ -1631,7 +1631,7 @@ static int octeontx_mmc_dev_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
 	return octeontx_mmc_send_cmd(dev_to_mmc(dev), cmd, data);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int octeontx_mmc_test_cmd(struct mmc *mmc, u32 opcode, int *statp)
 {
 	struct mmc_cmd cmd;
@@ -2421,12 +2421,12 @@ static int octeontx_mmc_execute_tuning(struct udevice *dev, u32 opcode)
 
 	return 0;
 }
-#else /* MMC_SUPPORTS_TUNING */
+#else /* CONFIG_MMC_SUPPORTS_TUNING */
 static void octeontx_mmc_set_emm_timing(struct mmc *mmc,
 					union mio_emm_timing emm_timing)
 {
 }
-#endif /* MMC_SUPPORTS_TUNING */
+#endif /* CONFIG_MMC_SUPPORTS_TUNING */
 
 /**
  * Calculate the clock period with rounding up
@@ -2573,7 +2573,7 @@ static int octeontx_mmc_set_ios(struct udevice *dev)
 
 	err = octeontx_mmc_configure_delay(mmc);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	if (!err && mmc->selected_mode == MMC_HS_400 && !slot->hs400_tuned) {
 		debug("%s: Tuning HS400 mode\n", __func__);
 		err = octeontx_tune_hs400(mmc);
@@ -3776,7 +3776,7 @@ static const struct dm_mmc_ops octeontx_hsmmc_ops = {
 	.set_ios = octeontx_mmc_set_ios,
 	.get_cd = octeontx_mmc_get_cd,
 	.get_wp = octeontx_mmc_get_wp,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = octeontx_mmc_execute_tuning,
 #endif
 };
drivers/mmc/omap_hsmmc.c +2 -2
index 99f21b2c546a..118d9cd16fdb 100644
@@ -577,7 +577,7 @@ static uint32_t omap_hsmmc_set_capabilities(struct mmc *mmc)
 	return val;
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static void omap_hsmmc_disable_tuning(struct mmc *mmc)
 {
 	struct hsmmc *mmc_base;
@@ -1518,7 +1518,7 @@ static const struct dm_mmc_ops omap_hsmmc_ops = {
 	.get_cd		= omap_hsmmc_getcd,
 	.get_wp		= omap_hsmmc_getwp,
 #endif
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = omap_hsmmc_execute_tuning,
 #endif
 	.wait_dat0	= omap_hsmmc_wait_dat0,
drivers/mmc/sdhci-cadence.c +1 -1
index c0a9f60b1496..0570dbca00d7 100644
@@ -274,7 +274,7 @@ static int sdhci_cdns_probe(struct udevice *dev)
 	host->ops = &sdhci_cdns_ops;
 	host->quirks |= SDHCI_QUIRK_WAIT_SEND_CMD;
 	sdhci_cdns_mmc_ops = sdhci_ops;
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	sdhci_cdns_mmc_ops.execute_tuning = sdhci_cdns_execute_tuning;
 #endif
 
drivers/mmc/sdhci.c +2 -2
index af654ea8d13c..d06f2c02bb7b 100644
@@ -351,7 +351,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
 		return -ECOMM;
 }
 
-#if defined(CONFIG_DM_MMC) && defined(MMC_SUPPORTS_TUNING)
+#if defined(CONFIG_DM_MMC) && CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int sdhci_execute_tuning(struct udevice *dev, uint opcode)
 {
 	int err;
@@ -848,7 +848,7 @@ const struct dm_mmc_ops sdhci_ops = {
 	.set_ios	= sdhci_set_ios,
 	.get_cd		= sdhci_get_cd,
 	.deferred_probe	= sdhci_deferred_probe,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning	= sdhci_execute_tuning,
 #endif
 	.wait_dat0	= sdhci_wait_dat0,
include/configs/mt7621.h +0 -3
index bf2bc2d45c09..e6dba7071950 100644
@@ -14,9 +14,6 @@
 
 #define CFG_SYS_INIT_SP_OFFSET		0x800000
 
-/* MMC */
-#define MMC_SUPPORTS_TUNING
-
 /* Serial SPL */
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
 #define CFG_SYS_NS16550_CLK		50000000
include/configs/mt7623.h +0 -3
index fca234a1dc71..6f42cd32d80f 100644
@@ -11,9 +11,6 @@
 
 #include <linux/sizes.h>
 
-/* MMC */
-#define MMC_SUPPORTS_TUNING
-
 /* DRAM */
 #define CFG_SYS_SDRAM_BASE		0x80000000
 
include/configs/octeontx2_common.h +0 -5
index c4db38562d83..f415dffddbea 100644
@@ -19,9 +19,4 @@
 					"loadaddr=20080000\0"	\
 					"ethrotate=yes\0"
 
-#if defined(CONFIG_MMC_OCTEONTX)
-#define MMC_SUPPORTS_TUNING
-/** EMMC specific defines */
-#endif
-
 #endif /* __OCTEONTX2_COMMON_H__ */
include/mmc.h +1 -8
index 4b8327f1f93b..7f1900363b91 100644
@@ -18,13 +18,6 @@
 
 struct bd_info;
 
-#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-
 /* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */
 #define SD_VERSION_SD	(1U << 31)
 #define MMC_VERSION_MMC	(1U << 30)
@@ -485,7 +478,7 @@ struct dm_mmc_ops {
 	 */
 	int (*get_wp)(struct udevice *dev);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/**
 	 * execute_tuning() - Start the tuning process
 	 *
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/81 arm: aspeed: Add missing <linux/types.h>

The scu* files have many "Linux" style types in them, add <linux/types.h>

---
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>

---
 arch/arm/include/asm/arch-aspeed/scu_ast2500.h | 1 +
 arch/arm/include/asm/arch-aspeed/scu_ast2600.h | 2 ++
 2 files changed, 3 insertions(+)
arch/arm/include/asm/arch-aspeed/scu_ast2500.h +1 -0
index 50d6a6bc7605..a415693de6ea 100644
@@ -140,6 +140,7 @@
 #define SCU_CLKDUTY_RGMII2TXCK_MASK	(0x7f << SCU_CLKDUTY_RGMII2TXCK_SHIFT)
 
 #ifndef __ASSEMBLY__
+#include <linux/types.h>
 
 struct ast2500_clk_priv {
 	struct ast2500_scu *scu;
arch/arm/include/asm/arch-aspeed/scu_ast2600.h +2 -0
index 251bfa269bf4..a2c8852db842 100644
@@ -125,6 +125,8 @@
 #define SCU_MISC_CTRL1_UART5_DIV		BIT(12)
 
 #ifndef __ASSEMBLY__
+#include <linux/types.h>
+
 struct ast2600_scu {
 	uint32_t prot_key1;		/* 0x000 */
 	uint32_t chip_id1;		/* 0x004 */
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH 3/81 arm: sunxi: Add missing <linux/types.h>

In reply to Tom Rini

These files have many "Linux" style types in them, add <linux/types.h>

---
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>

---
 arch/arm/include/asm/arch-sunxi/pmic_bus.h | 2 ++
 arch/arm/include/asm/arch-sunxi/tve.h      | 2 ++
 2 files changed, 4 insertions(+)
arch/arm/include/asm/arch-sunxi/pmic_bus.h +2 -0
index 5ab9b2809f29..e26459fdd3bf 100644
@@ -8,6 +8,8 @@
 #ifndef _SUNXI_PMIC_BUS_H
 #define _SUNXI_PMIC_BUS_H
 
+#include <linux/types.h>
+
 int pmic_bus_init(void);
 int pmic_bus_read(u8 reg, u8 *data);
 int pmic_bus_write(u8 reg, u8 data);
arch/arm/include/asm/arch-sunxi/tve.h +2 -0
index 46cd87e79e8d..4fbb4b91c86b 100644
@@ -9,6 +9,8 @@
 #ifndef _TVE_H
 #define _TVE_H
 
+#include <linux/types.h>
+
 enum tve_mode {
 	tve_mode_vga,
 	tve_mode_composite_pal,
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 4/81 arm: nexell: Add missing <linux/types.h>

In reply to Tom Rini

This file has many "Linux" style types in it, add <linux/types.h>

---
Cc: Stefan Bosch <[email protected]>

---
 arch/arm/mach-nexell/include/mach/mipi_display.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-nexell/include/mach/mipi_display.h +2 -0
index f3fdec64647c..9183ffdd9c3d 100644
@@ -11,6 +11,8 @@
 #ifndef MIPI_DISPLAY_H
 #define MIPI_DISPLAY_H
 
+#include <linux/types.h>
+
 /* MIPI DSI Processor-to-Peripheral transaction types */
 enum {
 	MIPI_DSI_V_SYNC_START				= 0x01,
Signature · 1 line
2.34.1
Reviewed-by on v1 4/81
#4 lore raw

Re: [PATCH 04/81] arm: nexell: Add missing <linux/types.h>

Quoted 3 lines · Tom Rini

This file has many "Linux" style types in it, add <linux/types.h>

Thanks for your awesome work!

Quoted 19 lines

---
Cc: Stefan Bosch <[email protected]>

---
  arch/arm/mach-nexell/include/mach/mipi_display.h | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/mach-nexell/include/mach/mipi_display.h +2 -0
index f3fdec64647c..9183ffdd9c3d 100644
@@ -11,6 +11,8 @@
  #ifndef MIPI_DISPLAY_H
  #define MIPI_DISPLAY_H
 
+#include <linux/types.h>
+
  /* MIPI DSI Processor-to-Peripheral transaction types */
  enum {
  	MIPI_DSI_V_SYNC_START				= 0x01,
author
#5 lore raw

PATCH 5/81 arm: socfpga: Add missing <linux/types.h>

In reply to Tom Rini

This file has many "Linux" style types in it, add <linux/types.h>

---
 arch/arm/mach-socfpga/include/mach/secure_reg_helper.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-socfpga/include/mach/secure_reg_helper.h +2 -0
index d5a11122c723..01335dc93108 100644
@@ -7,6 +7,8 @@
 #ifndef	_SECURE_REG_HELPER_H_
 #define	_SECURE_REG_HELPER_H_
 
+#include <linux/types.h>
+
 #define SOCFPGA_SECURE_REG_SYSMGR_SOC64_SDMMC 1
 #define SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC0 2
 #define SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC1 3
Signature · 1 line
2.34.1
author
#6 lore raw

PATCH 6/81 x86: Add missing <linux/types.h>

In reply to Tom Rini

This file has many "Linux" style types in it, add <linux/types.h>

---
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>

---
 arch/x86/include/asm/coreboot_tables.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/coreboot_tables.h +1 -0
index c967e6ad0ce5..54aeffb9889d 100644
@@ -8,6 +8,7 @@
 #ifndef _COREBOOT_TABLES_H
 #define _COREBOOT_TABLES_H
 
+#include <linux/kernel.h>
 #include <linux/types.h>
 
 struct timestamp_entry {
Signature · 1 line
2.34.1
author
#7 lore raw

PATCH 7/81 include: Add missing <linux/types.h>

In reply to Tom Rini

These files have many "Linux" style types in them, add <linux/types.h>

---
 include/display.h    | 2 ++
 include/fuse.h       | 2 ++
 include/i2c_eeprom.h | 1 +
 include/libata.h     | 1 +
 include/ram.h        | 2 ++
 include/sm.h         | 2 +-
 6 files changed, 9 insertions(+), 1 deletion(-)
include/display.h +2 -0
index 3d0121764411..e8d8aaa15fbc 100644
@@ -6,6 +6,8 @@
 #ifndef _DISPLAY_H
 #define _DISPLAY_H
 
+#include <linux/types.h>
+
 struct udevice;
 struct display_timing;
 
include/fuse.h +2 -0
index d48dcdfa6474..4519821af7ea 100644
@@ -11,6 +11,8 @@
 #ifndef _FUSE_H_
 #define _FUSE_H_
 
+#include <linux/types.h>
+
 /*
  * Read/Sense/Program/Override interface:
  *   bank:    Fuse bank
include/i2c_eeprom.h +1 -0
index cba991e3574f..1fe32d2dd687 100644
@@ -7,6 +7,7 @@
 #define __I2C_EEPROM
 
 #include <linux/errno.h>
+#include <linux/types.h>
 
 struct udevice;
 
include/libata.h +1 -0
index a55e9315a730..fa39d21a44a0 100644
@@ -10,6 +10,7 @@
 #ifndef __LIBATA_H__
 #define __LIBATA_H__
 
+#include <linux/types.h>
 
 enum {
 	/* various global constants */
include/ram.h +2 -0
index 2fc971df465a..3600bb57a6cf 100644
@@ -7,6 +7,8 @@
 #ifndef __RAM_H
 #define __RAM_H
 
+#include <linux/types.h>
+
 struct udevice;
 
 struct ram_info {
include/sm.h +1 -1
index afa9c89055e5..fbc156ad68a7 100644
@@ -19,7 +19,7 @@
  * implementation of the driver you are using.
  */
 
-#include <asm/types.h>
+#include <linux/types.h>
 #include <asm/ptrace.h>
 
 struct udevice;
Signature · 1 line
2.34.1
author
#8 lore raw

PATCH 8/81 fsl_ifc.h: Add <asm/ppc.h>

In reply to Tom Rini

In the case of PowerPC, this file needs to include <asm/ppc.h> in order to resolve all of the references it makes.

---
 include/fsl_ifc.h | 2 ++
 1 file changed, 2 insertions(+)
include/fsl_ifc.h +2 -0
index f9a0a7017d4a..4991d9322007 100644
@@ -12,6 +12,8 @@
 #include <part.h>
 #ifdef CONFIG_ARM
 #include <asm/arch/soc.h>
+#else
+#include <asm/ppc.h>
 #endif
 
 #define FSL_IFC_V1_1_0	0x01010000
Signature · 1 line
2.34.1
author
#9 lore raw

PATCH 9/81 include/linux/compat.h: Add <time.h>

In reply to Tom Rini

As this file has macros which use get_timer() it must include <time.h> to resolve this.

---
 include/linux/compat.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/compat.h +1 -0
index f8e3570d1ad2..623814516175 100644
@@ -5,6 +5,7 @@
 #include <cyclic.h>
 #include <log.h>
 #include <malloc.h>
+#include <time.h>
 
 #include <asm/processor.h>
 
Signature · 1 line
2.34.1
author
#10 lore raw

PATCH 10/81 adc: 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: Neil Armstrong <[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: Jonas Karlman <[email protected]>
Cc: Luca Ellero <[email protected]>
Cc: Haibo Chen <[email protected]>
Cc: Quentin Schulz <[email protected]>
Cc: Johan Jonker <[email protected]>

---
 drivers/adc/adc-uclass.c      | 1 -
 drivers/adc/exynos-adc.c      | 1 -
 drivers/adc/imx93-adc.c       | 1 -
 drivers/adc/meson-saradc.c    | 1 -
 drivers/adc/rockchip-saradc.c | 1 -
 drivers/adc/sandbox.c         | 1 -
 drivers/adc/stm32-adc-core.c  | 1 -
 drivers/adc/stm32-adc.c       | 1 -
 8 files changed, 8 deletions(-)
drivers/adc/adc-uclass.c +0 -1
index 1b35bf22014f..16600be821c9 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_ADC
 
-#include <common.h>
 #include <errno.h>
 #include <div64.h>
 #include <dm.h>
drivers/adc/exynos-adc.c +0 -1
index 2bda733af90d..ecc564cd219a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Samsung Electronics
  * Przemyslaw Marczak <[email protected]>
  */
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <adc.h>
drivers/adc/imx93-adc.c +0 -1
index 41d04e0426cd..f593fb6447b3 100644
@@ -6,7 +6,6 @@
  * Originally based on NXP linux-imx kernel v5.15 drivers/iio/adc/imx93_adc.c
  */
 
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <linux/bitfield.h>
drivers/adc/meson-saradc.c +0 -1
index c15c7fea47fe..60e348968fb5 100644
@@ -7,7 +7,6 @@
  * Amlogic Meson Successive Approximation Register (SAR) A/D Converter
  */
 
-#include <common.h>
 #include <adc.h>
 #include <clk.h>
 #include <dm.h>
drivers/adc/rockchip-saradc.c +0 -1
index 10ded1b088f3..f6832ab30731 100644
@@ -5,7 +5,6 @@
  * Rockchip SARADC driver for U-Boot
  */
 
-#include <common.h>
 #include <adc.h>
 #include <clk.h>
 #include <dm.h>
drivers/adc/sandbox.c +0 -1
index 43cad34ffebf..24d4af63bd9b 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Samsung Electronics
  * Przemyslaw Marczak <[email protected]>
  */
-#include <common.h>
 #include <errno.h>
 #include <dm.h>
 #include <adc.h>
drivers/adc/stm32-adc-core.c +0 -1
index 6c176961f17a..af340b8b273b 100644
@@ -6,7 +6,6 @@
  * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc-core.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
drivers/adc/stm32-adc.c +0 -1
index 1fba707c6f7d..d50f00f1233e 100644
@@ -6,7 +6,6 @@
  * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc.c.
  */
 
-#include <common.h>
 #include <adc.h>
 #include <dm.h>
 #include <asm/io.h>
Signature · 1 line
2.34.1
author
#11 lore raw

PATCH 11/81 ata: 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: Samuel Holland <[email protected]>
Cc: Sam Edwards <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Tony Dinh <[email protected]>
Cc: Michal Simek <[email protected]>

---
 drivers/ata/ahci-pci.c     | 1 -
 drivers/ata/ahci-uclass.c  | 1 -
 drivers/ata/ahci.c         | 2 +-
 drivers/ata/ahci_mvebu.c   | 1 -
 drivers/ata/ahci_sunxi.c   | 1 -
 drivers/ata/dwc_ahci.c     | 1 -
 drivers/ata/dwc_ahsata.c   | 1 -
 drivers/ata/fsl_sata.c     | 1 -
 drivers/ata/libata.c       | 2 +-
 drivers/ata/mtk_ahci.c     | 1 -
 drivers/ata/sata.c         | 1 -
 drivers/ata/sata_bootdev.c | 1 -
 drivers/ata/sata_ceva.c    | 1 -
 drivers/ata/sata_mv.c      | 2 +-
 drivers/ata/sata_sil.c     | 1 -
 15 files changed, 3 insertions(+), 15 deletions(-)
drivers/ata/ahci-pci.c +0 -1
index 5356b9d83d34..f2102aaa6353 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <scsi.h>
 #include <dm.h>
drivers/ata/ahci-uclass.c +0 -1
index d398b50b9a1e..7affb3f1ec79 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_AHCI
 
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 
drivers/ata/ahci.c +1 -1
index 04ddc3394648..ac869296d525 100644
@@ -8,10 +8,10 @@
  *
  * This driver provides a SCSI interface to SATA.
  */
-#include <common.h>
 #include <blk.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 
drivers/ata/ahci_mvebu.c +0 -1
index f05150d61ddf..f6e2d6bee45b 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 #include <log.h>
drivers/ata/ahci_sunxi.c +0 -1
index 9064774e6614..6cf5cee055e7 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 #include <log.h>
drivers/ata/dwc_ahci.c +0 -1
index 15fd3e365b2b..b480cde4465b 100644
@@ -8,7 +8,6 @@
  * Author: Mugunthan V N <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <ahci.h>
 #include <scsi.h>
drivers/ata/dwc_ahsata.c +0 -1
index b4d4e39c9b3b..a29d641343ed 100644
@@ -4,7 +4,6 @@
  * Terry Lv <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <cpu_func.h>
drivers/ata/fsl_sata.c +0 -1
index 969bc191f8e8..4990148388b6 100644
@@ -5,7 +5,6 @@
  * Author: Dave Liu <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <command.h>
drivers/ata/libata.c +1 -1
index 47e2c5c1cc40..ef659cb1728a 100644
@@ -5,9 +5,9 @@
  *		port from the libata of linux kernel
  */
 
-#include <common.h>
 #include <compiler.h>
 #include <libata.h>
+#include <stdio.h>
 
 u64 ata_id_n_sectors(u16 *id)
 {
drivers/ata/mtk_ahci.c +0 -1
index 2c5227df306b..53aabee0a5e6 100644
@@ -8,7 +8,6 @@
  * Author: Frank Wunderlich <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/ata/sata.c +0 -1
index 784d9bbeacb4..84437d3d346b 100644
@@ -9,7 +9,6 @@
  *		Dave Liu <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <dm.h>
drivers/ata/sata_bootdev.c +0 -1
index f638493ce04f..a5ca6f6fd5bb 100644
@@ -5,7 +5,6 @@
  * Copyright 2023 Tony Dinh <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <bootdev.h>
 #include <dm.h>
drivers/ata/sata_ceva.c +0 -1
index 7769d4f99efd..a81b3165992a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 - 2016 Xilinx, Inc.
  * Michal Simek <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <ahci.h>
 #include <generic-phy.h>
drivers/ata/sata_mv.c +1 -1
index 94d7369351a3..ac78760a33eb 100644
@@ -31,7 +31,6 @@
  * No port multiplier support
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <bootdev.h>
@@ -46,6 +45,7 @@
 #include <libata.h>
 #include <malloc.h>
 #include <sata.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/ata/sata_sil.c +0 -1
index 43a91a79120a..5b80f6249d76 100644
@@ -5,7 +5,6 @@
  * Author: Tang Yuantian <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 11/81
#12 lore raw

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

Quoted 12 lines

---
Cc: Tom Rini <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Samuel Holland <[email protected]>
Cc: Sam Edwards <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Tony Dinh <[email protected]>
Cc: Michal Simek <[email protected]>

Quoted 213 lines
---
 drivers/ata/ahci-pci.c     | 1 -
 drivers/ata/ahci-uclass.c  | 1 -
 drivers/ata/ahci.c         | 2 +-
 drivers/ata/ahci_mvebu.c   | 1 -
 drivers/ata/ahci_sunxi.c   | 1 -
 drivers/ata/dwc_ahci.c     | 1 -
 drivers/ata/dwc_ahsata.c   | 1 -
 drivers/ata/fsl_sata.c     | 1 -
 drivers/ata/libata.c       | 2 +-
 drivers/ata/mtk_ahci.c     | 1 -
 drivers/ata/sata.c         | 1 -
 drivers/ata/sata_bootdev.c | 1 -
 drivers/ata/sata_ceva.c    | 1 -
 drivers/ata/sata_mv.c      | 2 +-
 drivers/ata/sata_sil.c     | 1 -
 15 files changed, 3 insertions(+), 15 deletions(-)
drivers/ata/ahci-pci.c +0 -1
index 5356b9d83d34..f2102aaa6353 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <scsi.h>
 #include <dm.h>
drivers/ata/ahci-uclass.c +0 -1
index d398b50b9a1e..7affb3f1ec79 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_AHCI
 
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 
drivers/ata/ahci.c +1 -1
index 04ddc3394648..ac869296d525 100644
@@ -8,10 +8,10 @@
  *
  * This driver provides a SCSI interface to SATA.
  */
-#include <common.h>
 #include <blk.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 
drivers/ata/ahci_mvebu.c +0 -1
index f05150d61ddf..f6e2d6bee45b 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 #include <log.h>
drivers/ata/ahci_sunxi.c +0 -1
index 9064774e6614..6cf5cee055e7 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <ahci.h>
 #include <dm.h>
 #include <log.h>
drivers/ata/dwc_ahci.c +0 -1
index 15fd3e365b2b..b480cde4465b 100644
@@ -8,7 +8,6 @@
  * Author: Mugunthan V N <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <ahci.h>
 #include <scsi.h>
drivers/ata/dwc_ahsata.c +0 -1
index b4d4e39c9b3b..a29d641343ed 100644
@@ -4,7 +4,6 @@
  * Terry Lv <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <cpu_func.h>
drivers/ata/fsl_sata.c +0 -1
index 969bc191f8e8..4990148388b6 100644
@@ -5,7 +5,6 @@
  * Author: Dave Liu <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <command.h>
drivers/ata/libata.c +1 -1
index 47e2c5c1cc40..ef659cb1728a 100644
@@ -5,9 +5,9 @@
  *             port from the libata of linux kernel
  */
 
-#include <common.h>
 #include <compiler.h>
 #include <libata.h>
+#include <stdio.h>
 
 u64 ata_id_n_sectors(u16 *id)
 {
drivers/ata/mtk_ahci.c +0 -1
index 2c5227df306b..53aabee0a5e6 100644
@@ -8,7 +8,6 @@
  * Author: Frank Wunderlich <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/ata/sata.c +0 -1
index 784d9bbeacb4..84437d3d346b 100644
@@ -9,7 +9,6 @@
  *             Dave Liu <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <dm.h>
drivers/ata/sata_bootdev.c +0 -1
index f638493ce04f..a5ca6f6fd5bb 100644
@@ -5,7 +5,6 @@
  * Copyright 2023 Tony Dinh <[email protected]>
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <bootdev.h>
 #include <dm.h>
drivers/ata/sata_ceva.c +0 -1
index 7769d4f99efd..a81b3165992a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 - 2016 Xilinx, Inc.
  * Michal Simek <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <ahci.h>
 #include <generic-phy.h>
drivers/ata/sata_mv.c +1 -1
index 94d7369351a3..ac78760a33eb 100644
@@ -31,7 +31,6 @@
  * No port multiplier support
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <blk.h>
 #include <bootdev.h>
@@ -46,6 +45,7 @@
 #include <libata.h>
 #include <malloc.h>
 #include <sata.h>
+#include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/ata/sata_sil.c +0 -2
index 43a91a79120a..5b80f6249d76 100644
@@ -5,7 +5,6 @@
  * Author: Tang Yuantian <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
--

2.34.1

author
#13 lore raw

PATCH 12/81 axi: 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: Heinrich Schuchardt <[email protected]>

---
 drivers/axi/axi-emul-uclass.c | 1 -
 drivers/axi/axi-uclass.c      | 1 -
 drivers/axi/axi_sandbox.c     | 1 -
 drivers/axi/ihs_axi.c         | 1 -
 drivers/axi/sandbox_store.c   | 1 -
 5 files changed, 5 deletions(-)
drivers/axi/axi-emul-uclass.c +0 -1
index e6f3ef072005..bea0b040738c 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_AXI_EMUL
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <log.h>
drivers/axi/axi-uclass.c +0 -1
index 41551ae85c9c..fa2475cbaf4e 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_AXI
 
-#include <common.h>
 #include <dm.h>
 #include <axi.h>
 
drivers/axi/axi_sandbox.c +0 -1
index b91c91f6b3b6..6f698a405f92 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <asm/axi.h>
drivers/axi/ihs_axi.c +0 -1
index a7e9761fbfc2..a37dd1e17867 100644
@@ -7,7 +7,6 @@
  * Mario Six,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <log.h>
drivers/axi/sandbox_store.c +0 -1
index ef349a50b798..b9413c758f7b 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <axi.h>
 #include <dm.h>
 #include <log.h>
Signature · 1 line
2.34.1
author
#14 lore raw

PATCH 13/81 bios_emulator: 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: Bin Meng <[email protected]>

---
 drivers/bios_emulator/atibios.c         | 1 -
 drivers/bios_emulator/besys.c           | 1 -
 drivers/bios_emulator/bios.c            | 1 -
 drivers/bios_emulator/biosemu.c         | 1 -
 drivers/bios_emulator/x86emu/debug.c    | 1 -
 drivers/bios_emulator/x86emu/decode.c   | 1 -
 drivers/bios_emulator/x86emu/ops.c      | 1 -
 drivers/bios_emulator/x86emu/ops2.c     | 1 -
 drivers/bios_emulator/x86emu/prim_ops.c | 1 -
 drivers/bios_emulator/x86emu/sys.c      | 1 -
 10 files changed, 10 deletions(-)
drivers/bios_emulator/atibios.c +0 -1
index 7ebead6bfad6..d544ffb5ffb6 100644
@@ -45,7 +45,6 @@
 *		Jason ported this file to u-boot to run the ATI video card
 *		BIOS in u-boot.
 ****************************************************************************/
-#include <common.h>
 #include <compiler.h>
 #include <bios_emul.h>
 #include <errno.h>
drivers/bios_emulator/besys.c +0 -1
index 02c4286a854c..690fb5a4d7b3 100644
@@ -48,7 +48,6 @@
 ****************************************************************************/
 
 #define __io
-#include <common.h>
 #include <asm/io.h>
 #include "biosemui.h"
 
drivers/bios_emulator/bios.c +0 -1
index 9596a1fdd3e0..7f883daf8f06 100644
@@ -42,7 +42,6 @@
 ****************************************************************************/
 
 #define __io
-#include <common.h>
 #include <asm/io.h>
 #include "biosemui.h"
 
drivers/bios_emulator/biosemu.c +0 -1
index 82befbae66f7..ba4328474ce2 100644
@@ -46,7 +46,6 @@
 ****************************************************************************/
 
 #include <malloc.h>
-#include <common.h>
 #include "biosemui.h"
 
 BE_sysEnv _BE_env = {{0}};
drivers/bios_emulator/x86emu/debug.c +0 -1
index 95f3cc09aad5..b426dc3bc45e 100644
@@ -38,7 +38,6 @@
 ****************************************************************************/
 
 #include <stdarg.h>
-#include <common.h>
 #include <linux/ctype.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
drivers/bios_emulator/x86emu/decode.c +0 -1
index e2028eaf0833..7e188d58a52c 100644
@@ -36,7 +36,6 @@
 *		instruction decoding and accessess of immediate data via IP.  etc.
 *
 ****************************************************************************/
-#include <common.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
 
drivers/bios_emulator/x86emu/ops.c +0 -1
index 8c1a146165c9..57422ec3d473 100644
@@ -72,7 +72,6 @@
 *
 ****************************************************************************/
 
-#include <common.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
 
drivers/bios_emulator/x86emu/ops2.c +0 -1
index 6cd1ac398252..32fecb347913 100644
@@ -41,7 +41,6 @@
 *
 ****************************************************************************/
 
-#include <common.h>
 #include <linux/compiler.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
drivers/bios_emulator/x86emu/prim_ops.c +0 -1
index 5f6c795fb7ff..b3cccb17f202 100644
@@ -97,7 +97,6 @@
 *
 ****************************************************************************/
 
-#include <common.h>
 
 #define PRIM_OPS_NO_REDEFINE_ASM
 #include "x86emu/x86emui.h"
drivers/bios_emulator/x86emu/sys.c +0 -1
index f96652415cd3..483ecd52efe3 100644
@@ -39,7 +39,6 @@
 *
 ****************************************************************************/
 
-#include <common.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
 
Signature · 1 line
2.34.1
author
#15 lore raw

PATCH 14/81 block: 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: Tobias Waldekranz <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>

---
 drivers/block/blk-uclass.c       | 1 -
 drivers/block/blk_legacy.c       | 1 -
 drivers/block/blkcache.c         | 1 -
 drivers/block/blkmap.c           | 1 -
 drivers/block/efi-media-uclass.c | 1 -
 drivers/block/efi_blk.c          | 1 -
 drivers/block/host-uclass.c      | 1 -
 drivers/block/host_dev.c         | 1 -
 drivers/block/ide.c              | 1 -
 drivers/block/sandbox.c          | 1 -
 drivers/block/sb_efi_media.c     | 1 -
 11 files changed, 11 deletions(-)
drivers/block/blk-uclass.c +0 -1
index 77066da352a3..512c952f4d7a 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_BLK
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <log.h>
drivers/block/blk_legacy.c +0 -1
index 5bf1d0471524..f36932183d1f 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <part.h>
 #include <linux/err.h>
drivers/block/blkcache.c +0 -1
index 26bcbea43533..0e69160249c7 100644
@@ -4,7 +4,6 @@
  * Author: Eric Nelson<[email protected]>
  *
  */
-#include <common.h>
 #include <blk.h>
 #include <log.h>
 #include <malloc.h>
drivers/block/blkmap.c +0 -1
index 21201409ed4b..34eed1380dca 100644
@@ -4,7 +4,6 @@
  * Author: Tobias Waldekranz <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <blkmap.h>
 #include <dm.h>
drivers/block/efi-media-uclass.c +0 -1
index e012f6f2f4c4..dc5e4f59b7f3 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 
 UCLASS_DRIVER(efi_media) = {
drivers/block/efi_blk.c +0 -1
index 917a19f60254..9766cd6f8327 100644
@@ -8,7 +8,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <efi.h>
drivers/block/host-uclass.c +0 -1
index b3647e3ce335..cf42bd1e07ac 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/block/host_dev.c +0 -1
index 52313435a0cb..b3ff3cd1fab9 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
 #include <blk.h>
 #include <bootdev.h>
 #include <dm.h>
drivers/block/ide.c +0 -1
index c698f9cbd558..b16623d7a3ab 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_IDE
 
-#include <common.h>
 #include <ata.h>
 #include <blk.h>
 #include <bootdev.h>
drivers/block/sandbox.c +0 -1
index be4e02cb601a..ec34f1ad8c2e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2013 Henrik Nordstrom <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/block/sb_efi_media.c +0 -1
index 52af155a6001..3255db064961 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 
 static const struct udevice_id sandbox_efi_media_ids[] = {
Signature · 1 line
2.34.1
Reviewed-by on v1 14/81
#16 lore raw

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

Hi Tom,

Thank you for the patch.

Quoted 4 lines · Tom Rini

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

Quoted 159 lines

---
Cc: Tom Rini <[email protected]>
Cc: Tobias Waldekranz <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>

---
 drivers/block/blk-uclass.c       | 1 -
 drivers/block/blk_legacy.c       | 1 -
 drivers/block/blkcache.c         | 1 -
 drivers/block/blkmap.c           | 1 -
 drivers/block/efi-media-uclass.c | 1 -
 drivers/block/efi_blk.c          | 1 -
 drivers/block/host-uclass.c      | 1 -
 drivers/block/host_dev.c         | 1 -
 drivers/block/ide.c              | 1 -
 drivers/block/sandbox.c          | 1 -
 drivers/block/sb_efi_media.c     | 1 -
 11 files changed, 11 deletions(-)
drivers/block/blk-uclass.c +0 -1
index 77066da352a3..512c952f4d7a 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_BLK
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <log.h>
drivers/block/blk_legacy.c +0 -1
index 5bf1d0471524..f36932183d1f 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <part.h>
 #include <linux/err.h>
drivers/block/blkcache.c +0 -1
index 26bcbea43533..0e69160249c7 100644
@@ -4,7 +4,6 @@
  * Author: Eric Nelson<[email protected]>
  *
  */
-#include <common.h>
 #include <blk.h>
 #include <log.h>
 #include <malloc.h>
drivers/block/blkmap.c +0 -1
index 21201409ed4b..34eed1380dca 100644
@@ -4,7 +4,6 @@
  * Author: Tobias Waldekranz <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <blkmap.h>
 #include <dm.h>
drivers/block/efi-media-uclass.c +0 -1
index e012f6f2f4c4..dc5e4f59b7f3 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 
 UCLASS_DRIVER(efi_media) = {
drivers/block/efi_blk.c +0 -1
index 917a19f60254..9766cd6f8327 100644
@@ -8,7 +8,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <efi.h>
drivers/block/host-uclass.c +0 -1
index b3647e3ce335..cf42bd1e07ac 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <malloc.h>
drivers/block/host_dev.c +0 -1
index 52313435a0cb..b3ff3cd1fab9 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
 #include <blk.h>
 #include <bootdev.h>
 #include <dm.h>
drivers/block/ide.c +0 -1
index c698f9cbd558..b16623d7a3ab 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_IDE
 
-#include <common.h>
 #include <ata.h>
 #include <blk.h>
 #include <bootdev.h>
drivers/block/sandbox.c +0 -1
index be4e02cb601a..ec34f1ad8c2e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2013 Henrik Nordstrom <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/block/sb_efi_media.c +0 -1
index 52af155a6001..3255db064961 100644
@@ -5,7 +5,6 @@
  * Copyright 2021 Google LLC
  */
 
-#include <common.h>
 #include <dm.h>
 
 static const struct udevice_id sandbox_efi_media_ids[] = {
Signature · 1 line
2.34.1
Reviewed-by on v1 14/81
#17 lore raw

Re: [PATCH 14/81] block: 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 157 lines

---
Cc: Tom Rini <[email protected]>
Cc: Tobias Waldekranz <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>

---
  drivers/block/blk-uclass.c       | 1 -
  drivers/block/blk_legacy.c       | 1 -
  drivers/block/blkcache.c         | 1 -
  drivers/block/blkmap.c           | 1 -
  drivers/block/efi-media-uclass.c | 1 -
  drivers/block/efi_blk.c          | 1 -
  drivers/block/host-uclass.c      | 1 -
  drivers/block/host_dev.c         | 1 -
  drivers/block/ide.c              | 1 -
  drivers/block/sandbox.c          | 1 -
  drivers/block/sb_efi_media.c     | 1 -
  11 files changed, 11 deletions(-)
drivers/block/blk-uclass.c +0 -1
index 77066da352a3..512c952f4d7a 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_BLK
 
-#include <common.h>
  #include <blk.h>
  #include <dm.h>
  #include <log.h>
drivers/block/blk_legacy.c +0 -1
index 5bf1d0471524..f36932183d1f 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <blk.h>
  #include <part.h>
  #include <linux/err.h>
drivers/block/blkcache.c +0 -1
index 26bcbea43533..0e69160249c7 100644
@@ -4,7 +4,6 @@
   * Author: Eric Nelson<[email protected]>
   *
   */
-#include <common.h>
  #include <blk.h>
  #include <log.h>
  #include <malloc.h>
drivers/block/blkmap.c +0 -1
index 21201409ed4b..34eed1380dca 100644
@@ -4,7 +4,6 @@
   * Author: Tobias Waldekranz <[email protected]>
   */
 
-#include <common.h>
  #include <blk.h>
  #include <blkmap.h>
  #include <dm.h>
drivers/block/efi-media-uclass.c +0 -1
index e012f6f2f4c4..dc5e4f59b7f3 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
 
  UCLASS_DRIVER(efi_media) = {
drivers/block/efi_blk.c +0 -1
index 917a19f60254..9766cd6f8327 100644
@@ -8,7 +8,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <blk.h>
  #include <dm.h>
  #include <efi.h>
drivers/block/host-uclass.c +0 -1
index b3647e3ce335..cf42bd1e07ac 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
  #include <blk.h>
  #include <dm.h>
  #include <malloc.h>
drivers/block/host_dev.c +0 -1
index 52313435a0cb..b3ff3cd1fab9 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_HOST
 
-#include <common.h>
  #include <blk.h>
  #include <bootdev.h>
  #include <dm.h>
drivers/block/ide.c +0 -1
index c698f9cbd558..b16623d7a3ab 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_IDE
 
-#include <common.h>
  #include <ata.h>
  #include <blk.h>
  #include <bootdev.h>
drivers/block/sandbox.c +0 -1
index be4e02cb601a..ec34f1ad8c2e 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2013 Henrik Nordstrom <[email protected]>
   */
 
-#include <common.h>
  #include <blk.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/block/sb_efi_media.c +0 -1
index 52af155a6001..3255db064961 100644
@@ -5,7 +5,6 @@
   * Copyright 2021 Google LLC
   */
 
-#include <common.h>
  #include <dm.h>
 
  static const struct udevice_id sandbox_efi_media_ids[] = {
author
#18 lore raw

PATCH 15/81 bootcount: 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]>

---
 drivers/bootcount/bootcount-uclass.c | 1 -
 drivers/bootcount/bootcount_at91.c   | 1 -
 drivers/bootcount/bootcount_env.c    | 1 -
 drivers/bootcount/bootcount_ram.c    | 1 -
 drivers/bootcount/bootcount_syscon.c | 1 -
 drivers/bootcount/i2c-eeprom.c       | 1 -
 drivers/bootcount/pmic_pfuze100.c    | 1 -
 drivers/bootcount/rtc.c              | 1 -
 drivers/bootcount/spi-flash.c        | 1 -
 9 files changed, 9 deletions(-)
drivers/bootcount/bootcount-uclass.c +0 -1
index 5a369c82f1c5..0178c1818e59 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_BOOTCOUNT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <bootcount.h>
drivers/bootcount/bootcount_at91.c +0 -1
index c4ab5ceafabd..1a06db1fb740 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_gpbr.h>
drivers/bootcount/bootcount_env.c +0 -1
index b75c9002b2c0..960cd71b9d56 100644
@@ -4,7 +4,6 @@
  * Heiko Schocher, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <env.h>
 
 void bootcount_store(ulong a)
drivers/bootcount/bootcount_ram.c +0 -1
index 8cc30cf40eff..33e157b865a1 100644
@@ -4,7 +4,6 @@
  * Heiko Schocher, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
drivers/bootcount/bootcount_syscon.c +0 -1
index f80d87071d98..5dbc13cd5452 100644
@@ -3,7 +3,6 @@
  * Copyright (c) Vaisala Oyj. All rights reserved.
  */
 
-#include <common.h>
 #include <bootcount.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/bootcount/i2c-eeprom.c +0 -1
index 709be094b118..12c430465c98 100644
@@ -4,7 +4,6 @@
  * (C) Copyright 2019 GE
  */
 
-#include <common.h>
 #include <bootcount.h>
 #include <dm.h>
 #include <i2c_eeprom.h>
drivers/bootcount/pmic_pfuze100.c +0 -1
index df046f1b0ab0..8c529f5592b4 100644
@@ -8,7 +8,6 @@
  * This works only, if the PMIC is not connected to a battery.
  */
 
-#include <common.h>
 #include <bootcount.h>
 #include <dm.h>
 #include <power/pmic.h>
drivers/bootcount/rtc.c +0 -1
index 483caaa80df4..b131946aa9d1 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <bootcount.h>
 #include <dm.h>
 #include <log.h>
drivers/bootcount/spi-flash.c +0 -1
index 03050e666134..155d0323ee78 100644
@@ -4,7 +4,6 @@
  * (C) Copyright 2019 GE
  */
 
-#include <common.h>
 #include <bootcount.h>
 #include <dm.h>
 #include <spi_flash.h>
Signature · 1 line
2.34.1
author
#19 lore raw

PATCH 16/81 bus: 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]>

---
 drivers/bus/ti-pwmss.c | 1 -
 drivers/bus/ti-sysc.c  | 1 -
 2 files changed, 2 deletions(-)
drivers/bus/ti-pwmss.c +0 -1
index 265b4cf83b59..d1f6f3bab00f 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 
 static const struct udevice_id ti_pwmss_ids[] = {
drivers/bus/ti-sysc.c +0 -1
index 778c0654f6a3..5f9f0a0d0b7b 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
Signature · 1 line
2.34.1
author
#20 lore raw

PATCH 17/81 button: 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]>

---
 drivers/button/button-adc.c    | 1 -
 drivers/button/button-gpio.c   | 1 -
 drivers/button/button-uclass.c | 1 -
 3 files changed, 3 deletions(-)
drivers/button/button-adc.c +0 -1
index 9c24c960e6ff..da7ddf2a8577 100644
@@ -5,7 +5,6 @@
  * Author: Marek Szyprowski <[email protected]>
  */
 
-#include <common.h>
 #include <adc.h>
 #include <button.h>
 #include <log.h>
drivers/button/button-gpio.c +0 -1
index 7b5b3affe2dd..43b82d98aeb7 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Philippe Reynes <[email protected]>
  */
 
-#include <common.h>
 #include <button.h>
 #include <dm.h>
 #include <dm/lists.h>
drivers/button/button-uclass.c +0 -1
index 032191d61abc..cda243389df3 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_BUTTON
 
-#include <common.h>
 #include <button.h>
 #include <dm.h>
 #include <dm/uclass-internal.h>
Signature · 1 line
2.34.1
author
#21 lore raw

PATCH 18/81 cache: 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: Johan Jonker <[email protected]>

---
 drivers/cache/cache-l2x0.c          | 1 -
 drivers/cache/cache-sifive-ccache.c | 1 -
 drivers/cache/cache-uclass.c        | 1 -
 drivers/cache/cache-v5l2.c          | 1 -
 drivers/cache/sandbox_cache.c       | 1 -
 5 files changed, 5 deletions(-)
drivers/cache/cache-l2x0.c +0 -1
index 560f4c94f1ef..c7bdd9d064a5 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2019 Intel Corporation <www.intel.com>
  */
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 
drivers/cache/cache-sifive-ccache.c +0 -1
index 521df40466f9..cc00b80f60b8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 SiFive
  */
 
-#include <common.h>
 #include <cache.h>
 #include <dm.h>
 #include <asm/io.h>
drivers/cache/cache-uclass.c +0 -1
index 0c13dbdb75c4..300e7bc86e1a 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_CACHE
 
-#include <common.h>
 #include <cache.h>
 #include <dm.h>
 
drivers/cache/cache-v5l2.c +0 -1
index fe3f9392b2ca..f0b8ecc88079 100644
@@ -4,7 +4,6 @@
  * Rick Chen, Andes Technology Corporation <[email protected]>
  */
 
-#include <common.h>
 #include <command.h>
 #include <cache.h>
 #include <dm.h>
drivers/cache/sandbox_cache.c +0 -1
index 955dfc8a0f84..2e20b83ab803 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <cache.h>
 #include <dm.h>
 #include <errno.h>
Signature · 1 line
2.34.1
author
#22 lore raw

PATCH 19/81 clk: 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: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[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: Eugeniy Paltsev <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Francois Berder <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Chanho Park <[email protected]>
Cc: Sam Protsenko <[email protected]>
Cc: Konrad Dybcio <[email protected]>
Cc: Volodymyr Babchuk <[email protected]>
Cc: Torsten Duwe <[email protected]>
Cc: Hal Feng <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Xingyu Wu <[email protected]>
Cc: Hoegeun Kwon <[email protected]>
Cc: Vishal Mahaveer <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Bryan Brattlof <[email protected]>
Cc: Hari Nagalla <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Udit Kumar <[email protected]>

---
 drivers/clk/altera/clk-agilex.c          | 1 -
 drivers/clk/altera/clk-arria10.c         | 1 -
 drivers/clk/altera/clk-mem-n5x.c         | 1 -
 drivers/clk/altera/clk-n5x.c             | 1 -
 drivers/clk/aspeed/clk_ast2500.c         | 1 -
 drivers/clk/aspeed/clk_ast2600.c         | 1 -
 drivers/clk/at91/clk-generic.c           | 1 -
 drivers/clk/at91/clk-main.c              | 1 -
 drivers/clk/at91/clk-master.c            | 1 -
 drivers/clk/at91/clk-peripheral.c        | 1 -
 drivers/clk/at91/clk-programmable.c      | 1 -
 drivers/clk/at91/clk-sam9x60-pll.c       | 1 -
 drivers/clk/at91/clk-system.c            | 1 -
 drivers/clk/at91/clk-utmi.c              | 1 -
 drivers/clk/at91/compat.c                | 2 +-
 drivers/clk/at91/pmc.c                   | 1 -
 drivers/clk/at91/sam9x60.c               | 1 -
 drivers/clk/at91/sama7g5.c               | 1 -
 drivers/clk/at91/sckc.c                  | 1 -
 drivers/clk/clk-cdce9xx.c                | 1 -
 drivers/clk/clk-composite.c              | 1 -
 drivers/clk/clk-divider.c                | 1 -
 drivers/clk/clk-fixed-factor.c           | 1 -
 drivers/clk/clk-gate.c                   | 1 -
 drivers/clk/clk-hsdk-cgu.c               | 1 -
 drivers/clk/clk-mux.c                    | 1 -
 drivers/clk/clk-uclass.c                 | 1 -
 drivers/clk/clk-xlnx-clock-wizard.c      | 1 -
 drivers/clk/clk.c                        | 1 -
 drivers/clk/clk_bcm6345.c                | 1 -
 drivers/clk/clk_boston.c                 | 1 -
 drivers/clk/clk_fixed_factor.c           | 1 -
 drivers/clk/clk_fixed_rate.c             | 1 -
 drivers/clk/clk_k210.c                   | 1 -
 drivers/clk/clk_pic32.c                  | 1 -
 drivers/clk/clk_sandbox.c                | 1 -
 drivers/clk/clk_sandbox_ccf.c            | 1 -
 drivers/clk/clk_sandbox_test.c           | 1 -
 drivers/clk/clk_scmi.c                   | 1 -
 drivers/clk/clk_versaclock.c             | 1 -
 drivers/clk/clk_versal.c                 | 1 -
 drivers/clk/clk_vexpress_osc.c           | 1 -
 drivers/clk/clk_zynq.c                   | 1 -
 drivers/clk/clk_zynqmp.c                 | 1 -
 drivers/clk/exynos/clk-exynos7420.c      | 1 -
 drivers/clk/ics8n3qv01.c                 | 1 -
 drivers/clk/imx/clk-composite-8m.c       | 1 -
 drivers/clk/imx/clk-composite-93.c       | 1 -
 drivers/clk/imx/clk-fracn-gppll.c        | 1 -
 drivers/clk/imx/clk-gate-93.c            | 1 -
 drivers/clk/imx/clk-gate2.c              | 1 -
 drivers/clk/imx/clk-imx6q.c              | 1 -
 drivers/clk/imx/clk-imx8.c               | 1 -
 drivers/clk/imx/clk-imx8mm.c             | 1 -
 drivers/clk/imx/clk-imx8mn.c             | 1 -
 drivers/clk/imx/clk-imx8mp.c             | 1 -
 drivers/clk/imx/clk-imx8mq.c             | 1 -
 drivers/clk/imx/clk-imx8qm.c             | 1 -
 drivers/clk/imx/clk-imx8qxp.c            | 1 -
 drivers/clk/imx/clk-imx93.c              | 1 -
 drivers/clk/imx/clk-imxrt1020.c          | 1 -
 drivers/clk/imx/clk-imxrt1050.c          | 1 -
 drivers/clk/imx/clk-imxrt1170.c          | 1 -
 drivers/clk/imx/clk-pfd.c                | 1 -
 drivers/clk/imx/clk-pll14xx.c            | 1 -
 drivers/clk/imx/clk-pllv3.c              | 1 -
 drivers/clk/intel/clk_intel.c            | 1 -
 drivers/clk/mediatek/clk-mt7622.c        | 1 -
 drivers/clk/mediatek/clk-mt7623.c        | 1 -
 drivers/clk/mediatek/clk-mt7629.c        | 1 -
 drivers/clk/mediatek/clk-mt8183.c        | 1 -
 drivers/clk/mediatek/clk-mt8512.c        | 1 -
 drivers/clk/mediatek/clk-mt8516.c        | 1 -
 drivers/clk/mediatek/clk-mt8518.c        | 1 -
 drivers/clk/mediatek/clk-mtk.c           | 1 -
 drivers/clk/meson/a1.c                   | 1 -
 drivers/clk/meson/axg-ao.c               | 1 -
 drivers/clk/meson/axg.c                  | 1 -
 drivers/clk/meson/g12a-ao.c              | 1 -
 drivers/clk/meson/g12a.c                 | 1 -
 drivers/clk/meson/gxbb.c                 | 1 -
 drivers/clk/microchip/mpfs_clk.c         | 1 -
 drivers/clk/microchip/mpfs_clk_cfg.c     | 1 -
 drivers/clk/microchip/mpfs_clk_msspll.c  | 1 -
 drivers/clk/microchip/mpfs_clk_periph.c  | 1 -
 drivers/clk/mpc83xx_clk.c                | 1 -
 drivers/clk/mtmips/clk-mt7628.c          | 1 -
 drivers/clk/mvebu/armada-37xx-periph.c   | 1 -
 drivers/clk/mvebu/armada-37xx-tbg.c      | 1 -
 drivers/clk/owl/clk_owl.c                | 1 -
 drivers/clk/qcom/clock-apq8016.c         | 1 -
 drivers/clk/qcom/clock-apq8096.c         | 1 -
 drivers/clk/qcom/clock-ipq4019.c         | 1 -
 drivers/clk/qcom/clock-qcom.c            | 1 -
 drivers/clk/qcom/clock-qcs404.c          | 1 -
 drivers/clk/qcom/clock-sdm845.c          | 1 -
 drivers/clk/rockchip/clk_pll.c           | 1 -
 drivers/clk/rockchip/clk_px30.c          | 1 -
 drivers/clk/rockchip/clk_rk3036.c        | 1 -
 drivers/clk/rockchip/clk_rk3066.c        | 1 -
 drivers/clk/rockchip/clk_rk3128.c        | 1 -
 drivers/clk/rockchip/clk_rk3188.c        | 1 -
 drivers/clk/rockchip/clk_rk322x.c        | 1 -
 drivers/clk/rockchip/clk_rk3288.c        | 1 -
 drivers/clk/rockchip/clk_rk3308.c        | 1 -
 drivers/clk/rockchip/clk_rk3328.c        | 1 -
 drivers/clk/rockchip/clk_rk3368.c        | 1 -
 drivers/clk/rockchip/clk_rk3399.c        | 1 -
 drivers/clk/rockchip/clk_rk3568.c        | 1 -
 drivers/clk/rockchip/clk_rk3588.c        | 1 -
 drivers/clk/rockchip/clk_rv1108.c        | 1 -
 drivers/clk/rockchip/clk_rv1126.c        | 1 -
 drivers/clk/sifive/sifive-prci.c         | 1 -
 drivers/clk/starfive/clk-jh7110-pll.c    | 1 -
 drivers/clk/starfive/clk-jh7110.c        | 1 -
 drivers/clk/stm32/clk-stm32-core.c       | 1 -
 drivers/clk/stm32/clk-stm32f.c           | 1 -
 drivers/clk/stm32/clk-stm32h7.c          | 1 -
 drivers/clk/stm32/clk-stm32mp1.c         | 1 -
 drivers/clk/stm32/clk-stm32mp13.c        | 1 -
 drivers/clk/sunxi/clk_a10.c              | 1 -
 drivers/clk/sunxi/clk_a10s.c             | 1 -
 drivers/clk/sunxi/clk_a23.c              | 1 -
 drivers/clk/sunxi/clk_a31.c              | 1 -
 drivers/clk/sunxi/clk_a64.c              | 1 -
 drivers/clk/sunxi/clk_a80.c              | 1 -
 drivers/clk/sunxi/clk_a83t.c             | 1 -
 drivers/clk/sunxi/clk_d1.c               | 1 -
 drivers/clk/sunxi/clk_f1c100s.c          | 1 -
 drivers/clk/sunxi/clk_h3.c               | 1 -
 drivers/clk/sunxi/clk_h6.c               | 1 -
 drivers/clk/sunxi/clk_h616.c             | 1 -
 drivers/clk/sunxi/clk_r40.c              | 1 -
 drivers/clk/sunxi/clk_sunxi.c            | 1 -
 drivers/clk/sunxi/clk_v3s.c              | 1 -
 drivers/clk/tegra/tegra-car-clk.c        | 1 -
 drivers/clk/tegra/tegra186-clk.c         | 1 -
 drivers/clk/ti/clk-am3-dpll-x2.c         | 1 -
 drivers/clk/ti/clk-am3-dpll.c            | 1 -
 drivers/clk/ti/clk-ctrl.c                | 1 -
 drivers/clk/ti/clk-divider.c             | 1 -
 drivers/clk/ti/clk-gate.c                | 1 -
 drivers/clk/ti/clk-k3-pll.c              | 1 -
 drivers/clk/ti/clk-k3.c                  | 1 -
 drivers/clk/ti/clk-mux.c                 | 1 -
 drivers/clk/ti/clk-sci.c                 | 1 -
 drivers/clk/ti/clk.c                     | 1 -
 drivers/clk/ti/omap4-cm.c                | 1 -
 drivers/clk/uniphier/clk-uniphier-core.c | 1 -
 149 files changed, 1 insertion(+), 149 deletions(-)
drivers/clk/altera/clk-agilex.c +0 -1
index cca6d6741221..bdc7be0fb5d3 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/clk/altera/clk-arria10.c +0 -1
index 578597a16e81..1840f73beeec 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
drivers/clk/altera/clk-mem-n5x.c +0 -1
index 9bbe2cd0ca70..b75f52d203b2 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/clk/altera/clk-n5x.c +0 -1
index 3fa19e05c47e..3e256101a947 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/clk/aspeed/clk_ast2500.c +0 -1
index dc446ce9fb7d..a330dcda4dcb 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Google, Inc
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/aspeed/clk_ast2600.c +0 -1
index a15909329bbd..535010b79414 100644
@@ -3,7 +3,6 @@
  * Copyright (C) ASPEED Technology Inc.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <asm/io.h>
drivers/clk/at91/clk-generic.c +0 -1
index 87738b7b5bff..c410cd2b5052 100644
@@ -8,7 +8,6 @@
  *
  * Based on drivers/clk/at91/clk-generated.c from Linux.
  */
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/io.h>
drivers/clk/at91/clk-main.c +0 -1
index 025c7a7aa26d..09daae97676d 100644
@@ -10,7 +10,6 @@
  */
 
 #include <asm/processor.h>
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/clk-provider.h>
drivers/clk/at91/clk-master.c +0 -1
index aec0bca7b3cb..d28775d64d33 100644
@@ -11,7 +11,6 @@
 
 #include <asm/processor.h>
 #include <clk-uclass.h>
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <linux/clk-provider.h>
drivers/clk/at91/clk-peripheral.c +0 -1
index 52cbc520cef4..08d7e7dddc9e 100644
@@ -8,7 +8,6 @@
  *
  * Based on drivers/clk/at91/clk-peripheral.c from Linux.
  */
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/io.h>
drivers/clk/at91/clk-programmable.c +0 -1
index 868de4b1774b..d0b14656c4d6 100644
@@ -8,7 +8,6 @@
  *
  * Based on drivers/clk/at91/clk-programmable.c from Linux.
  */
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/clk-provider.h>
drivers/clk/at91/clk-sam9x60-pll.c +0 -1
index 383f79cfbaf5..a30035eb8ce9 100644
@@ -11,7 +11,6 @@
  */
 
 #include <asm/processor.h>
-#include <common.h>
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
drivers/clk/at91/clk-system.c +0 -1
index 82f79e74a190..3545b0b24bd7 100644
@@ -9,7 +9,6 @@
  * Based on drivers/clk/at91/clk-system.c from Linux.
  */
 #include <asm/processor.h>
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/io.h>
drivers/clk/at91/clk-utmi.c +0 -1
index 7c8bcfb51dba..84784ae41ce8 100644
@@ -9,7 +9,6 @@
  * Based on drivers/clk/at91/clk-utmi.c from Linux.
  */
 #include <asm/processor.h>
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/clk-provider.h>
drivers/clk/at91/compat.c +1 -1
index ee67093c6073..1d738f160b6e 100644
@@ -6,7 +6,7 @@
  *
  * Author: Claudiu Beznea <[email protected]>
  */
-#include <common.h>
+#include <config.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <asm/global_data.h>
drivers/clk/at91/pmc.c +0 -1
index 87d2069d89ce..aa4bc8fa47ad 100644
@@ -4,7 +4,6 @@
  *               Wenyou.Yang <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
 #include <linux/clk-provider.h>
drivers/clk/at91/sam9x60.c +0 -1
index d858c860f696..b7d64bdbb3d4 100644
@@ -7,7 +7,6 @@
  * Based on sam9x60.c on Linux.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sama7g5.c +0 -1
index 3e62fb1f58d3..63b2c6474679 100644
@@ -9,7 +9,6 @@
  * Based on drivers/clk/at91/sama7g5.c from Linux.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sckc.c +0 -1
index 43136ab2e349..6d6f12578db7 100644
@@ -7,7 +7,6 @@
  * Author: Claudiu Beznea <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-bindings/clk/at91.h>
drivers/clk/clk-cdce9xx.c +0 -1
index b8700f517fc9..e5f74e714d54 100644
@@ -8,7 +8,6 @@
  * Based on Linux kernel clk-cdce925.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
drivers/clk/clk-composite.c +0 -1
index d2e5a1ae401d..199ca6eaa370 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <log.h>
drivers/clk/clk-divider.c +0 -1
index 2ad682b8fe2c..aa210e3d15fd 100644
@@ -11,7 +11,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/clk-fixed-factor.c +0 -1
index 2a446788e191..068798cf9b05 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <div64.h>
drivers/clk/clk-gate.c +0 -1
index cfd90b717e73..bf1c6a93b468 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <clk-uclass.h>
drivers/clk/clk-hsdk-cgu.c +0 -1
index 85074f1b86e8..53655059279e 100644
@@ -9,7 +9,6 @@
  * warranty of any kind, whether express or implied.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
drivers/clk/clk-mux.c +0 -1
index f410518461e9..39e01c3fbc61 100644
@@ -23,7 +23,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <log.h>
drivers/clk/clk-uclass.c +0 -1
index ed6e60bc4841..4c832f1a5307 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/clk-xlnx-clock-wizard.c +0 -1
index a10a843f11f9..4a3f50c638b1 100644
@@ -7,7 +7,6 @@
  * Author: Zhengxun Li <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <div64.h>
drivers/clk/clk.c +0 -1
index 6ede1b4d4dcc..b8c2e8d531b9 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <log.h>
drivers/clk/clk_bcm6345.c +0 -1
index 8c22ed2f43d4..0b41872b7192 100644
@@ -6,7 +6,6 @@
  *	Copyright (C) 2008 Maxime Bizon <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/clk_boston.c +0 -1
index 4bcf91175512..030ff7cc58ec 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Imagination Technologies
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-bindings/clock/boston-clock.h>
drivers/clk/clk_fixed_factor.c +0 -1
index 6c1139e5c519..1d740cf49f62 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
drivers/clk/clk_fixed_rate.c +0 -1
index b5e78c70559e..d1da05cc18a5 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/clk_k210.c +0 -1
index 7432ae8f0642..d1a6cde8f0f8 100644
@@ -4,7 +4,6 @@
  */
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <div64.h>
drivers/clk/clk_pic32.c +0 -1
index a77d0e7419c9..885aa8345165 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <div64.h>
drivers/clk/clk_sandbox.c +0 -1
index 73d943f9e092..8dd77f18d901 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Google, Inc
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/clk_sandbox_ccf.c +0 -1
index 38184e27aa4f..f96a15c30b3a 100644
@@ -6,7 +6,6 @@
  * Common Clock Framework [CCF] driver for Sandbox
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <malloc.h>
drivers/clk/clk_sandbox_test.c +0 -1
index c224dc1d2cb9..87350212775c 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <malloc.h>
drivers/clk/clk_scmi.c +0 -1
index 34a49363a51a..e42d2032d45e 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <scmi_agent.h>
drivers/clk/clk_versaclock.c +0 -1
index bbe722560329..9ccaf13d2420 100644
@@ -5,7 +5,6 @@
  * Derived from code Copyright (C) 2017 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/clk_versal.c +0 -1
index 42ab032bf7e7..35ee56d0693d 100644
@@ -4,7 +4,6 @@
  * Siva Durga Prasad Paladugu <[email protected]>>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/cache.h>
 #include <asm/ptrace.h>
drivers/clk/clk_vexpress_osc.c +0 -1
index 3b1e0208d47e..2e0e7bbe68ff 100644
@@ -5,7 +5,6 @@
  *
  */
 #define DEBUG
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/clk_zynq.c +0 -1
index e3cefe2e0c72..b62b4646f4e5 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2013 Xilinx, Inc. All rights reserved.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/clk_zynqmp.c +0 -1
index e23f7da3f929..599992661484 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2016 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <dm/device_compat.h>
drivers/clk/exynos/clk-exynos7420.c +0 -1
index 9caa932e12fb..3aa751bf4e42 100644
@@ -5,7 +5,6 @@
  * Thomas Abraham <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
drivers/clk/ics8n3qv01.c +0 -1
index 33fb6ed0c7a4..9c61a84ea61f 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk-uclass.h>
 #include <i2c.h>
drivers/clk/imx/clk-composite-8m.c +0 -1
index 494156751dae..45f1bcaea288 100644
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <malloc.h>
drivers/clk/imx/clk-composite-93.c +0 -1
index 6d71c0c03ffe..2cf20be2ccae 100644
@@ -4,7 +4,6 @@
  *
  * Peng Fan <[email protected]>
  */
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <malloc.h>
drivers/clk/imx/clk-fracn-gppll.c +0 -1
index 9228f279e27d..8f42a5cb1b72 100644
@@ -3,7 +3,6 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/imx/clk-gate-93.c +0 -1
index bc8574137137..d7f2640fbb7c 100644
@@ -5,7 +5,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/imx/clk-gate2.c +0 -1
index da2723023778..65fa6b5b139f 100644
@@ -14,7 +14,6 @@
  *
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/imx/clk-imx6q.c +0 -1
index 67825af89b81..ba9923d8f6fa 100644
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, [email protected]
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/imx/clk-imx8.c +0 -1
index d39b87b2e245..96cf5fece75f 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/imx/clk-imx8mm.c +0 -1
index 1a00dd1d287b..70e2e53bdea5 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imx8mn.c +0 -1
index 457acb8a401e..ed9e16d7c180 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imx8mp.c +0 -1
index 7dfc829df2c4..1f498b6ba4ea 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imx8mq.c +0 -1
index cf197df96dbb..ed4acd79ef74 100644
@@ -5,7 +5,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imx8qm.c +0 -1
index 01e33de9d63f..62fed7e3e32c 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/imx/clk-imx8qxp.c +0 -1
index d900d4cd5286..18bdc08971bf 100644
@@ -4,7 +4,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/imx/clk-imx93.c +0 -1
index f0cb797d9750..ede36c412bff 100644
@@ -3,7 +3,6 @@
  * Copyright 2021 NXP.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imxrt1020.c +0 -1
index dc91ac5adbf1..c80b02975aad 100644
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imxrt1050.c +0 -1
index d40635d17a4a..754f39484275 100644
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-imxrt1170.c +0 -1
index 077dd1bf02d3..20b9dc315001 100644
@@ -4,7 +4,6 @@
  * Author(s): Jesse Taube <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/imx/clk-pfd.c +0 -1
index b8be3167c4cd..378cdff072fe 100644
@@ -14,7 +14,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/imx/clk-pll14xx.c +0 -1
index 1cb685ee9abd..3911e0339056 100644
@@ -5,7 +5,6 @@
  * Peng Fan <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/imx/clk-pllv3.c +0 -1
index fad306aeed23..c6692f2f9f5a 100644
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, [email protected]
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <malloc.h>
drivers/clk/intel/clk_intel.c +0 -1
index 46ccbb1d834d..a677a7caac7c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk-uclass.h>
 #include <dt-bindings/clock/intel-clock.h>
drivers/clk/mediatek/clk-mt7622.c +0 -1
index 259ea335959c..2beb63030f22 100644
@@ -6,7 +6,6 @@
  * Author: Ryder Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7623.c +0 -1
index 0c7411ee814d..5072c9983c11 100644
@@ -6,7 +6,6 @@
  * Author: Ryder Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7629.c +0 -1
index 31b6fa02251a..0c796a1788aa 100644
@@ -6,7 +6,6 @@
  * Author: Ryder Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt8183.c +0 -1
index 17e653a1f00a..9612a62e56a7 100644
@@ -8,7 +8,6 @@
  * Author: Weiyi Lu <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8183-clk.h>
drivers/clk/mediatek/clk-mt8512.c +0 -1
index 193e069cb053..ab2706734428 100644
@@ -6,7 +6,6 @@
  * Author: Chen Zhong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8512-clk.h>
drivers/clk/mediatek/clk-mt8516.c +0 -1
index 29f70620e09d..623f88499f1b 100644
@@ -6,7 +6,6 @@
  * Author: Fabien Parent <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8516-clk.h>
drivers/clk/mediatek/clk-mt8518.c +0 -1
index 238651483726..ba8cc584d46f 100644
@@ -6,7 +6,6 @@
  * Author: Chen Zhong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/mt8518-clk.h>
drivers/clk/mediatek/clk-mtk.c +0 -1
index 4303300d3a8d..d2c45be30dec 100644
@@ -6,7 +6,6 @@
  * Author: Ryder Lee <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
drivers/clk/meson/a1.c +0 -1
index 5220a337a8bb..a1b8d7914910 100644
@@ -4,7 +4,6 @@
  * Author: Igor Prusov <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <regmap.h>
drivers/clk/meson/axg-ao.c +0 -1
index 311ffc1cca9a..6ccf52127b02 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
drivers/clk/meson/axg.c +0 -1
index d6da59d269b0..c421a622a587 100644
@@ -5,7 +5,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock-axg.h>
 #include <asm/io.h>
drivers/clk/meson/g12a-ao.c +0 -1
index 1a855a68966e..61d489c6e1c8 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
drivers/clk/meson/g12a.c +0 -1
index e4fed8ddfb27..5d7faaa3eabf 100644
@@ -5,7 +5,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock-g12a.h>
 #include <asm/io.h>
drivers/clk/meson/gxbb.c +0 -1
index e379540deee7..72ad4fd0e85f 100644
@@ -5,7 +5,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/arch/clock-gx.h>
 #include <asm/io.h>
drivers/clk/microchip/mpfs_clk.c +0 -1
index 08f8bfcecbed..0a82777ff74d 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Microchip Technology Inc.
  * Padmarao Begari <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/microchip/mpfs_clk_cfg.c +0 -1
index 5739fd66e8df..5e8fb9952895 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Microchip Technology Inc.
  * Padmarao Begari <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_msspll.c +0 -1
index f37c0d86047c..d0e7b1ff844f 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022 Microchip Technology Inc.
  */
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_periph.c +0 -1
index ddeccb914575..41c6df4fb979 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Microchip Technology Inc.
  * Padmarao Begari <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <asm/io.h>
drivers/clk/mpc83xx_clk.c +0 -1
index cc734450ef00..a29ad0d7a68d 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <clock_legacy.h>
 #include <command.h>
drivers/clk/mtmips/clk-mt7628.c +0 -1
index 4d3ac847d1d5..2e263fb2cd28 100644
@@ -5,7 +5,6 @@
  * Author: Weijie Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-bindings/clock/mt7628-clk.h>
drivers/clk/mvebu/armada-37xx-periph.c +0 -1
index f5c9bd735c13..30330393f760 100644
@@ -8,7 +8,6 @@
  *   Gregory CLEMENT <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <clk.h>
drivers/clk/mvebu/armada-37xx-tbg.c +0 -1
index 846a73cd6b36..c1bab84c070e 100644
@@ -8,7 +8,6 @@
  *   Gregory CLEMENT <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <clk.h>
 #include <dm.h>
drivers/clk/owl/clk_owl.c +0 -1
index 678fdd5a4540..513112c1146c 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include "clk_owl.h"
 #include <asm/io.h>
drivers/clk/qcom/clock-apq8016.c +0 -1
index d3b63b9c1ac5..41fe4d896a7c 100644
@@ -7,7 +7,6 @@
  * Based on Little Kernel driver, simplified
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/qcom/clock-apq8096.c +0 -1
index 479f9771a464..c77d69128b00 100644
@@ -7,7 +7,6 @@
  * Based on Little Kernel driver, simplified
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/qcom/clock-ipq4019.c +0 -1
index 72f235eab212..0e6d93b3d7c2 100644
@@ -9,7 +9,6 @@
  */
 
 #include <clk-uclass.h>
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
drivers/clk/qcom/clock-qcom.c +0 -1
index 05e5ab7d094b..3a9cf2a231f2 100644
@@ -12,7 +12,6 @@
  * Based on Little Kernel driver, simplified
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dm/device-internal.h>
drivers/clk/qcom/clock-qcs404.c +0 -1
index 8a897a52bc00..70a1f648e585 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2022 Sumit Garg <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/qcom/clock-sdm845.c +0 -1
index 782df7da8444..f41f8c9e8dee 100644
@@ -8,7 +8,6 @@
  * Based on Little Kernel driver, simplified
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/delay.h>
drivers/clk/rockchip/clk_pll.c +0 -1
index 66f8bb166955..44c6f14618d2 100644
@@ -2,7 +2,6 @@
 /*
  * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
  */
- #include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_px30.c +0 -1
index 2875c152b20d..d7825c66493e 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rk3036.c +0 -1
index 6238b14c29e1..274428f2b4bd 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Google, Inc
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/rockchip/clk_rk3066.c +0 -1
index f83335df6db6..f7dea7859f74 100644
@@ -5,7 +5,6 @@
  */
 
 #include <bitfield.h>
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3128.c +0 -1
index 182754e7052d..a07285593b55 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/rockchip/clk_rk3188.c +0 -1
index f98b46a0f73b..f569a100f22b 100644
@@ -4,7 +4,6 @@
  * (C) Copyright 2016 Heiko Stuebner <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/clk/rockchip/clk_rk322x.c +0 -1
index 9371c4f63a48..9b71fd863bad 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/rockchip/clk_rk3288.c +0 -1
index 0b7eefad15f1..432a79291c8a 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Google, Inc
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <div64.h>
drivers/clk/rockchip/clk_rk3308.c +0 -1
index 861648321d40..e73bb6790af2 100644
@@ -2,7 +2,6 @@
 /*
  * (C) Copyright 2017-2019 Rockchip Electronics Co., Ltd
  */
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rk3328.c +0 -1
index 87075ec71340..4b94d6364d13 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rk3368.c +0 -1
index 1c5dfaa3800b..d89439805215 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3399.c +0 -1
index 80f65a237e8e..cc414c38432c 100644
@@ -4,7 +4,6 @@
  * (C) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3568.c +0 -1
index 24eeca8bf265..35563509d617 100644
@@ -4,7 +4,6 @@
  * Author: Elaine Zhang <[email protected]>
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rk3588.c +0 -1
index 4c611a390499..ceae08a19aa5 100644
@@ -4,7 +4,6 @@
  * Author: Elaine Zhang <[email protected]>
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rv1108.c +0 -1
index fc442f7eebe2..75202a66aa68 100644
@@ -4,7 +4,6 @@
  * Author: Andy Yan <[email protected]>
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/rockchip/clk_rv1126.c +0 -1
index cfdfcbdb0f4c..aeeea9569147 100644
@@ -5,7 +5,6 @@
  * Author: Finley Xiao <[email protected]>
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/sifive/sifive-prci.c +0 -1
index c8fb60029070..5ea860628006 100644
@@ -22,7 +22,6 @@
  * https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <clk.h>
 #include <dm.h>
drivers/clk/starfive/clk-jh7110-pll.c +0 -1
index 1568a1f4cd91..581035842fc3 100644
@@ -6,7 +6,6 @@
  *		Xingyu Wu <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
drivers/clk/starfive/clk-jh7110.c +0 -1
index a38694809a00..191da75d7ba2 100644
@@ -6,7 +6,6 @@
  *		Xingyu Wu <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
drivers/clk/stm32/clk-stm32-core.c +0 -1
index 37e996e78f96..cad07cc952e7 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/stm32/clk-stm32f.c +0 -1
index d68c75ed2013..fceb3c44b94e 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/stm32/clk-stm32h7.c +0 -1
index d440c28eb485..a554eda504de 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/stm32/clk-stm32mp1.c +0 -1
index 6f000c8e4448..204ac170531d 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
drivers/clk/stm32/clk-stm32mp13.c +0 -1
index 5174ae53a1a2..362dba102521 100644
@@ -7,7 +7,6 @@
 #define LOG_CATEGORY UCLASS_CLK
 
 #include <clk-uclass.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/io.h>
drivers/clk/sunxi/clk_a10.c +0 -1
index f27306fe33b3..19fe248044b4 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a10s.c +0 -1
index 16ac589bb2bf..f771369c9423 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a23.c +0 -1
index 45d5ba75bf51..fdee4347e991 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a31.c +0 -1
index 6ca800050ed0..04f76a7c2a38 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a64.c +0 -1
index fd26cd4f5d66..f1b01d25ddd4 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a80.c +0 -1
index c5834f44103f..6751af8a8031 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_a83t.c +0 -1
index 760d98cd620c..d8621a3e64cc 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_d1.c +0 -1
index 9dae761de83c..b990a1185948 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Samuel Holland <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_f1c100s.c +0 -1
index 7b4c3ce51765..e22956992014 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 George Hilliard <[email protected]>.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_h3.c +0 -1
index 32bc95fccca4..ce55caeb1573 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_h6.c +0 -1
index 071fd581003d..1b7bd9dea2f8 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_h616.c +0 -1
index 113dcff28515..b1e999e18c14 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_r40.c +0 -1
index 0fef6f3566d5..721debdae238 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_sunxi.c +0 -1
index 1782cffc404a..2ef4f45dacf5 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/sunxi/clk_v3s.c +0 -1
index 6524c13540e0..85410e282e85 100644
@@ -4,7 +4,6 @@
  * Author: Jagan Teki <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
drivers/clk/tegra/tegra-car-clk.c +0 -1
index c5214b9b3e2e..1d61f8dc378d 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/tegra/tegra186-clk.c +0 -1
index 5a98a3f3f0e6..ec52326c3b36 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION.
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
drivers/clk/ti/clk-am3-dpll-x2.c +0 -1
index 3cf279d6a3a9..1b0b9818cdd4 100644
@@ -7,7 +7,6 @@
  * Loosely based on Linux kernel drivers/clk/ti/dpll.c
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/clk/ti/clk-am3-dpll.c +0 -1
index 398a011a5cea..21ec01f8dd9a 100644
@@ -7,7 +7,6 @@
  * Loosely based on Linux kernel drivers/clk/ti/dpll.c
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <div64.h>
drivers/clk/ti/clk-ctrl.c +0 -1
index 8926e57ebc84..c5c97dc35c4d 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <clk-uclass.h>
drivers/clk/ti/clk-divider.c +0 -1
index 15941f17811a..40a742d7fdc4 100644
@@ -7,7 +7,6 @@
  * Loosely based on Linux kernel drivers/clk/ti/divider.c
  */
 
-#include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
 #include <div64.h>
drivers/clk/ti/clk-gate.c +0 -1
index eb15f6243f20..873ceb8a2ab7 100644
@@ -7,7 +7,6 @@
  * Loosely based on Linux kernel drivers/clk/ti/gate.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <clk-uclass.h>
drivers/clk/ti/clk-k3-pll.c +0 -1
index 8323e6e6919c..b3a1b4cedb78 100644
@@ -6,7 +6,6 @@
  *	Tero Kristo <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <div64.h>
drivers/clk/ti/clk-k3.c +0 -1
index 7aa162c2f702..41e5022ea0cd 100644
@@ -6,7 +6,6 @@
  *	Tero Kristo <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <soc.h>
drivers/clk/ti/clk-mux.c +0 -1
index 215241b16135..db5393414318 100644
@@ -7,7 +7,6 @@
  * Based on Linux kernel drivers/clk/ti/mux.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <clk-uclass.h>
drivers/clk/ti/clk-sci.c +0 -1
index 9e5760d33544..e374bd3bcc20 100644
@@ -8,7 +8,6 @@
  * Loosely based on Linux kernel sci-clk.c...
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
drivers/clk/ti/clk.c +0 -1
index 6e5cc90f0f8c..28cd15128819 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <regmap.h>
drivers/clk/ti/omap4-cm.c +0 -1
index 3cdc9b28887d..a30ce9d09d27 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/lists.h>
 
drivers/clk/uniphier/clk-uniphier-core.c +0 -1
index c31e59641d93..33369c93916b 100644
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <[email protected]>
  */
 
-#include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dm/device_compat.h>
Signature · 1 line
2.34.1
Tested-by on v1 19/81
#23 lore raw

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

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

Thanks a lot!

Quoted 1,993 lines

---
Cc: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[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: Eugeniy Paltsev <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Francois Berder <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Chanho Park <[email protected]>
Cc: Sam Protsenko <[email protected]>
Cc: Konrad Dybcio <[email protected]>
Cc: Volodymyr Babchuk <[email protected]>
Cc: Torsten Duwe <[email protected]>
Cc: Hal Feng <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Xingyu Wu <[email protected]>
Cc: Hoegeun Kwon <[email protected]>
Cc: Vishal Mahaveer <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Bryan Brattlof <[email protected]>
Cc: Hari Nagalla <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Udit Kumar <[email protected]>

---
  drivers/clk/altera/clk-agilex.c          | 1 -
  drivers/clk/altera/clk-arria10.c         | 1 -
  drivers/clk/altera/clk-mem-n5x.c         | 1 -
  drivers/clk/altera/clk-n5x.c             | 1 -
  drivers/clk/aspeed/clk_ast2500.c         | 1 -
  drivers/clk/aspeed/clk_ast2600.c         | 1 -
  drivers/clk/at91/clk-generic.c           | 1 -
  drivers/clk/at91/clk-main.c              | 1 -
  drivers/clk/at91/clk-master.c            | 1 -
  drivers/clk/at91/clk-peripheral.c        | 1 -
  drivers/clk/at91/clk-programmable.c      | 1 -
  drivers/clk/at91/clk-sam9x60-pll.c       | 1 -
  drivers/clk/at91/clk-system.c            | 1 -
  drivers/clk/at91/clk-utmi.c              | 1 -
  drivers/clk/at91/compat.c                | 2 +-
  drivers/clk/at91/pmc.c                   | 1 -
  drivers/clk/at91/sam9x60.c               | 1 -
  drivers/clk/at91/sama7g5.c               | 1 -
  drivers/clk/at91/sckc.c                  | 1 -
  drivers/clk/clk-cdce9xx.c                | 1 -
  drivers/clk/clk-composite.c              | 1 -
  drivers/clk/clk-divider.c                | 1 -
  drivers/clk/clk-fixed-factor.c           | 1 -
  drivers/clk/clk-gate.c                   | 1 -
  drivers/clk/clk-hsdk-cgu.c               | 1 -
  drivers/clk/clk-mux.c                    | 1 -
  drivers/clk/clk-uclass.c                 | 1 -
  drivers/clk/clk-xlnx-clock-wizard.c      | 1 -
  drivers/clk/clk.c                        | 1 -
  drivers/clk/clk_bcm6345.c                | 1 -
  drivers/clk/clk_boston.c                 | 1 -
  drivers/clk/clk_fixed_factor.c           | 1 -
  drivers/clk/clk_fixed_rate.c             | 1 -
  drivers/clk/clk_k210.c                   | 1 -
  drivers/clk/clk_pic32.c                  | 1 -
  drivers/clk/clk_sandbox.c                | 1 -
  drivers/clk/clk_sandbox_ccf.c            | 1 -
  drivers/clk/clk_sandbox_test.c           | 1 -
  drivers/clk/clk_scmi.c                   | 1 -
  drivers/clk/clk_versaclock.c             | 1 -
  drivers/clk/clk_versal.c                 | 1 -
  drivers/clk/clk_vexpress_osc.c           | 1 -
  drivers/clk/clk_zynq.c                   | 1 -
  drivers/clk/clk_zynqmp.c                 | 1 -
  drivers/clk/exynos/clk-exynos7420.c      | 1 -
  drivers/clk/ics8n3qv01.c                 | 1 -
  drivers/clk/imx/clk-composite-8m.c       | 1 -
  drivers/clk/imx/clk-composite-93.c       | 1 -
  drivers/clk/imx/clk-fracn-gppll.c        | 1 -
  drivers/clk/imx/clk-gate-93.c            | 1 -
  drivers/clk/imx/clk-gate2.c              | 1 -
  drivers/clk/imx/clk-imx6q.c              | 1 -
  drivers/clk/imx/clk-imx8.c               | 1 -
  drivers/clk/imx/clk-imx8mm.c             | 1 -
  drivers/clk/imx/clk-imx8mn.c             | 1 -
  drivers/clk/imx/clk-imx8mp.c             | 1 -
  drivers/clk/imx/clk-imx8mq.c             | 1 -
  drivers/clk/imx/clk-imx8qm.c             | 1 -
  drivers/clk/imx/clk-imx8qxp.c            | 1 -
  drivers/clk/imx/clk-imx93.c              | 1 -
  drivers/clk/imx/clk-imxrt1020.c          | 1 -
  drivers/clk/imx/clk-imxrt1050.c          | 1 -
  drivers/clk/imx/clk-imxrt1170.c          | 1 -
  drivers/clk/imx/clk-pfd.c                | 1 -
  drivers/clk/imx/clk-pll14xx.c            | 1 -
  drivers/clk/imx/clk-pllv3.c              | 1 -
  drivers/clk/intel/clk_intel.c            | 1 -
  drivers/clk/mediatek/clk-mt7622.c        | 1 -
  drivers/clk/mediatek/clk-mt7623.c        | 1 -
  drivers/clk/mediatek/clk-mt7629.c        | 1 -
  drivers/clk/mediatek/clk-mt8183.c        | 1 -
  drivers/clk/mediatek/clk-mt8512.c        | 1 -
  drivers/clk/mediatek/clk-mt8516.c        | 1 -
  drivers/clk/mediatek/clk-mt8518.c        | 1 -
  drivers/clk/mediatek/clk-mtk.c           | 1 -
  drivers/clk/meson/a1.c                   | 1 -
  drivers/clk/meson/axg-ao.c               | 1 -
  drivers/clk/meson/axg.c                  | 1 -
  drivers/clk/meson/g12a-ao.c              | 1 -
  drivers/clk/meson/g12a.c                 | 1 -
  drivers/clk/meson/gxbb.c                 | 1 -
  drivers/clk/microchip/mpfs_clk.c         | 1 -
  drivers/clk/microchip/mpfs_clk_cfg.c     | 1 -
  drivers/clk/microchip/mpfs_clk_msspll.c  | 1 -
  drivers/clk/microchip/mpfs_clk_periph.c  | 1 -
  drivers/clk/mpc83xx_clk.c                | 1 -
  drivers/clk/mtmips/clk-mt7628.c          | 1 -
  drivers/clk/mvebu/armada-37xx-periph.c   | 1 -
  drivers/clk/mvebu/armada-37xx-tbg.c      | 1 -
  drivers/clk/owl/clk_owl.c                | 1 -
  drivers/clk/qcom/clock-apq8016.c         | 1 -
  drivers/clk/qcom/clock-apq8096.c         | 1 -
  drivers/clk/qcom/clock-ipq4019.c         | 1 -
  drivers/clk/qcom/clock-qcom.c            | 1 -
  drivers/clk/qcom/clock-qcs404.c          | 1 -
  drivers/clk/qcom/clock-sdm845.c          | 1 -
  drivers/clk/rockchip/clk_pll.c           | 1 -
  drivers/clk/rockchip/clk_px30.c          | 1 -
  drivers/clk/rockchip/clk_rk3036.c        | 1 -
  drivers/clk/rockchip/clk_rk3066.c        | 1 -
  drivers/clk/rockchip/clk_rk3128.c        | 1 -
  drivers/clk/rockchip/clk_rk3188.c        | 1 -
  drivers/clk/rockchip/clk_rk322x.c        | 1 -
  drivers/clk/rockchip/clk_rk3288.c        | 1 -
  drivers/clk/rockchip/clk_rk3308.c        | 1 -
  drivers/clk/rockchip/clk_rk3328.c        | 1 -
  drivers/clk/rockchip/clk_rk3368.c        | 1 -
  drivers/clk/rockchip/clk_rk3399.c        | 1 -
  drivers/clk/rockchip/clk_rk3568.c        | 1 -
  drivers/clk/rockchip/clk_rk3588.c        | 1 -
  drivers/clk/rockchip/clk_rv1108.c        | 1 -
  drivers/clk/rockchip/clk_rv1126.c        | 1 -
  drivers/clk/sifive/sifive-prci.c         | 1 -
  drivers/clk/starfive/clk-jh7110-pll.c    | 1 -
  drivers/clk/starfive/clk-jh7110.c        | 1 -
  drivers/clk/stm32/clk-stm32-core.c       | 1 -
  drivers/clk/stm32/clk-stm32f.c           | 1 -
  drivers/clk/stm32/clk-stm32h7.c          | 1 -
  drivers/clk/stm32/clk-stm32mp1.c         | 1 -
  drivers/clk/stm32/clk-stm32mp13.c        | 1 -
  drivers/clk/sunxi/clk_a10.c              | 1 -
  drivers/clk/sunxi/clk_a10s.c             | 1 -
  drivers/clk/sunxi/clk_a23.c              | 1 -
  drivers/clk/sunxi/clk_a31.c              | 1 -
  drivers/clk/sunxi/clk_a64.c              | 1 -
  drivers/clk/sunxi/clk_a80.c              | 1 -
  drivers/clk/sunxi/clk_a83t.c             | 1 -
  drivers/clk/sunxi/clk_d1.c               | 1 -
  drivers/clk/sunxi/clk_f1c100s.c          | 1 -
  drivers/clk/sunxi/clk_h3.c               | 1 -
  drivers/clk/sunxi/clk_h6.c               | 1 -
  drivers/clk/sunxi/clk_h616.c             | 1 -
  drivers/clk/sunxi/clk_r40.c              | 1 -
  drivers/clk/sunxi/clk_sunxi.c            | 1 -
  drivers/clk/sunxi/clk_v3s.c              | 1 -
  drivers/clk/tegra/tegra-car-clk.c        | 1 -
  drivers/clk/tegra/tegra186-clk.c         | 1 -
  drivers/clk/ti/clk-am3-dpll-x2.c         | 1 -
  drivers/clk/ti/clk-am3-dpll.c            | 1 -
  drivers/clk/ti/clk-ctrl.c                | 1 -
  drivers/clk/ti/clk-divider.c             | 1 -
  drivers/clk/ti/clk-gate.c                | 1 -
  drivers/clk/ti/clk-k3-pll.c              | 1 -
  drivers/clk/ti/clk-k3.c                  | 1 -
  drivers/clk/ti/clk-mux.c                 | 1 -
  drivers/clk/ti/clk-sci.c                 | 1 -
  drivers/clk/ti/clk.c                     | 1 -
  drivers/clk/ti/omap4-cm.c                | 1 -
  drivers/clk/uniphier/clk-uniphier-core.c | 1 -
  149 files changed, 1 insertion(+), 149 deletions(-)
drivers/clk/altera/clk-agilex.c +0 -1
index cca6d6741221..bdc7be0fb5d3 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/altera/clk-arria10.c +0 -1
index 578597a16e81..1840f73beeec 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/altera/clk-mem-n5x.c +0 -1
index 9bbe2cd0ca70..b75f52d203b2 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <asm/arch/clock_manager.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/altera/clk-n5x.c +0 -1
index 3fa19e05c47e..3e256101a947 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <asm/arch/clock_manager.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/aspeed/clk_ast2500.c +0 -1
index dc446ce9fb7d..a330dcda4dcb 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2016 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/aspeed/clk_ast2600.c +0 -1
index a15909329bbd..535010b79414 100644
@@ -3,7 +3,6 @@
   * Copyright (C) ASPEED Technology Inc.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <asm/io.h>
drivers/clk/at91/clk-generic.c +0 -1
index 87738b7b5bff..c410cd2b5052 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-generated.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-main.c +0 -1
index 025c7a7aa26d..09daae97676d 100644
@@ -10,7 +10,6 @@
   */
 
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-master.c +0 -1
index aec0bca7b3cb..d28775d64d33 100644
@@ -11,7 +11,6 @@
 
  #include <asm/processor.h>
  #include <clk-uclass.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-peripheral.c +0 -1
index 52cbc520cef4..08d7e7dddc9e 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-peripheral.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-programmable.c +0 -1
index 868de4b1774b..d0b14656c4d6 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-programmable.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-sam9x60-pll.c +0 -1
index 383f79cfbaf5..a30035eb8ce9 100644
@@ -11,7 +11,6 @@
   */
 
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/at91/clk-system.c +0 -1
index 82f79e74a190..3545b0b24bd7 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/clk-system.c from Linux.
   */
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-utmi.c +0 -1
index 7c8bcfb51dba..84784ae41ce8 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/clk-utmi.c from Linux.
   */
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/compat.c +1 -1
index ee67093c6073..1d738f160b6e 100644
@@ -6,7 +6,7 @@
   *
   * Author: Claudiu Beznea <[email protected]>
   */
-#include <common.h>
+#include <config.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <asm/global_data.h>
drivers/clk/at91/pmc.c +0 -1
index 87d2069d89ce..aa4bc8fa47ad 100644
@@ -4,7 +4,6 @@
   *               Wenyou.Yang <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/sam9x60.c +0 -1
index d858c860f696..b7d64bdbb3d4 100644
@@ -7,7 +7,6 @@
   * Based on sam9x60.c on Linux.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sama7g5.c +0 -1
index 3e62fb1f58d3..63b2c6474679 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/sama7g5.c from Linux.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sckc.c +0 -1
index 43136ab2e349..6d6f12578db7 100644
@@ -7,7 +7,6 @@
   * Author: Claudiu Beznea <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/clk-cdce9xx.c +0 -1
index b8700f517fc9..e5f74e714d54 100644
@@ -8,7 +8,6 @@
   * Based on Linux kernel clk-cdce925.c.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/clk-composite.c +0 -1
index d2e5a1ae401d..199ca6eaa370 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk-divider.c +0 -1
index 2ad682b8fe2c..aa210e3d15fd 100644
@@ -11,7 +11,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/clk-fixed-factor.c +0 -1
index 2a446788e191..068798cf9b05 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/clk-gate.c +0 -1
index cfd90b717e73..bf1c6a93b468 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <log.h>
  #include <clk-uclass.h>
drivers/clk/clk-hsdk-cgu.c +0 -1
index 85074f1b86e8..53655059279e 100644
@@ -9,7 +9,6 @@
   * warranty of any kind, whether express or implied.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/clk-mux.c +0 -1
index f410518461e9..39e01c3fbc61 100644
@@ -23,7 +23,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk-uclass.c +0 -1
index ed6e60bc4841..4c832f1a5307 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/clk-xlnx-clock-wizard.c +0 -1
index a10a843f11f9..4a3f50c638b1 100644
@@ -7,7 +7,6 @@
   * Author: Zhengxun Li <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/clk.c +0 -1
index 6ede1b4d4dcc..b8c2e8d531b9 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk_bcm6345.c +0 -1
index 8c22ed2f43d4..0b41872b7192 100644
@@ -6,7 +6,6 @@
   *	Copyright (C) 2008 Maxime Bizon <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/clk_boston.c +0 -1
index 4bcf91175512..030ff7cc58ec 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Imagination Technologies
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clock/boston-clock.h>
drivers/clk/clk_fixed_factor.c +0 -1
index 6c1139e5c519..1d740cf49f62 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/clk_fixed_rate.c +0 -1
index b5e78c70559e..d1da05cc18a5 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_k210.c +0 -1
index 7432ae8f0642..d1a6cde8f0f8 100644
@@ -4,7 +4,6 @@
   */
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/clk_pic32.c +0 -1
index a77d0e7419c9..885aa8345165 100644
@@ -4,7 +4,6 @@
   *
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/clk_sandbox.c +0 -1
index 73d943f9e092..8dd77f18d901 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/clk_sandbox_ccf.c +0 -1
index 38184e27aa4f..f96a15c30b3a 100644
@@ -6,7 +6,6 @@
   * Common Clock Framework [CCF] driver for Sandbox
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <malloc.h>
drivers/clk/clk_sandbox_test.c +0 -1
index c224dc1d2cb9..87350212775c 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <malloc.h>
drivers/clk/clk_scmi.c +0 -1
index 34a49363a51a..e42d2032d45e 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <scmi_agent.h>
drivers/clk/clk_versaclock.c +0 -1
index bbe722560329..9ccaf13d2420 100644
@@ -5,7 +5,6 @@
   * Derived from code Copyright (C) 2017 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/clk_versal.c +0 -1
index 42ab032bf7e7..35ee56d0693d 100644
@@ -4,7 +4,6 @@
   * Siva Durga Prasad Paladugu <[email protected]>>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/cache.h>
  #include <asm/ptrace.h>
drivers/clk/clk_vexpress_osc.c +0 -1
index 3b1e0208d47e..2e0e7bbe68ff 100644
@@ -5,7 +5,6 @@
   *
   */
  #define DEBUG
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_zynq.c +0 -1
index e3cefe2e0c72..b62b4646f4e5 100644
@@ -7,7 +7,6 @@
   * Copyright (C) 2013 Xilinx, Inc. All rights reserved.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_zynqmp.c +0 -1
index e23f7da3f929..599992661484 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2016 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <dm/device_compat.h>
drivers/clk/exynos/clk-exynos7420.c +0 -1
index 9caa932e12fb..3aa751bf4e42 100644
@@ -5,7 +5,6 @@
   * Thomas Abraham <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/ics8n3qv01.c +0 -1
index 33fb6ed0c7a4..9c61a84ea61f 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk-uclass.h>
  #include <i2c.h>
drivers/clk/imx/clk-composite-8m.c +0 -1
index 494156751dae..45f1bcaea288 100644
@@ -3,7 +3,6 @@
   * Copyright 2019 NXP
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <malloc.h>
drivers/clk/imx/clk-composite-93.c +0 -1
index 6d71c0c03ffe..2cf20be2ccae 100644
@@ -4,7 +4,6 @@
   *
   * Peng Fan <[email protected]>
   */
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <malloc.h>
drivers/clk/imx/clk-fracn-gppll.c +0 -1
index 9228f279e27d..8f42a5cb1b72 100644
@@ -3,7 +3,6 @@
   * Copyright 2021 NXP
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-gate-93.c +0 -1
index bc8574137137..d7f2640fbb7c 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-gate2.c +0 -1
index da2723023778..65fa6b5b139f 100644
@@ -14,7 +14,6 @@
   *
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-imx6q.c +0 -1
index 67825af89b81..ba9923d8f6fa 100644
@@ -4,7 +4,6 @@
   * Lukasz Majewski, DENX Software Engineering, [email protected]
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8.c +0 -1
index d39b87b2e245..96cf5fece75f 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8mm.c +0 -1
index 1a00dd1d287b..70e2e53bdea5 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mn.c +0 -1
index 457acb8a401e..ed9e16d7c180 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mp.c +0 -1
index 7dfc829df2c4..1f498b6ba4ea 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mq.c +0 -1
index cf197df96dbb..ed4acd79ef74 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8qm.c +0 -1
index 01e33de9d63f..62fed7e3e32c 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8qxp.c +0 -1
index d900d4cd5286..18bdc08971bf 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx93.c +0 -1
index f0cb797d9750..ede36c412bff 100644
@@ -3,7 +3,6 @@
   * Copyright 2021 NXP.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1020.c +0 -1
index dc91ac5adbf1..c80b02975aad 100644
@@ -4,7 +4,6 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1050.c +0 -1
index d40635d17a4a..754f39484275 100644
@@ -4,7 +4,6 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1170.c +0 -1
index 077dd1bf02d3..20b9dc315001 100644
@@ -4,7 +4,6 @@
   * Author(s): Jesse Taube <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-pfd.c +0 -1
index b8be3167c4cd..378cdff072fe 100644
@@ -14,7 +14,6 @@
   * http://www.gnu.org/copyleft/gpl.html
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-pll14xx.c +0 -1
index 1cb685ee9abd..3911e0339056 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-pllv3.c +0 -1
index fad306aeed23..c6692f2f9f5a 100644
@@ -4,7 +4,6 @@
   * Lukasz Majewski, DENX Software Engineering, [email protected]
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <div64.h>
  #include <malloc.h>
drivers/clk/intel/clk_intel.c +0 -1
index 46ccbb1d834d..a677a7caac7c 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk-uclass.h>
  #include <dt-bindings/clock/intel-clock.h>
drivers/clk/mediatek/clk-mt7622.c +0 -1
index 259ea335959c..2beb63030f22 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7623.c +0 -1
index 0c7411ee814d..5072c9983c11 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7629.c +0 -1
index 31b6fa02251a..0c796a1788aa 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt8183.c +0 -1
index 17e653a1f00a..9612a62e56a7 100644
@@ -8,7 +8,6 @@
   * Author: Weiyi Lu <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8183-clk.h>
drivers/clk/mediatek/clk-mt8512.c +0 -1
index 193e069cb053..ab2706734428 100644
@@ -6,7 +6,6 @@
   * Author: Chen Zhong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8512-clk.h>
drivers/clk/mediatek/clk-mt8516.c +0 -1
index 29f70620e09d..623f88499f1b 100644
@@ -6,7 +6,6 @@
   * Author: Fabien Parent <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8516-clk.h>
drivers/clk/mediatek/clk-mt8518.c +0 -1
index 238651483726..ba8cc584d46f 100644
@@ -6,7 +6,6 @@
   * Author: Chen Zhong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8518-clk.h>
drivers/clk/mediatek/clk-mtk.c +0 -1
index 4303300d3a8d..d2c45be30dec 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/meson/a1.c +0 -1
index 5220a337a8bb..a1b8d7914910 100644
@@ -4,7 +4,6 @@
   * Author: Igor Prusov <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <regmap.h>
drivers/clk/meson/axg-ao.c +0 -1
index 311ffc1cca9a..6ccf52127b02 100644
@@ -1,6 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/meson/axg.c +0 -1
index d6da59d269b0..c421a622a587 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-axg.h>
  #include <asm/io.h>
drivers/clk/meson/g12a-ao.c +0 -1
index 1a855a68966e..61d489c6e1c8 100644
@@ -1,6 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/meson/g12a.c +0 -1
index e4fed8ddfb27..5d7faaa3eabf 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-g12a.h>
  #include <asm/io.h>
drivers/clk/meson/gxbb.c +0 -1
index e379540deee7..72ad4fd0e85f 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-gx.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk.c +0 -1
index 08f8bfcecbed..0a82777ff74d 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/microchip/mpfs_clk_cfg.c +0 -1
index 5739fd66e8df..5e8fb9952895 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_msspll.c +0 -1
index f37c0d86047c..d0e7b1ff844f 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (C) 2022 Microchip Technology Inc.
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_periph.c +0 -1
index ddeccb914575..41c6df4fb979 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/mpc83xx_clk.c +0 -1
index cc734450ef00..a29ad0d7a68d 100644
@@ -4,7 +4,6 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clock_legacy.h>
  #include <command.h>
drivers/clk/mtmips/clk-mt7628.c +0 -1
index 4d3ac847d1d5..2e263fb2cd28 100644
@@ -5,7 +5,6 @@
   * Author: Weijie Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clock/mt7628-clk.h>
drivers/clk/mvebu/armada-37xx-periph.c +0 -1
index f5c9bd735c13..30330393f760 100644
@@ -8,7 +8,6 @@
   *   Gregory CLEMENT <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <clk-uclass.h>
  #include <clk.h>
drivers/clk/mvebu/armada-37xx-tbg.c +0 -1
index 846a73cd6b36..c1bab84c070e 100644
@@ -8,7 +8,6 @@
   *   Gregory CLEMENT <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clk.h>
  #include <dm.h>
drivers/clk/owl/clk_owl.c +0 -1
index 678fdd5a4540..513112c1146c 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include "clk_owl.h"
  #include <asm/io.h>
drivers/clk/qcom/clock-apq8016.c +0 -1
index d3b63b9c1ac5..41fe4d896a7c 100644
@@ -7,7 +7,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-apq8096.c +0 -1
index 479f9771a464..c77d69128b00 100644
@@ -7,7 +7,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-ipq4019.c +0 -1
index 72f235eab212..0e6d93b3d7c2 100644
@@ -9,7 +9,6 @@
   */
 
  #include <clk-uclass.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
drivers/clk/qcom/clock-qcom.c +0 -1
index 05e5ab7d094b..3a9cf2a231f2 100644
@@ -12,7 +12,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device-internal.h>
drivers/clk/qcom/clock-qcs404.c +0 -1
index 8a897a52bc00..70a1f648e585 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2022 Sumit Garg <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-sdm845.c +0 -1
index 782df7da8444..f41f8c9e8dee 100644
@@ -8,7 +8,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/delay.h>
drivers/clk/rockchip/clk_pll.c +0 -1
index 66f8bb166955..44c6f14618d2 100644
@@ -2,7 +2,6 @@
  /*
   * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
   */
- #include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_px30.c +0 -1
index 2875c152b20d..d7825c66493e 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3036.c +0 -1
index 6238b14c29e1..274428f2b4bd 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3066.c +0 -1
index f83335df6db6..f7dea7859f74 100644
@@ -5,7 +5,6 @@
   */
 
  #include <bitfield.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3128.c +0 -1
index 182754e7052d..a07285593b55 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3188.c +0 -1
index f98b46a0f73b..f569a100f22b 100644
@@ -4,7 +4,6 @@
   * (C) Copyright 2016 Heiko Stuebner <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk322x.c +0 -1
index 9371c4f63a48..9b71fd863bad 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3288.c +0 -1
index 0b7eefad15f1..432a79291c8a 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/rockchip/clk_rk3308.c +0 -1
index 861648321d40..e73bb6790af2 100644
@@ -2,7 +2,6 @@
  /*
   * (C) Copyright 2017-2019 Rockchip Electronics Co., Ltd
   */
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3328.c +0 -1
index 87075ec71340..4b94d6364d13 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3368.c +0 -1
index 1c5dfaa3800b..d89439805215 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3399.c +0 -1
index 80f65a237e8e..cc414c38432c 100644
@@ -4,7 +4,6 @@
   * (C) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3568.c +0 -1
index 24eeca8bf265..35563509d617 100644
@@ -4,7 +4,6 @@
   * Author: Elaine Zhang <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3588.c +0 -1
index 4c611a390499..ceae08a19aa5 100644
@@ -4,7 +4,6 @@
   * Author: Elaine Zhang <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rv1108.c +0 -1
index fc442f7eebe2..75202a66aa68 100644
@@ -4,7 +4,6 @@
   * Author: Andy Yan <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rv1126.c +0 -1
index cfdfcbdb0f4c..aeeea9569147 100644
@@ -5,7 +5,6 @@
   * Author: Finley Xiao <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/sifive/sifive-prci.c +0 -1
index c8fb60029070..5ea860628006 100644
@@ -22,7 +22,6 @@
   * https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clk.h>
  #include <dm.h>
drivers/clk/starfive/clk-jh7110-pll.c +0 -1
index 1568a1f4cd91..581035842fc3 100644
@@ -6,7 +6,6 @@
   *		Xingyu Wu <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/starfive/clk-jh7110.c +0 -1
index a38694809a00..191da75d7ba2 100644
@@ -6,7 +6,6 @@
   *		Xingyu Wu <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/stm32/clk-stm32-core.c +0 -1
index 37e996e78f96..cad07cc952e7 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32f.c +0 -1
index d68c75ed2013..fceb3c44b94e 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32h7.c +0 -1
index d440c28eb485..a554eda504de 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32mp1.c +0 -1
index 6f000c8e4448..204ac170531d 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/stm32/clk-stm32mp13.c +0 -1
index 5174ae53a1a2..362dba102521 100644
@@ -7,7 +7,6 @@
  #define LOG_CATEGORY UCLASS_CLK
 
  #include <clk-uclass.h>
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/io.h>
drivers/clk/sunxi/clk_a10.c +0 -1
index f27306fe33b3..19fe248044b4 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a10s.c +0 -1
index 16ac589bb2bf..f771369c9423 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a23.c +0 -1
index 45d5ba75bf51..fdee4347e991 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a31.c +0 -1
index 6ca800050ed0..04f76a7c2a38 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a64.c +0 -1
index fd26cd4f5d66..f1b01d25ddd4 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a80.c +0 -1
index c5834f44103f..6751af8a8031 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a83t.c +0 -1
index 760d98cd620c..d8621a3e64cc 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_d1.c +0 -1
index 9dae761de83c..b990a1185948 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2021 Samuel Holland <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_f1c100s.c +0 -1
index 7b4c3ce51765..e22956992014 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 George Hilliard <[email protected]>.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h3.c +0 -1
index 32bc95fccca4..ce55caeb1573 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h6.c +0 -1
index 071fd581003d..1b7bd9dea2f8 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h616.c +0 -1
index 113dcff28515..b1e999e18c14 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2021 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_r40.c +0 -1
index 0fef6f3566d5..721debdae238 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_sunxi.c +0 -1
index 1782cffc404a..2ef4f45dacf5 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_v3s.c +0 -1
index 6524c13540e0..85410e282e85 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/tegra/tegra-car-clk.c +0 -1
index c5214b9b3e2e..1d61f8dc378d 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/tegra/tegra186-clk.c +0 -1
index 5a98a3f3f0e6..ec52326c3b36 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/ti/clk-am3-dpll-x2.c +0 -1
index 3cf279d6a3a9..1b0b9818cdd4 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/dpll.c
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/clk/ti/clk-am3-dpll.c +0 -1
index 398a011a5cea..21ec01f8dd9a 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/dpll.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/ti/clk-ctrl.c +0 -1
index 8926e57ebc84..c5c97dc35c4d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-divider.c +0 -1
index 15941f17811a..40a742d7fdc4 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/divider.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/ti/clk-gate.c +0 -1
index eb15f6243f20..873ceb8a2ab7 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/gate.c
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-k3-pll.c +0 -1
index 8323e6e6919c..b3a1b4cedb78 100644
@@ -6,7 +6,6 @@
   *	Tero Kristo <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/ti/clk-k3.c +0 -1
index 7aa162c2f702..41e5022ea0cd 100644
@@ -6,7 +6,6 @@
   *	Tero Kristo <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <soc.h>
drivers/clk/ti/clk-mux.c +0 -1
index 215241b16135..db5393414318 100644
@@ -7,7 +7,6 @@
   * Based on Linux kernel drivers/clk/ti/mux.c
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-sci.c +0 -1
index 9e5760d33544..e374bd3bcc20 100644
@@ -8,7 +8,6 @@
   * Loosely based on Linux kernel sci-clk.c...
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk.c +0 -1
index 6e5cc90f0f8c..28cd15128819 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <regmap.h>
drivers/clk/ti/omap4-cm.c +0 -1
index 3cdc9b28887d..a30ce9d09d27 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/lists.h>
 
drivers/clk/uniphier/clk-uniphier-core.c +0 -1
index c31e59641d93..33369c93916b 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device_compat.h>
Reviewed-by on v1 19/81
#24 lore raw

Re: [PATCH 19/81] clk: 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 1,993 lines

---
Cc: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[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: Eugeniy Paltsev <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Kunihiko Hayashi <[email protected]>
Cc: Dai Okamura <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Francois Berder <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Chanho Park <[email protected]>
Cc: Sam Protsenko <[email protected]>
Cc: Konrad Dybcio <[email protected]>
Cc: Volodymyr Babchuk <[email protected]>
Cc: Torsten Duwe <[email protected]>
Cc: Hal Feng <[email protected]>
Cc: Leo Yu-Chi Liang <[email protected]>
Cc: Xingyu Wu <[email protected]>
Cc: Hoegeun Kwon <[email protected]>
Cc: Vishal Mahaveer <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Bryan Brattlof <[email protected]>
Cc: Hari Nagalla <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Udit Kumar <[email protected]>

---
  drivers/clk/altera/clk-agilex.c          | 1 -
  drivers/clk/altera/clk-arria10.c         | 1 -
  drivers/clk/altera/clk-mem-n5x.c         | 1 -
  drivers/clk/altera/clk-n5x.c             | 1 -
  drivers/clk/aspeed/clk_ast2500.c         | 1 -
  drivers/clk/aspeed/clk_ast2600.c         | 1 -
  drivers/clk/at91/clk-generic.c           | 1 -
  drivers/clk/at91/clk-main.c              | 1 -
  drivers/clk/at91/clk-master.c            | 1 -
  drivers/clk/at91/clk-peripheral.c        | 1 -
  drivers/clk/at91/clk-programmable.c      | 1 -
  drivers/clk/at91/clk-sam9x60-pll.c       | 1 -
  drivers/clk/at91/clk-system.c            | 1 -
  drivers/clk/at91/clk-utmi.c              | 1 -
  drivers/clk/at91/compat.c                | 2 +-
  drivers/clk/at91/pmc.c                   | 1 -
  drivers/clk/at91/sam9x60.c               | 1 -
  drivers/clk/at91/sama7g5.c               | 1 -
  drivers/clk/at91/sckc.c                  | 1 -
  drivers/clk/clk-cdce9xx.c                | 1 -
  drivers/clk/clk-composite.c              | 1 -
  drivers/clk/clk-divider.c                | 1 -
  drivers/clk/clk-fixed-factor.c           | 1 -
  drivers/clk/clk-gate.c                   | 1 -
  drivers/clk/clk-hsdk-cgu.c               | 1 -
  drivers/clk/clk-mux.c                    | 1 -
  drivers/clk/clk-uclass.c                 | 1 -
  drivers/clk/clk-xlnx-clock-wizard.c      | 1 -
  drivers/clk/clk.c                        | 1 -
  drivers/clk/clk_bcm6345.c                | 1 -
  drivers/clk/clk_boston.c                 | 1 -
  drivers/clk/clk_fixed_factor.c           | 1 -
  drivers/clk/clk_fixed_rate.c             | 1 -
  drivers/clk/clk_k210.c                   | 1 -
  drivers/clk/clk_pic32.c                  | 1 -
  drivers/clk/clk_sandbox.c                | 1 -
  drivers/clk/clk_sandbox_ccf.c            | 1 -
  drivers/clk/clk_sandbox_test.c           | 1 -
  drivers/clk/clk_scmi.c                   | 1 -
  drivers/clk/clk_versaclock.c             | 1 -
  drivers/clk/clk_versal.c                 | 1 -
  drivers/clk/clk_vexpress_osc.c           | 1 -
  drivers/clk/clk_zynq.c                   | 1 -
  drivers/clk/clk_zynqmp.c                 | 1 -
  drivers/clk/exynos/clk-exynos7420.c      | 1 -
  drivers/clk/ics8n3qv01.c                 | 1 -
  drivers/clk/imx/clk-composite-8m.c       | 1 -
  drivers/clk/imx/clk-composite-93.c       | 1 -
  drivers/clk/imx/clk-fracn-gppll.c        | 1 -
  drivers/clk/imx/clk-gate-93.c            | 1 -
  drivers/clk/imx/clk-gate2.c              | 1 -
  drivers/clk/imx/clk-imx6q.c              | 1 -
  drivers/clk/imx/clk-imx8.c               | 1 -
  drivers/clk/imx/clk-imx8mm.c             | 1 -
  drivers/clk/imx/clk-imx8mn.c             | 1 -
  drivers/clk/imx/clk-imx8mp.c             | 1 -
  drivers/clk/imx/clk-imx8mq.c             | 1 -
  drivers/clk/imx/clk-imx8qm.c             | 1 -
  drivers/clk/imx/clk-imx8qxp.c            | 1 -
  drivers/clk/imx/clk-imx93.c              | 1 -
  drivers/clk/imx/clk-imxrt1020.c          | 1 -
  drivers/clk/imx/clk-imxrt1050.c          | 1 -
  drivers/clk/imx/clk-imxrt1170.c          | 1 -
  drivers/clk/imx/clk-pfd.c                | 1 -
  drivers/clk/imx/clk-pll14xx.c            | 1 -
  drivers/clk/imx/clk-pllv3.c              | 1 -
  drivers/clk/intel/clk_intel.c            | 1 -
  drivers/clk/mediatek/clk-mt7622.c        | 1 -
  drivers/clk/mediatek/clk-mt7623.c        | 1 -
  drivers/clk/mediatek/clk-mt7629.c        | 1 -
  drivers/clk/mediatek/clk-mt8183.c        | 1 -
  drivers/clk/mediatek/clk-mt8512.c        | 1 -
  drivers/clk/mediatek/clk-mt8516.c        | 1 -
  drivers/clk/mediatek/clk-mt8518.c        | 1 -
  drivers/clk/mediatek/clk-mtk.c           | 1 -
  drivers/clk/meson/a1.c                   | 1 -
  drivers/clk/meson/axg-ao.c               | 1 -
  drivers/clk/meson/axg.c                  | 1 -
  drivers/clk/meson/g12a-ao.c              | 1 -
  drivers/clk/meson/g12a.c                 | 1 -
  drivers/clk/meson/gxbb.c                 | 1 -
  drivers/clk/microchip/mpfs_clk.c         | 1 -
  drivers/clk/microchip/mpfs_clk_cfg.c     | 1 -
  drivers/clk/microchip/mpfs_clk_msspll.c  | 1 -
  drivers/clk/microchip/mpfs_clk_periph.c  | 1 -
  drivers/clk/mpc83xx_clk.c                | 1 -
  drivers/clk/mtmips/clk-mt7628.c          | 1 -
  drivers/clk/mvebu/armada-37xx-periph.c   | 1 -
  drivers/clk/mvebu/armada-37xx-tbg.c      | 1 -
  drivers/clk/owl/clk_owl.c                | 1 -
  drivers/clk/qcom/clock-apq8016.c         | 1 -
  drivers/clk/qcom/clock-apq8096.c         | 1 -
  drivers/clk/qcom/clock-ipq4019.c         | 1 -
  drivers/clk/qcom/clock-qcom.c            | 1 -
  drivers/clk/qcom/clock-qcs404.c          | 1 -
  drivers/clk/qcom/clock-sdm845.c          | 1 -
  drivers/clk/rockchip/clk_pll.c           | 1 -
  drivers/clk/rockchip/clk_px30.c          | 1 -
  drivers/clk/rockchip/clk_rk3036.c        | 1 -
  drivers/clk/rockchip/clk_rk3066.c        | 1 -
  drivers/clk/rockchip/clk_rk3128.c        | 1 -
  drivers/clk/rockchip/clk_rk3188.c        | 1 -
  drivers/clk/rockchip/clk_rk322x.c        | 1 -
  drivers/clk/rockchip/clk_rk3288.c        | 1 -
  drivers/clk/rockchip/clk_rk3308.c        | 1 -
  drivers/clk/rockchip/clk_rk3328.c        | 1 -
  drivers/clk/rockchip/clk_rk3368.c        | 1 -
  drivers/clk/rockchip/clk_rk3399.c        | 1 -
  drivers/clk/rockchip/clk_rk3568.c        | 1 -
  drivers/clk/rockchip/clk_rk3588.c        | 1 -
  drivers/clk/rockchip/clk_rv1108.c        | 1 -
  drivers/clk/rockchip/clk_rv1126.c        | 1 -
  drivers/clk/sifive/sifive-prci.c         | 1 -
  drivers/clk/starfive/clk-jh7110-pll.c    | 1 -
  drivers/clk/starfive/clk-jh7110.c        | 1 -
  drivers/clk/stm32/clk-stm32-core.c       | 1 -
  drivers/clk/stm32/clk-stm32f.c           | 1 -
  drivers/clk/stm32/clk-stm32h7.c          | 1 -
  drivers/clk/stm32/clk-stm32mp1.c         | 1 -
  drivers/clk/stm32/clk-stm32mp13.c        | 1 -
  drivers/clk/sunxi/clk_a10.c              | 1 -
  drivers/clk/sunxi/clk_a10s.c             | 1 -
  drivers/clk/sunxi/clk_a23.c              | 1 -
  drivers/clk/sunxi/clk_a31.c              | 1 -
  drivers/clk/sunxi/clk_a64.c              | 1 -
  drivers/clk/sunxi/clk_a80.c              | 1 -
  drivers/clk/sunxi/clk_a83t.c             | 1 -
  drivers/clk/sunxi/clk_d1.c               | 1 -
  drivers/clk/sunxi/clk_f1c100s.c          | 1 -
  drivers/clk/sunxi/clk_h3.c               | 1 -
  drivers/clk/sunxi/clk_h6.c               | 1 -
  drivers/clk/sunxi/clk_h616.c             | 1 -
  drivers/clk/sunxi/clk_r40.c              | 1 -
  drivers/clk/sunxi/clk_sunxi.c            | 1 -
  drivers/clk/sunxi/clk_v3s.c              | 1 -
  drivers/clk/tegra/tegra-car-clk.c        | 1 -
  drivers/clk/tegra/tegra186-clk.c         | 1 -
  drivers/clk/ti/clk-am3-dpll-x2.c         | 1 -
  drivers/clk/ti/clk-am3-dpll.c            | 1 -
  drivers/clk/ti/clk-ctrl.c                | 1 -
  drivers/clk/ti/clk-divider.c             | 1 -
  drivers/clk/ti/clk-gate.c                | 1 -
  drivers/clk/ti/clk-k3-pll.c              | 1 -
  drivers/clk/ti/clk-k3.c                  | 1 -
  drivers/clk/ti/clk-mux.c                 | 1 -
  drivers/clk/ti/clk-sci.c                 | 1 -
  drivers/clk/ti/clk.c                     | 1 -
  drivers/clk/ti/omap4-cm.c                | 1 -
  drivers/clk/uniphier/clk-uniphier-core.c | 1 -
  149 files changed, 1 insertion(+), 149 deletions(-)
drivers/clk/altera/clk-agilex.c +0 -1
index cca6d6741221..bdc7be0fb5d3 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/altera/clk-arria10.c +0 -1
index 578597a16e81..1840f73beeec 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2018 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/altera/clk-mem-n5x.c +0 -1
index 9bbe2cd0ca70..b75f52d203b2 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <asm/arch/clock_manager.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/altera/clk-n5x.c +0 -1
index 3fa19e05c47e..3e256101a947 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
   */
 
-#include <common.h>
  #include <asm/arch/clock_manager.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
drivers/clk/aspeed/clk_ast2500.c +0 -1
index dc446ce9fb7d..a330dcda4dcb 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2016 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/aspeed/clk_ast2600.c +0 -1
index a15909329bbd..535010b79414 100644
@@ -3,7 +3,6 @@
   * Copyright (C) ASPEED Technology Inc.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <asm/io.h>
drivers/clk/at91/clk-generic.c +0 -1
index 87738b7b5bff..c410cd2b5052 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-generated.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-main.c +0 -1
index 025c7a7aa26d..09daae97676d 100644
@@ -10,7 +10,6 @@
   */
 
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-master.c +0 -1
index aec0bca7b3cb..d28775d64d33 100644
@@ -11,7 +11,6 @@
 
  #include <asm/processor.h>
  #include <clk-uclass.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-peripheral.c +0 -1
index 52cbc520cef4..08d7e7dddc9e 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-peripheral.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-programmable.c +0 -1
index 868de4b1774b..d0b14656c4d6 100644
@@ -8,7 +8,6 @@
   *
   * Based on drivers/clk/at91/clk-programmable.c from Linux.
   */
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/clk-sam9x60-pll.c +0 -1
index 383f79cfbaf5..a30035eb8ce9 100644
@@ -11,7 +11,6 @@
   */
 
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/at91/clk-system.c +0 -1
index 82f79e74a190..3545b0b24bd7 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/clk-system.c from Linux.
   */
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/io.h>
drivers/clk/at91/clk-utmi.c +0 -1
index 7c8bcfb51dba..84784ae41ce8 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/clk-utmi.c from Linux.
   */
  #include <asm/processor.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/compat.c +1 -1
index ee67093c6073..1d738f160b6e 100644
@@ -6,7 +6,7 @@
   *
   * Author: Claudiu Beznea <[email protected]>
   */
-#include <common.h>
+#include <config.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <asm/global_data.h>
drivers/clk/at91/pmc.c +0 -1
index 87d2069d89ce..aa4bc8fa47ad 100644
@@ -4,7 +4,6 @@
   *               Wenyou.Yang <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
  #include <linux/clk-provider.h>
drivers/clk/at91/sam9x60.c +0 -1
index d858c860f696..b7d64bdbb3d4 100644
@@ -7,7 +7,6 @@
   * Based on sam9x60.c on Linux.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sama7g5.c +0 -1
index 3e62fb1f58d3..63b2c6474679 100644
@@ -9,7 +9,6 @@
   * Based on drivers/clk/at91/sama7g5.c from Linux.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/at91/sckc.c +0 -1
index 43136ab2e349..6d6f12578db7 100644
@@ -7,7 +7,6 @@
   * Author: Claudiu Beznea <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clk/at91.h>
drivers/clk/clk-cdce9xx.c +0 -1
index b8700f517fc9..e5f74e714d54 100644
@@ -8,7 +8,6 @@
   * Based on Linux kernel clk-cdce925.c.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/clk-composite.c +0 -1
index d2e5a1ae401d..199ca6eaa370 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk-divider.c +0 -1
index 2ad682b8fe2c..aa210e3d15fd 100644
@@ -11,7 +11,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/clk-fixed-factor.c +0 -1
index 2a446788e191..068798cf9b05 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/clk-gate.c +0 -1
index cfd90b717e73..bf1c6a93b468 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <log.h>
  #include <clk-uclass.h>
drivers/clk/clk-hsdk-cgu.c +0 -1
index 85074f1b86e8..53655059279e 100644
@@ -9,7 +9,6 @@
   * warranty of any kind, whether express or implied.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/clk-mux.c +0 -1
index f410518461e9..39e01c3fbc61 100644
@@ -23,7 +23,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk-uclass.c +0 -1
index ed6e60bc4841..4c832f1a5307 100644
@@ -8,7 +8,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/clk-xlnx-clock-wizard.c +0 -1
index a10a843f11f9..4a3f50c638b1 100644
@@ -7,7 +7,6 @@
   * Author: Zhengxun Li <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/clk.c +0 -1
index 6ede1b4d4dcc..b8c2e8d531b9 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <log.h>
drivers/clk/clk_bcm6345.c +0 -1
index 8c22ed2f43d4..0b41872b7192 100644
@@ -6,7 +6,6 @@
   *	Copyright (C) 2008 Maxime Bizon <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/clk_boston.c +0 -1
index 4bcf91175512..030ff7cc58ec 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Imagination Technologies
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clock/boston-clock.h>
drivers/clk/clk_fixed_factor.c +0 -1
index 6c1139e5c519..1d740cf49f62 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/clk_fixed_rate.c +0 -1
index b5e78c70559e..d1da05cc18a5 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_k210.c +0 -1
index 7432ae8f0642..d1a6cde8f0f8 100644
@@ -4,7 +4,6 @@
   */
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/clk_pic32.c +0 -1
index a77d0e7419c9..885aa8345165 100644
@@ -4,7 +4,6 @@
   *
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/clk_sandbox.c +0 -1
index 73d943f9e092..8dd77f18d901 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/clk_sandbox_ccf.c +0 -1
index 38184e27aa4f..f96a15c30b3a 100644
@@ -6,7 +6,6 @@
   * Common Clock Framework [CCF] driver for Sandbox
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <malloc.h>
drivers/clk/clk_sandbox_test.c +0 -1
index c224dc1d2cb9..87350212775c 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <malloc.h>
drivers/clk/clk_scmi.c +0 -1
index 34a49363a51a..e42d2032d45e 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <scmi_agent.h>
drivers/clk/clk_versaclock.c +0 -1
index bbe722560329..9ccaf13d2420 100644
@@ -5,7 +5,6 @@
   * Derived from code Copyright (C) 2017 Marek Vasut <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/clk_versal.c +0 -1
index 42ab032bf7e7..35ee56d0693d 100644
@@ -4,7 +4,6 @@
   * Siva Durga Prasad Paladugu <[email protected]>>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/cache.h>
  #include <asm/ptrace.h>
drivers/clk/clk_vexpress_osc.c +0 -1
index 3b1e0208d47e..2e0e7bbe68ff 100644
@@ -5,7 +5,6 @@
   *
   */
  #define DEBUG
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_zynq.c +0 -1
index e3cefe2e0c72..b62b4646f4e5 100644
@@ -7,7 +7,6 @@
   * Copyright (C) 2013 Xilinx, Inc. All rights reserved.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/clk_zynqmp.c +0 -1
index e23f7da3f929..599992661484 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2016 Xilinx, Inc.
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <dm/device_compat.h>
drivers/clk/exynos/clk-exynos7420.c +0 -1
index 9caa932e12fb..3aa751bf4e42 100644
@@ -5,7 +5,6 @@
   * Thomas Abraham <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/ics8n3qv01.c +0 -1
index 33fb6ed0c7a4..9c61a84ea61f 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk-uclass.h>
  #include <i2c.h>
drivers/clk/imx/clk-composite-8m.c +0 -1
index 494156751dae..45f1bcaea288 100644
@@ -3,7 +3,6 @@
   * Copyright 2019 NXP
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <malloc.h>
drivers/clk/imx/clk-composite-93.c +0 -1
index 6d71c0c03ffe..2cf20be2ccae 100644
@@ -4,7 +4,6 @@
   *
   * Peng Fan <[email protected]>
   */
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <malloc.h>
drivers/clk/imx/clk-fracn-gppll.c +0 -1
index 9228f279e27d..8f42a5cb1b72 100644
@@ -3,7 +3,6 @@
   * Copyright 2021 NXP
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-gate-93.c +0 -1
index bc8574137137..d7f2640fbb7c 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-gate2.c +0 -1
index da2723023778..65fa6b5b139f 100644
@@ -14,7 +14,6 @@
   *
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-imx6q.c +0 -1
index 67825af89b81..ba9923d8f6fa 100644
@@ -4,7 +4,6 @@
   * Lukasz Majewski, DENX Software Engineering, [email protected]
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8.c +0 -1
index d39b87b2e245..96cf5fece75f 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8mm.c +0 -1
index 1a00dd1d287b..70e2e53bdea5 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mn.c +0 -1
index 457acb8a401e..ed9e16d7c180 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mp.c +0 -1
index 7dfc829df2c4..1f498b6ba4ea 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8mq.c +0 -1
index cf197df96dbb..ed4acd79ef74 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imx8qm.c +0 -1
index 01e33de9d63f..62fed7e3e32c 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx8qxp.c +0 -1
index d900d4cd5286..18bdc08971bf 100644
@@ -4,7 +4,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/imx/clk-imx93.c +0 -1
index f0cb797d9750..ede36c412bff 100644
@@ -3,7 +3,6 @@
   * Copyright 2021 NXP.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1020.c +0 -1
index dc91ac5adbf1..c80b02975aad 100644
@@ -4,7 +4,6 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1050.c +0 -1
index d40635d17a4a..754f39484275 100644
@@ -4,7 +4,6 @@
   * Author(s): Giulio Benetti <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-imxrt1170.c +0 -1
index 077dd1bf02d3..20b9dc315001 100644
@@ -4,7 +4,6 @@
   * Author(s): Jesse Taube <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/imx/clk-pfd.c +0 -1
index b8be3167c4cd..378cdff072fe 100644
@@ -14,7 +14,6 @@
   * http://www.gnu.org/copyleft/gpl.html
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-pll14xx.c +0 -1
index 1cb685ee9abd..3911e0339056 100644
@@ -5,7 +5,6 @@
   * Peng Fan <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/imx/clk-pllv3.c +0 -1
index fad306aeed23..c6692f2f9f5a 100644
@@ -4,7 +4,6 @@
   * Lukasz Majewski, DENX Software Engineering, [email protected]
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <div64.h>
  #include <malloc.h>
drivers/clk/intel/clk_intel.c +0 -1
index 46ccbb1d834d..a677a7caac7c 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk-uclass.h>
  #include <dt-bindings/clock/intel-clock.h>
drivers/clk/mediatek/clk-mt7622.c +0 -1
index 259ea335959c..2beb63030f22 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7623.c +0 -1
index 0c7411ee814d..5072c9983c11 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt7629.c +0 -1
index 31b6fa02251a..0c796a1788aa 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/arch-mediatek/reset.h>
drivers/clk/mediatek/clk-mt8183.c +0 -1
index 17e653a1f00a..9612a62e56a7 100644
@@ -8,7 +8,6 @@
   * Author: Weiyi Lu <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8183-clk.h>
drivers/clk/mediatek/clk-mt8512.c +0 -1
index 193e069cb053..ab2706734428 100644
@@ -6,7 +6,6 @@
   * Author: Chen Zhong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8512-clk.h>
drivers/clk/mediatek/clk-mt8516.c +0 -1
index 29f70620e09d..623f88499f1b 100644
@@ -6,7 +6,6 @@
   * Author: Fabien Parent <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8516-clk.h>
drivers/clk/mediatek/clk-mt8518.c +0 -1
index 238651483726..ba8cc584d46f 100644
@@ -6,7 +6,6 @@
   * Author: Chen Zhong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <dt-bindings/clock/mt8518-clk.h>
drivers/clk/mediatek/clk-mtk.c +0 -1
index 4303300d3a8d..d2c45be30dec 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/meson/a1.c +0 -1
index 5220a337a8bb..a1b8d7914910 100644
@@ -4,7 +4,6 @@
   * Author: Igor Prusov <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <regmap.h>
drivers/clk/meson/axg-ao.c +0 -1
index 311ffc1cca9a..6ccf52127b02 100644
@@ -1,6 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/meson/axg.c +0 -1
index d6da59d269b0..c421a622a587 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-axg.h>
  #include <asm/io.h>
drivers/clk/meson/g12a-ao.c +0 -1
index 1a855a68966e..61d489c6e1c8 100644
@@ -1,6 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
  #include <log.h>
  #include <asm/io.h>
  #include <clk-uclass.h>
drivers/clk/meson/g12a.c +0 -1
index e4fed8ddfb27..5d7faaa3eabf 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-g12a.h>
  #include <asm/io.h>
drivers/clk/meson/gxbb.c +0 -1
index e379540deee7..72ad4fd0e85f 100644
@@ -5,7 +5,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <asm/arch/clock-gx.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk.c +0 -1
index 08f8bfcecbed..0a82777ff74d 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/microchip/mpfs_clk_cfg.c +0 -1
index 5739fd66e8df..5e8fb9952895 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_msspll.c +0 -1
index f37c0d86047c..d0e7b1ff844f 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (C) 2022 Microchip Technology Inc.
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/microchip/mpfs_clk_periph.c +0 -1
index ddeccb914575..41c6df4fb979 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Microchip Technology Inc.
   * Padmarao Begari <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <asm/io.h>
drivers/clk/mpc83xx_clk.c +0 -1
index cc734450ef00..a29ad0d7a68d 100644
@@ -4,7 +4,6 @@
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clock_legacy.h>
  #include <command.h>
drivers/clk/mtmips/clk-mt7628.c +0 -1
index 4d3ac847d1d5..2e263fb2cd28 100644
@@ -5,7 +5,6 @@
   * Author: Weijie Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-bindings/clock/mt7628-clk.h>
drivers/clk/mvebu/armada-37xx-periph.c +0 -1
index f5c9bd735c13..30330393f760 100644
@@ -8,7 +8,6 @@
   *   Gregory CLEMENT <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <clk-uclass.h>
  #include <clk.h>
drivers/clk/mvebu/armada-37xx-tbg.c +0 -1
index 846a73cd6b36..c1bab84c070e 100644
@@ -8,7 +8,6 @@
   *   Gregory CLEMENT <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clk.h>
  #include <dm.h>
drivers/clk/owl/clk_owl.c +0 -1
index 678fdd5a4540..513112c1146c 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include "clk_owl.h"
  #include <asm/io.h>
drivers/clk/qcom/clock-apq8016.c +0 -1
index d3b63b9c1ac5..41fe4d896a7c 100644
@@ -7,7 +7,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-apq8096.c +0 -1
index 479f9771a464..c77d69128b00 100644
@@ -7,7 +7,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-ipq4019.c +0 -1
index 72f235eab212..0e6d93b3d7c2 100644
@@ -9,7 +9,6 @@
   */
 
  #include <clk-uclass.h>
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
drivers/clk/qcom/clock-qcom.c +0 -1
index 05e5ab7d094b..3a9cf2a231f2 100644
@@ -12,7 +12,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device-internal.h>
drivers/clk/qcom/clock-qcs404.c +0 -1
index 8a897a52bc00..70a1f648e585 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2022 Sumit Garg <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/qcom/clock-sdm845.c +0 -1
index 782df7da8444..f41f8c9e8dee 100644
@@ -8,7 +8,6 @@
   * Based on Little Kernel driver, simplified
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <linux/delay.h>
drivers/clk/rockchip/clk_pll.c +0 -1
index 66f8bb166955..44c6f14618d2 100644
@@ -2,7 +2,6 @@
  /*
   * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
   */
- #include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_px30.c +0 -1
index 2875c152b20d..d7825c66493e 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3036.c +0 -1
index 6238b14c29e1..274428f2b4bd 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3066.c +0 -1
index f83335df6db6..f7dea7859f74 100644
@@ -5,7 +5,6 @@
   */
 
  #include <bitfield.h>
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3128.c +0 -1
index 182754e7052d..a07285593b55 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3188.c +0 -1
index f98b46a0f73b..f569a100f22b 100644
@@ -4,7 +4,6 @@
   * (C) Copyright 2016 Heiko Stuebner <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk322x.c +0 -1
index 9371c4f63a48..9b71fd863bad 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/rockchip/clk_rk3288.c +0 -1
index 0b7eefad15f1..432a79291c8a 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2015 Google, Inc
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/rockchip/clk_rk3308.c +0 -1
index 861648321d40..e73bb6790af2 100644
@@ -2,7 +2,6 @@
  /*
   * (C) Copyright 2017-2019 Rockchip Electronics Co., Ltd
   */
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3328.c +0 -1
index 87075ec71340..4b94d6364d13 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rockchip Electronics Co., Ltd
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3368.c +0 -1
index 1c5dfaa3800b..d89439805215 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3399.c +0 -1
index 80f65a237e8e..cc414c38432c 100644
@@ -4,7 +4,6 @@
   * (C) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dt-structs.h>
drivers/clk/rockchip/clk_rk3568.c +0 -1
index 24eeca8bf265..35563509d617 100644
@@ -4,7 +4,6 @@
   * Author: Elaine Zhang <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rk3588.c +0 -1
index 4c611a390499..ceae08a19aa5 100644
@@ -4,7 +4,6 @@
   * Author: Elaine Zhang <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rv1108.c +0 -1
index fc442f7eebe2..75202a66aa68 100644
@@ -4,7 +4,6 @@
   * Author: Andy Yan <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/rockchip/clk_rv1126.c +0 -1
index cfdfcbdb0f4c..aeeea9569147 100644
@@ -5,7 +5,6 @@
   * Author: Finley Xiao <[email protected]>
   */
 
-#include <common.h>
  #include <bitfield.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/sifive/sifive-prci.c +0 -1
index c8fb60029070..5ea860628006 100644
@@ -22,7 +22,6 @@
   * https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <clk.h>
  #include <dm.h>
drivers/clk/starfive/clk-jh7110-pll.c +0 -1
index 1568a1f4cd91..581035842fc3 100644
@@ -6,7 +6,6 @@
   *		Xingyu Wu <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <malloc.h>
  #include <clk-uclass.h>
drivers/clk/starfive/clk-jh7110.c +0 -1
index a38694809a00..191da75d7ba2 100644
@@ -6,7 +6,6 @@
   *		Xingyu Wu <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <dm.h>
drivers/clk/stm32/clk-stm32-core.c +0 -1
index 37e996e78f96..cad07cc952e7 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32f.c +0 -1
index d68c75ed2013..fceb3c44b94e 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32h7.c +0 -1
index d440c28eb485..a554eda504de 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/stm32/clk-stm32mp1.c +0 -1
index 6f000c8e4448..204ac170531d 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_CLK
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <div64.h>
  #include <dm.h>
drivers/clk/stm32/clk-stm32mp13.c +0 -1
index 5174ae53a1a2..362dba102521 100644
@@ -7,7 +7,6 @@
  #define LOG_CATEGORY UCLASS_CLK
 
  #include <clk-uclass.h>
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <asm/io.h>
drivers/clk/sunxi/clk_a10.c +0 -1
index f27306fe33b3..19fe248044b4 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a10s.c +0 -1
index 16ac589bb2bf..f771369c9423 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a23.c +0 -1
index 45d5ba75bf51..fdee4347e991 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a31.c +0 -1
index 6ca800050ed0..04f76a7c2a38 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a64.c +0 -1
index fd26cd4f5d66..f1b01d25ddd4 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a80.c +0 -1
index c5834f44103f..6751af8a8031 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_a83t.c +0 -1
index 760d98cd620c..d8621a3e64cc 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_d1.c +0 -1
index 9dae761de83c..b990a1185948 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2021 Samuel Holland <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_f1c100s.c +0 -1
index 7b4c3ce51765..e22956992014 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019 George Hilliard <[email protected]>.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h3.c +0 -1
index 32bc95fccca4..ce55caeb1573 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h6.c +0 -1
index 071fd581003d..1b7bd9dea2f8 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_h616.c +0 -1
index 113dcff28515..b1e999e18c14 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2021 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_r40.c +0 -1
index 0fef6f3566d5..721debdae238 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_sunxi.c +0 -1
index 1782cffc404a..2ef4f45dacf5 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/sunxi/clk_v3s.c +0 -1
index 6524c13540e0..85410e282e85 100644
@@ -4,7 +4,6 @@
   * Author: Jagan Teki <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <errno.h>
drivers/clk/tegra/tegra-car-clk.c +0 -1
index c5214b9b3e2e..1d61f8dc378d 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/tegra/tegra186-clk.c +0 -1
index 5a98a3f3f0e6..ec52326c3b36 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016, NVIDIA CORPORATION.
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <log.h>
drivers/clk/ti/clk-am3-dpll-x2.c +0 -1
index 3cf279d6a3a9..1b0b9818cdd4 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/dpll.c
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/clk/ti/clk-am3-dpll.c +0 -1
index 398a011a5cea..21ec01f8dd9a 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/dpll.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/ti/clk-ctrl.c +0 -1
index 8926e57ebc84..c5c97dc35c4d 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-divider.c +0 -1
index 15941f17811a..40a742d7fdc4 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/divider.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <clk-uclass.h>
  #include <div64.h>
drivers/clk/ti/clk-gate.c +0 -1
index eb15f6243f20..873ceb8a2ab7 100644
@@ -7,7 +7,6 @@
   * Loosely based on Linux kernel drivers/clk/ti/gate.c
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-k3-pll.c +0 -1
index 8323e6e6919c..b3a1b4cedb78 100644
@@ -6,7 +6,6 @@
   *	Tero Kristo <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <dm.h>
  #include <div64.h>
drivers/clk/ti/clk-k3.c +0 -1
index 7aa162c2f702..41e5022ea0cd 100644
@@ -6,7 +6,6 @@
   *	Tero Kristo <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <soc.h>
drivers/clk/ti/clk-mux.c +0 -1
index 215241b16135..db5393414318 100644
@@ -7,7 +7,6 @@
   * Based on Linux kernel drivers/clk/ti/mux.c
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/device_compat.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk-sci.c +0 -1
index 9e5760d33544..e374bd3bcc20 100644
@@ -8,7 +8,6 @@
   * Loosely based on Linux kernel sci-clk.c...
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <clk-uclass.h>
drivers/clk/ti/clk.c +0 -1
index 6e5cc90f0f8c..28cd15128819 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <regmap.h>
drivers/clk/ti/omap4-cm.c +0 -1
index 3cdc9b28887d..a30ce9d09d27 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <dm/lists.h>
 
drivers/clk/uniphier/clk-uniphier-core.c +0 -1
index c31e59641d93..33369c93916b 100644
@@ -4,7 +4,6 @@
   *   Author: Masahiro Yamada <[email protected]>
   */
 
-#include <common.h>
  #include <clk-uclass.h>
  #include <dm.h>
  #include <dm/device_compat.h>
author
#25 lore raw

PATCH 20/81 core: Remove <common.h> and add needed includes

In reply to Tom Rini

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

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

---
 drivers/core/acpi.c          | 1 -
 drivers/core/device-remove.c | 1 -
 drivers/core/device.c        | 2 +-
 drivers/core/devres.c        | 1 -
 drivers/core/dump.c          | 1 -
 drivers/core/fdtaddr.c       | 1 -
 drivers/core/lists.c         | 1 -
 drivers/core/of_access.c     | 1 -
 drivers/core/of_addr.c       | 1 -
 drivers/core/of_extra.c      | 1 -
 drivers/core/ofnode.c        | 1 -
 drivers/core/read.c          | 1 -
 drivers/core/read_extra.c    | 1 -
 drivers/core/regmap.c        | 1 -
 drivers/core/root.c          | 1 -
 drivers/core/simple-bus.c    | 1 -
 drivers/core/simple-pm-bus.c | 1 -
 drivers/core/syscon-uclass.c | 1 -
 drivers/core/uclass.c        | 1 -
 drivers/core/util.c          | 1 -
 20 files changed, 1 insertion(+), 20 deletions(-)
drivers/core/acpi.c +0 -1
index 0ebd288ab420..9f7842289218 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEOGRY	LOGC_ACPI
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <log.h>
drivers/core/device-remove.c +0 -1
index a86b9325dd8d..437080ed7780 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY	LOGC_DM
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
drivers/core/device.c +1 -1
index bf7f261cbce0..18e2bd02dd56 100644
@@ -8,8 +8,8 @@
  * Pavel Herrmann <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
+#include <errno.h>
 #include <event.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/core/devres.c +0 -1
index 78914bdf7f21..8df08b91021c 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY LOGC_DEVRES
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <linux/compat.h>
drivers/core/dump.c +0 -1
index 841124830ee7..5ec30d5b3c1a 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <mapmem.h>
drivers/core/fdtaddr.c +0 -1
index 5f27d2511485..6be8ea0c0a9c 100644
@@ -8,7 +8,6 @@
  * Pavel Herrmann <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <log.h>
drivers/core/lists.c +0 -1
index 8034a8f48d99..2839a9b73718 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY LOGC_DM
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <dm/device.h>
drivers/core/of_access.c +0 -1
index c8db743f5298..41f2e09b9c27 100644
@@ -19,7 +19,6 @@
  * Linux version.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <asm/global_data.h>
drivers/core/of_addr.c +0 -1
index b3b3d7ccdd56..d7913ab3d2fd 100644
@@ -6,7 +6,6 @@
  * Copyright (c) 2017 Google, Inc
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/bug.h>
 #include <linux/libfdt.h>
drivers/core/of_extra.c +0 -1
index 59ce9174ad07..a3ebe9e9c245 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
drivers/core/ofnode.c +0 -1
index 21a233f90f0b..9a5eaaa4d134 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY	LOGC_DT
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
drivers/core/read.c +0 -1
index 1a4a95cddea3..55c19f335ae1 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/of_access.h>
 #include <mapmem.h>
drivers/core/read_extra.c +0 -1
index 513834882783..5a0153a46610 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/of_addr.h>
 #include <dm/read.h>
drivers/core/regmap.c +0 -1
index dd32328098c4..7ff7834bdf08 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY	LOGC_DM
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/core/root.c +0 -1
index d4ae652bcfb1..4bfd08f48130 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_ROOT
 
-#include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/core/simple-bus.c +0 -1
index 6022e7514e0e..f402bb5d6748 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SIMPLE_BUS
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <dm.h>
 #include <dm/simple_bus.h>
drivers/core/simple-pm-bus.c +0 -1
index 1bb0d86e289d..f38372ec60bc 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Sean Anderson <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 
drivers/core/syscon-uclass.c +0 -1
index a47b8bd3c017..f0e69d7216b3 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SYSCON
 
-#include <common.h>
 #include <log.h>
 #include <syscon.h>
 #include <dm.h>
drivers/core/uclass.c +0 -1
index e46d5717aa62..762536eebc6e 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY LOGC_DM
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/core/util.c +0 -1
index 81497df85ffd..108a3bc4dac1 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm/device.h>
 #include <dm/ofnode.h>
 #include <dm/read.h>
Signature · 1 line
2.34.1
author
#26 lore raw

PATCH 21/81 cpu: 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: Eugen Hristev <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Conor Dooley <[email protected]>

---
 drivers/cpu/at91_cpu.c       | 1 -
 drivers/cpu/bmips_cpu.c      | 1 -
 drivers/cpu/cpu-uclass.c     | 1 -
 drivers/cpu/cpu_sandbox.c    | 1 -
 drivers/cpu/imx8_cpu.c       | 1 -
 drivers/cpu/microblaze_cpu.c | 1 -
 drivers/cpu/mpc83xx_cpu.c    | 1 -
 drivers/cpu/riscv_cpu.c      | 1 -
 8 files changed, 8 deletions(-)
drivers/cpu/at91_cpu.c +0 -1
index 34a3f61c7e95..b45cc6ca1a9a 100644
@@ -5,7 +5,6 @@
  * Author: Claudiu Beznea <[email protected]>
  */
 
-#include <common.h>
 #include <cpu.h>
 #include <dm.h>
 #include <div64.h>
drivers/cpu/bmips_cpu.c +0 -1
index 3dd04fa88581..db624ee47fb0 100644
@@ -7,7 +7,6 @@
  *	Copyright (C) 2009 Florian Fainelli <[email protected]>
  */
 
-#include <common.h>
 #include <cpu.h>
 #include <display_options.h>
 #include <dm.h>
drivers/cpu/cpu-uclass.c +0 -1
index 9772578968ba..16f8f2e52194 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_CPU
 
-#include <common.h>
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
drivers/cpu/cpu_sandbox.c +0 -1
index 2e871fe313c1..e65e1bdc51bf 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <dm.h>
 #include <cpu.h>
 
drivers/cpu/imx8_cpu.c +0 -1
index 98ff95f5ff5c..4781a565547a 100644
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <cpu.h>
 #include <dm.h>
 #include <thermal.h>
drivers/cpu/microblaze_cpu.c +0 -1
index a229f6913b07..4e24ada40022 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022, Ovidiu Panait <[email protected]>
  */
-#include <common.h>
 #include <cpu.h>
 #include <dm.h>
 #include <asm/cpuinfo.h>
drivers/cpu/mpc83xx_cpu.c +0 -1
index e451c11116ab..9a7b5fd7c423 100644
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <bitfield.h>
 #include <clk.h>
 #include <cpu.h>
drivers/cpu/riscv_cpu.c +0 -1
index 9b1950efe05e..4f2958a23cee 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <cpu.h>
 #include <dm.h>
 #include <errno.h>
Signature · 1 line
2.34.1
author
#27 lore raw

PATCH 22/81 crypto: 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: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Gaurav Jain <[email protected]>
Cc: Marek Vasut <[email protected]>

---
 drivers/crypto/ace_sha.c                    | 4 +++-
 drivers/crypto/ace_sha.h                    | 2 ++
 drivers/crypto/aspeed/aspeed_acry.c         | 1 -
 drivers/crypto/aspeed/aspeed_hace.c         | 1 -
 drivers/crypto/fsl/dcp_rng.c                | 1 -
 drivers/crypto/fsl/error.c                  | 2 +-
 drivers/crypto/fsl/fsl_blob.c               | 1 -
 drivers/crypto/fsl/fsl_hash.c               | 1 -
 drivers/crypto/fsl/fsl_mfgprot.c            | 1 -
 drivers/crypto/fsl/fsl_rsa.c                | 1 -
 drivers/crypto/fsl/jobdesc.c                | 2 +-
 drivers/crypto/fsl/jr.c                     | 2 +-
 drivers/crypto/fsl/rng.c                    | 1 -
 drivers/crypto/fsl/sec.c                    | 2 +-
 drivers/crypto/hash/hash-uclass.c           | 1 -
 drivers/crypto/hash/hash_sw.c               | 1 -
 drivers/crypto/nuvoton/npcm_aes.c           | 2 +-
 drivers/crypto/nuvoton/npcm_sha.c           | 1 -
 drivers/crypto/rsa_mod_exp/mod_exp_sw.c     | 1 -
 drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 1 -
 20 files changed, 10 insertions(+), 19 deletions(-)
drivers/crypto/ace_sha.c +3 -1
index 261d3efe84e5..0e43e82fc5fa 100644
@@ -3,10 +3,12 @@
  * Advanced Crypto Engine - SHA Firmware
  * Copyright (c) 2012  Samsung Electronics
  */
-#include <common.h>
+
+#include <config.h>
 #include "ace_sha.h"
 #include <log.h>
 #include <rand.h>
+#include <linux/string.h>
 
 #ifdef CONFIG_SHA_HW_ACCEL
 #include <u-boot/sha256.h>
drivers/crypto/ace_sha.h +2 -0
index ad9e81a586c7..efc791a4def4 100644
@@ -8,6 +8,8 @@
 #ifndef __ACE_SHA_H
 #define __ACE_SHA_H
 
+#include  <linux/types.h>
+
 struct exynos_ace_sfr {
 	unsigned int	fc_intstat;	/* base + 0 */
 	unsigned int	fc_intenset;
drivers/crypto/aspeed/aspeed_acry.c +0 -1
index 47a007f633a6..e3f81ebd5c74 100644
@@ -3,7 +3,6 @@
  * Copyright 2021 ASPEED Technology Inc.
  */
 #include <config.h>
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <asm/types.h>
drivers/crypto/aspeed/aspeed_hace.c +0 -1
index 6b6c8fa65889..17cc30a7b54d 100644
@@ -3,7 +3,6 @@
  * Copyright 2021 ASPEED Technology Inc.
  */
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <log.h>
drivers/crypto/fsl/dcp_rng.c +0 -1
index 31706960157c..6b19c171fcda 100644
@@ -7,7 +7,6 @@
  * Based on RNGC driver in drivers/char/hw_random/imx-rngc.c in Linux
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <rng.h>
drivers/crypto/fsl/error.c +1 -1
index c76574919c74..7b232d94c2a3 100644
@@ -7,9 +7,9 @@
  * Derived from error.c file in linux drivers/crypto/caam
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <vsprintf.h>
 #include "desc.h"
 #include "jr.h"
 
drivers/crypto/fsl/fsl_blob.c +0 -1
index 9b6e4bca062c..0ecd6befd259 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/crypto/fsl/fsl_hash.c +0 -1
index f22f24b60775..79b32e2627c4 100644
@@ -4,7 +4,6 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/crypto/fsl/fsl_mfgprot.c +0 -1
index 29af79f577dc..7c22f8e012b8 100644
@@ -4,7 +4,6 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
 #include <errno.h>
 #include <fsl_sec.h>
 #include <memalign.h>
drivers/crypto/fsl/fsl_rsa.c +0 -1
index 335b7fe25acb..125a72ae6d32 100644
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/crypto/fsl/jobdesc.c +1 -1
index d32c1fe5c31a..551917369318 100644
@@ -8,7 +8,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <fsl_sec.h>
 #include "desc_constr.h"
drivers/crypto/fsl/jr.c +1 -1
index 203f16252159..4436e23b72ac 100644
@@ -6,7 +6,7 @@
  * Based on CAAM driver in drivers/crypto/caam in Linux
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <linux/kernel.h>
 #include <log.h>
drivers/crypto/fsl/rng.c +0 -1
index 063649480521..786a710f5fb6 100644
@@ -7,7 +7,6 @@
  */
 
 #include <asm/cache.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <rng.h>
drivers/crypto/fsl/sec.c +1 -1
index 9de30a6112fa..e9c39ddcfd9e 100644
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4
drivers/crypto/hash/hash-uclass.c +0 -1
index 446eb9e56a4f..5d9f1e0d59bd 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_HASH
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <u-boot/hash.h>
drivers/crypto/hash/hash_sw.c +0 -1
index d8065d68ea48..ffd4ab149ffb 100644
@@ -4,7 +4,6 @@
  * Author: ChiaWei Wang <[email protected]>
  */
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/crypto/nuvoton/npcm_aes.c +1 -1
index 6493ea108ec7..8d3a30ea918d 100644
@@ -3,13 +3,13 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <uboot_aes.h>
 #include <asm/io.h>
 #include <asm/arch/aes.h>
 #include <asm/arch/otp.h>
 #include <malloc.h>
+#include <time.h>
 
 #define ONE_SECOND 0xC00000
 
drivers/crypto/nuvoton/npcm_sha.c +0 -1
index 7ebdfa16f4fc..f06be86ca59e 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <hash.h>
 #include <malloc.h>
drivers/crypto/rsa_mod_exp/mod_exp_sw.c +0 -1
index 7bed444c3fbf..4f59adc09c9c 100644
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <u-boot/rsa-mod-exp.h>
drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +0 -1
index 057cc74b10bb..107500dd6e07 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_MOD_EXP
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <u-boot/rsa-mod-exp.h>
Signature · 1 line
2.34.1
author
#28 lore raw

PATCH 23/81 ddr: 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: Simon Glass <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Ye Li <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Jacky Bai <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Shiji Yang <[email protected]>

---
 drivers/ddr/altera/sdram_agilex.c             | 1 -
 drivers/ddr/altera/sdram_arria10.c            | 1 -
 drivers/ddr/altera/sdram_gen5.c               | 1 -
 drivers/ddr/altera/sdram_n5x.c                | 1 -
 drivers/ddr/altera/sdram_s10.c                | 1 -
 drivers/ddr/altera/sdram_soc64.c              | 1 -
 drivers/ddr/altera/sequencer.c                | 2 +-
 drivers/ddr/altera/sequencer.h                | 2 ++
 drivers/ddr/fsl/arm_ddr_gen3.c                | 2 +-
 drivers/ddr/fsl/ctrl_regs.c                   | 3 ++-
 drivers/ddr/fsl/ddr1_dimm_params.c            | 1 -
 drivers/ddr/fsl/ddr2_dimm_params.c            | 2 +-
 drivers/ddr/fsl/ddr3_dimm_params.c            | 2 +-
 drivers/ddr/fsl/ddr4_dimm_params.c            | 2 +-
 drivers/ddr/fsl/fsl_ddr_gen4.c                | 2 +-
 drivers/ddr/fsl/fsl_mmdc.c                    | 2 +-
 drivers/ddr/fsl/interactive.c                 | 2 +-
 drivers/ddr/fsl/lc_common_dimm_params.c       | 1 -
 drivers/ddr/fsl/main.c                        | 2 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen1.c            | 2 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen2.c            | 4 ++--
 drivers/ddr/fsl/mpc85xx_ddr_gen3.c            | 3 ++-
 drivers/ddr/fsl/options.c                     | 5 ++++-
 drivers/ddr/fsl/util.c                        | 3 ++-
 drivers/ddr/imx/imx8m/ddr_init.c              | 1 -
 drivers/ddr/imx/imx8ulp/ddr_init.c            | 1 -
 drivers/ddr/imx/imx9/ddr_init.c               | 2 +-
 drivers/ddr/imx/phy/ddrphy_train.c            | 1 -
 drivers/ddr/imx/phy/ddrphy_utils.c            | 1 -
 drivers/ddr/imx/phy/helper.c                  | 1 -
 drivers/ddr/marvell/axp/ddr3_dfs.c            | 1 -
 drivers/ddr/marvell/axp/ddr3_dqs.c            | 1 -
 drivers/ddr/marvell/axp/ddr3_hw_training.c    | 1 -
 drivers/ddr/marvell/axp/ddr3_init.c           | 1 -
 drivers/ddr/marvell/axp/ddr3_pbs.c            | 1 -
 drivers/ddr/marvell/axp/ddr3_read_leveling.c  | 1 -
 drivers/ddr/marvell/axp/ddr3_sdram.c          | 1 -
 drivers/ddr/marvell/axp/ddr3_spd.c            | 1 -
 drivers/ddr/marvell/axp/ddr3_write_leveling.c | 1 -
 drivers/ddr/marvell/axp/xor.c                 | 1 -
 drivers/ddr/microchip/ddr2.c                  | 1 -
 41 files changed, 25 insertions(+), 41 deletions(-)
drivers/ddr/altera/sdram_agilex.c +0 -1
index 65ecdd022c43..7f2cccb6af20 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <div64.h>
drivers/ddr/altera/sdram_arria10.c +0 -1
index 8ef5fa4c481c..bd2af94bb0dd 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/ddr/altera/sdram_gen5.c +0 -1
index 34d2a2789ccf..46c53e7c7a34 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright Altera Corporation (C) 2014-2015
  */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <div64.h>
drivers/ddr/altera/sdram_n5x.c +0 -1
index d9039443b91c..db09986f64b4 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <clk.h>
 #include <div64.h>
 #include <dm.h>
drivers/ddr/altera/sdram_s10.c +0 -1
index 4d36fb453323..4ac4c79e0ac3 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/ddr/altera/sdram_soc64.c +0 -1
index 4716abfc9a8b..9e57c2ecfa4f 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/ddr/altera/sequencer.c +1 -1
index e402f2929ab7..7636e71a0a6b 100644
@@ -3,8 +3,8 @@
  * Copyright Altera Corporation (C) 2012-2015
  */
 
-#include <common.h>
 #include <log.h>
+#include <linux/string.h>
 #include <asm/io.h>
 #include <asm/arch/sdram.h>
 #include <errno.h>
drivers/ddr/altera/sequencer.h +2 -0
index c72a683ffef2..618ba00da645 100644
@@ -6,6 +6,8 @@
 #ifndef _SEQUENCER_H_
 #define _SEQUENCER_H_
 
+#include <config.h>
+
 #define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \
 	/ seq->rwcfg->mem_if_write_dqs_width)
 #define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \
drivers/ddr/fsl/arm_ddr_gen3.c +1 -1
index 9dada5e11756..9f9aea804d97 100644
@@ -5,7 +5,7 @@
  * Derived from mpc85xx_ddr_gen3.c, removed all workarounds
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
drivers/ddr/fsl/ctrl_regs.c +2 -1
index 8f8c2c864c3f..9a25192c0798 100644
@@ -10,12 +10,13 @@
  * Author: James Yang [at freescale.com]
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_errata.h>
 #include <fsl_ddr.h>
 #include <fsl_immap.h>
 #include <log.h>
+#include <linux/string.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
drivers/ddr/fsl/ddr1_dimm_params.c +0 -1
index e5481eaa0ddd..cc87a95214d8 100644
@@ -3,7 +3,6 @@
  * Copyright 2008 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
 #include <asm/bitops.h>
drivers/ddr/fsl/ddr2_dimm_params.c +1 -1
index 3b78118a9d82..5674685a191e 100644
@@ -3,9 +3,9 @@
  * Copyright 2008 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <linux/string.h>
 #include <asm/bitops.h>
 
 #include <fsl_ddr.h>
drivers/ddr/fsl/ddr3_dimm_params.c +1 -1
index 1f8db90c45bd..c30ecdaafafd 100644
@@ -8,7 +8,7 @@
  * JEDEC standard No.21-C 4_01_02_11R18.pdf
  */
 
-#include <common.h>
+#include <linux/string.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
 
drivers/ddr/fsl/ddr4_dimm_params.c +1 -1
index ea7916226287..75e3bfe08be7 100644
@@ -10,10 +10,10 @@
  *
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
 #include <linux/bug.h>
+#include <linux/string.h>
 
 #include <fsl_ddr.h>
 
drivers/ddr/fsl/fsl_ddr_gen4.c +1 -1
index f8d1468a26f1..31c58d9a8e31 100644
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <log.h>
 #include <asm/io.h>
drivers/ddr/fsl/fsl_mmdc.c +1 -1
index 28f2219b2a43..7812b1b01caf 100644
@@ -7,7 +7,7 @@
  * Generic driver for Freescale MMDC(Multi Mode DDR Controller).
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_mmdc.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/ddr/fsl/interactive.c +1 -1
index eb2f06e8300a..94a5e447d56a 100644
@@ -11,11 +11,11 @@
  *         York Sun [at freescale.com]
  */
 
-#include <common.h>
 #include <cli.h>
 #include <command.h>
 #include <env.h>
 #include <log.h>
+#include <vsprintf.h>
 #include <asm/bitops.h>
 #include <linux/ctype.h>
 #include <asm/types.h>
drivers/ddr/fsl/lc_common_dimm_params.c +0 -1
index 5e4ad56f0714..aaf9800b3723 100644
@@ -4,7 +4,6 @@
  * Copyright 2017-2021 NXP Semiconductor
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
 #include <asm/bitops.h>
drivers/ddr/fsl/main.c +1 -1
index cd332718b640..31091bb44952 100644
@@ -10,7 +10,7 @@
  * Author: James Yang [at freescale.com]
  */
 
-#include <common.h>
+#include <config.h>
 #include <display_options.h>
 #include <dm.h>
 #include <i2c.h>
drivers/ddr/fsl/mpc85xx_ddr_gen1.c +1 -1
index 16186bdbae72..a8520754006a 100644
@@ -3,7 +3,7 @@
  * Copyright 2008 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
drivers/ddr/fsl/mpc85xx_ddr_gen2.c +2 -2
index b830e7cbd141..00b4b376dd45 100644
@@ -3,9 +3,9 @@
  * Copyright 2008-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
-#include <asm/processor.h>
+#include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
 #include <linux/delay.h>
 
drivers/ddr/fsl/mpc85xx_ddr_gen3.c +2 -1
index 1c4a1cae4df4..b0a61fa2b416 100644
@@ -3,9 +3,10 @@
  * Copyright 2008-2020 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/io.h>
+#include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
 #include <linux/delay.h>
drivers/ddr/fsl/options.c +4 -1
index 7cff82345847..852a5d0eca41 100644
@@ -4,16 +4,19 @@
  * Copyright 2017-2018 NXP Semiconductor
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <hwconfig.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <vsprintf.h>
 
 #include <fsl_ddr.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
 	defined(CONFIG_ARM)
 #include <asm/arch/clock.h>
+#else
+#include <asm/ppc.h>
 #endif
 
 /*
drivers/ddr/fsl/util.c +2 -1
index 60051392e713..0a73170e4183 100644
@@ -4,9 +4,10 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #ifdef CONFIG_PPC
 #include <asm/fsl_law.h>
+#include <asm/ppc.h>
 #endif
 #include <div64.h>
 #include <linux/delay.h>
drivers/ddr/imx/imx8m/ddr_init.c +0 -1
index 52a4aa632304..e9209ce8b61d 100644
@@ -3,7 +3,6 @@
  * Copyright 2018-2019 NXP
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/io.h>
drivers/ddr/imx/imx8ulp/ddr_init.c +0 -1
index c362a2da338b..172e260a55d9 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright 2021 NXP
  */
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
drivers/ddr/imx/imx9/ddr_init.c +1 -1
index 7a333880e6b6..5b0ad773875d 100644
@@ -3,7 +3,6 @@
  * Copyright 2022 NXP
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/io.h>
@@ -11,6 +10,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <linux/delay.h>
+#include <linux/string.h>
 
 static unsigned int g_cdd_rr_max[4];
 static unsigned int g_cdd_rw_max[4];
drivers/ddr/imx/phy/ddrphy_train.c +0 -1
index cd905f952c64..ccc10df18452 100644
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/kernel.h>
 #include <asm/arch/ddr.h>
drivers/ddr/imx/phy/ddrphy_utils.c +0 -1
index 45e1a70dbd44..cf5bdad7abe7 100644
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/io.h>
drivers/ddr/imx/phy/helper.c +0 -1
index b9b2403012d9..c1fc800f191b 100644
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <binman_sym.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/ddr3_dfs.c +0 -1
index 2a4596680b19..985835ec9235 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <spl.h>
 #include <asm/io.h>
drivers/ddr/marvell/axp/ddr3_dqs.c +0 -1
index 0db94212b90f..bda0d7ec4735 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/ddr3_hw_training.c +0 -1
index 35d98faf58f3..bb3e1be1f4c6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/ddr3_init.c +0 -1
index a9dcb74cecb7..23c6d119f61e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/ddr3_pbs.c +0 -1
index 069a42fbf5ed..2322900185d3 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <spl.h>
 #include <asm/io.h>
drivers/ddr/marvell/axp/ddr3_read_leveling.c +0 -1
index 30a5c3548857..db7003f72caf 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/ddr3_sdram.c +0 -1
index 0b150b20f3a1..f8fee2623d04 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <spl.h>
 #include <asm/io.h>
drivers/ddr/marvell/axp/ddr3_spd.c +0 -1
index 4763403c1278..c169a8ea16b4 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <spl.h>
 #include <asm/io.h>
drivers/ddr/marvell/axp/ddr3_write_leveling.c +0 -1
index d4add4477745..ea7bac56d0ed 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/marvell/axp/xor.c +0 -1
index 76aea96682c7..6ecacfeb9336 100644
@@ -3,7 +3,6 @@
  * Copyright (C) Marvell International Ltd. and its affiliates
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
drivers/ddr/microchip/ddr2.c +0 -1
index 149b6071cfde..bfba5d245c68 100644
@@ -3,7 +3,6 @@
  * (c) 2015 Paul Thacker <[email protected]>
  *
  */
-#include <common.h>
 #include <wait_bit.h>
 #include <linux/kernel.h>
 #include <linux/bitops.h>
Signature · 1 line
2.34.1
author
#29 lore raw

PATCH 24/81 demo: 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]>

---
 drivers/demo/demo-pdata.c  | 1 -
 drivers/demo/demo-shape.c  | 1 -
 drivers/demo/demo-simple.c | 1 -
 drivers/demo/demo-uclass.c | 1 -
 4 files changed, 4 deletions(-)
drivers/demo/demo-pdata.c +0 -1
index 818f77503a31..73711991626b 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm-demo.h>
 
drivers/demo/demo-shape.c +0 -1
index b6b29bcb31b3..3ccd5bced95e 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
drivers/demo/demo-simple.c +0 -1
index 28b271f7791c..944d58972224 100644
@@ -6,7 +6,6 @@
  * Pavel Herrmann <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm-demo.h>
 #include <mapmem.h>
drivers/demo/demo-uclass.c +0 -1
index 09f9a47d4de6..d7b1305dc65d 100644
@@ -6,7 +6,6 @@
  * Pavel Herrmann <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm-demo.h>
 #include <errno.h>
Signature · 1 line
2.34.1
author
#30 lore raw

PATCH 25/81 dfu: 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: Lukasz Majewski <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/dfu/dfu.c      | 1 -
 drivers/dfu/dfu_alt.c  | 1 -
 drivers/dfu/dfu_mmc.c  | 1 -
 drivers/dfu/dfu_mtd.c  | 1 -
 drivers/dfu/dfu_nand.c | 1 -
 drivers/dfu/dfu_ram.c  | 1 -
 drivers/dfu/dfu_sf.c   | 1 -
 drivers/dfu/dfu_virt.c | 1 -
 8 files changed, 8 deletions(-)
drivers/dfu/dfu.c +0 -1
index 2adf26e2fe24..540d48fab77d 100644
@@ -6,7 +6,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
drivers/dfu/dfu_alt.c +0 -1
index ece3d2236f3d..e9132936a90b 100644
@@ -4,7 +4,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_mmc.c +0 -1
index 12c54e90ef71..cfa6334e4397 100644
@@ -6,7 +6,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_mtd.c +0 -1
index 485586989c8a..c36ac09189f3 100644
@@ -7,7 +7,6 @@
  * Based on dfu_nand.c
  */
 
-#include <common.h>
 #include <dfu.h>
 #include <mtd.h>
 #include <linux/err.h>
drivers/dfu/dfu_nand.c +0 -1
index 08e8cf5cdb37..940cfefc986c 100644
@@ -9,7 +9,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_ram.c +0 -1
index c4f4bd2e482f..043acbf022fc 100644
@@ -8,7 +8,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <errno.h>
drivers/dfu/dfu_sf.c +0 -1
index 2dae15937064..7c1c0f9e2dc7 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <errno.h>
 #include <div64.h>
drivers/dfu/dfu_virt.c +0 -1
index 29f7a08f6728..2c31445af12a 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
-#include <common.h>
 #include <dfu.h>
 #include <errno.h>
 #include <log.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 25/81
#31 lore raw

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

Hi Tom,

Thank you for the patch.

Quoted 4 lines · Tom Rini

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

Since this is quite a big series, I'm assuming you will pick it up yourself.

If it's expected of me to pick this up through u-boot-dfu, let me know.

Quoted 113 lines

---
Cc: Lukasz Majewski <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/dfu/dfu.c      | 1 -
 drivers/dfu/dfu_alt.c  | 1 -
 drivers/dfu/dfu_mmc.c  | 1 -
 drivers/dfu/dfu_mtd.c  | 1 -
 drivers/dfu/dfu_nand.c | 1 -
 drivers/dfu/dfu_ram.c  | 1 -
 drivers/dfu/dfu_sf.c   | 1 -
 drivers/dfu/dfu_virt.c | 1 -
 8 files changed, 8 deletions(-)
drivers/dfu/dfu.c +0 -1
index 2adf26e2fe24..540d48fab77d 100644
@@ -6,7 +6,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
drivers/dfu/dfu_alt.c +0 -1
index ece3d2236f3d..e9132936a90b 100644
@@ -4,7 +4,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_mmc.c +0 -1
index 12c54e90ef71..cfa6334e4397 100644
@@ -6,7 +6,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_mtd.c +0 -1
index 485586989c8a..c36ac09189f3 100644
@@ -7,7 +7,6 @@
  * Based on dfu_nand.c
  */
 
-#include <common.h>
 #include <dfu.h>
 #include <mtd.h>
 #include <linux/err.h>
drivers/dfu/dfu_nand.c +0 -1
index 08e8cf5cdb37..940cfefc986c 100644
@@ -9,7 +9,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <errno.h>
drivers/dfu/dfu_ram.c +0 -1
index c4f4bd2e482f..043acbf022fc 100644
@@ -8,7 +8,6 @@
  * author: Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mapmem.h>
 #include <errno.h>
drivers/dfu/dfu_sf.c +0 -1
index 2dae15937064..7c1c0f9e2dc7 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <errno.h>
 #include <div64.h>
drivers/dfu/dfu_virt.c +0 -1
index 29f7a08f6728..2c31445af12a 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
-#include <common.h>
 #include <dfu.h>
 #include <errno.h>
 #include <log.h>
Signature · 1 line
2.34.1
author
#32 lore raw

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

Quoted 9 lines · Mattijs Korpershoek

Hi Tom,

Thank you for the patch.

Quoted 3 lines · Tom Rini

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

Quoted 8 lines
Quoted 1 line

Since this is quite a big series, I'm assuming you will pick it up yourself.

If it's expected of me to pick this up through u-boot-dfu, let me know.

Yes, I plan to grab all 4 of the series once I open the next branch.

Signature · 1 line
Tom
author
#33 lore raw

PATCH 26/81 dma: Remove <common.h> and add needed includes

In reply to Tom Rini

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

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Sean Anderson <[email protected]>

---
 drivers/dma/apbh_dma.c         | 1 -
 drivers/dma/bcm6348-iudma.c    | 1 -
 drivers/dma/dma-uclass.c       | 1 -
 drivers/dma/fsl_dma.c          | 1 -
 drivers/dma/keystone_nav.c     | 2 +-
 drivers/dma/lpc32xx_dma.c      | 2 +-
 drivers/dma/sandbox-dma-test.c | 1 -
 drivers/dma/ti-edma3.c         | 1 -
 drivers/dma/ti/k3-udma.c       | 1 -
 drivers/dma/xilinx_dpdma.c     | 1 -
 10 files changed, 2 insertions(+), 10 deletions(-)
drivers/dma/apbh_dma.c +0 -1
index da988f6bb667..331815c469f9 100644
@@ -15,7 +15,6 @@
 #include <asm/cache.h>
 #include <linux/list.h>
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/errno.h>
 #include <asm/io.h>
drivers/dma/bcm6348-iudma.c +0 -1
index 33c7b9814156..fd3a353d5484 100644
@@ -15,7 +15,6 @@
  *	Copyright (C) 2010 Broadcom Corporation
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/dma/dma-uclass.c +0 -1
index 0c1d88e10c65..2c76ba3fe328 100644
@@ -11,7 +11,6 @@
 
 #define LOG_CATEGORY UCLASS_DMA
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/dma/fsl_dma.c +0 -1
index 700df2236bd1..0cd9bcb51109 100644
@@ -9,7 +9,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/fsl_dma.h>
 
drivers/dma/keystone_nav.c +1 -1
index 9a5ba79f3fe5..c84db454bfd4 100644
@@ -5,10 +5,10 @@
  * (C) Copyright 2012-2014
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
 #include <asm/io.h>
 #include <asm/ti-common/keystone_nav.h>
 #include <linux/delay.h>
+#include <linux/string.h>
 
 struct qm_config qm_memmap = {
 	.stat_cfg	= KS2_QM_QUEUE_STATUS_BASE,
drivers/dma/lpc32xx_dma.c +1 -1
index 0efdfd028cfd..f15b67546a9f 100644
@@ -7,9 +7,9 @@
  * Copyright (c) 2015 Tyco Fire Protection Products.
  */
 
-#include <common.h>
 #include <errno.h>
 #include <init.h>
+#include <time.h>
 #include <asm/arch/dma.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
drivers/dma/sandbox-dma-test.c +0 -1
index a19e5e37fb9d..0290b93340f4 100644
@@ -7,7 +7,6 @@
  * Author: Grygorii Strashko <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/dma/ti-edma3.c +0 -1
index 31ffff07f5b3..d64059f39ab8 100644
@@ -10,7 +10,6 @@
 
 #include <asm/cache.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <dma-uclass.h>
 #include <linux/dma-mapping.h>
drivers/dma/ti/k3-udma.c +0 -1
index ef3074aa13ff..8e11d817a5b4 100644
@@ -5,7 +5,6 @@
  */
 #define pr_fmt(fmt) "udma: " fmt
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/cache.h>
drivers/dma/xilinx_dpdma.c +0 -1
index d4ee21dfc07f..1d615ec28387 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2021 Xilinx Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dma.h>
Signature · 1 line
2.34.1
author
#34 lore raw

PATCH 27/81 extcon: 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: Svyatoslav Ryhel <[email protected]>

---
 drivers/extcon/extcon-max14526.c | 1 -
 drivers/extcon/extcon-uclass.c   | 1 -
 2 files changed, 2 deletions(-)
drivers/extcon/extcon-max14526.c +0 -1
index a33b5ef919cc..2d2166bde682 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <linux/delay.h>
drivers/extcon/extcon-uclass.c +0 -1
index 9dd22b576269..1a5928738820 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_EXTCON
 
-#include <common.h>
 #include <extcon.h>
 #include <dm.h>
 
Signature · 1 line
2.34.1
author
#35 lore raw

PATCH 28/81 fastboot: 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: Mattijs Korpershoek <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/fastboot/fb_command.c | 2 +-
 drivers/fastboot/fb_common.c  | 2 +-
 drivers/fastboot/fb_getvar.c  | 2 +-
 drivers/fastboot/fb_mmc.c     | 1 -
 drivers/fastboot/fb_nand.c    | 1 -
 5 files changed, 3 insertions(+), 5 deletions(-)
drivers/fastboot/fb_command.c +1 -1
index 01443c5d39e2..e4484d65aca5 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 The Android Open Source Project
  */
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <env.h>
@@ -13,6 +12,7 @@
 #include <fb_nand.h>
 #include <part.h>
 #include <stdlib.h>
+#include <vsprintf.h>
 #include <linux/printk.h>
 
 /**
drivers/fastboot/fb_common.c +1 -1
index 3576b0677299..12ffb463deb9 100644
@@ -11,11 +11,11 @@
  */
 
 #include <bcb.h>
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <fastboot.h>
 #include <net.h>
+#include <vsprintf.h>
 
 /**
  * fastboot_buf_addr - base address of the fastboot download buffer
drivers/fastboot/fb_getvar.c +1 -1
index f65519c57b47..93cbd598e024 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 The Android Open Source Project
  */
 
-#include <common.h>
 #include <env.h>
 #include <fastboot.h>
 #include <fastboot-internal.h>
@@ -12,6 +11,7 @@
 #include <fs.h>
 #include <part.h>
 #include <version.h>
+#include <vsprintf.h>
 #include <linux/printk.h>
 
 static void getvar_version(char *var_parameter, char *response);
drivers/fastboot/fb_mmc.c +0 -1
index 060918e49109..f11eb66761b1 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <env.h>
 #include <fastboot.h>
drivers/fastboot/fb_nand.c +0 -1
index bbe26ddcc9be..afc64fd52807 100644
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 
 #include <fastboot.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 28/81
#36 lore raw

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

Hi Tom,

Thank you for the patch.

Quoted 4 lines · Tom Rini

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

Quoted 94 lines

---
Cc: Mattijs Korpershoek <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/fastboot/fb_command.c | 2 +-
 drivers/fastboot/fb_common.c  | 2 +-
 drivers/fastboot/fb_getvar.c  | 2 +-
 drivers/fastboot/fb_mmc.c     | 1 -
 drivers/fastboot/fb_nand.c    | 1 -
 5 files changed, 3 insertions(+), 5 deletions(-)
drivers/fastboot/fb_command.c +1 -1
index 01443c5d39e2..e4484d65aca5 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 The Android Open Source Project
  */
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <env.h>
@@ -13,6 +12,7 @@
 #include <fb_nand.h>
 #include <part.h>
 #include <stdlib.h>
+#include <vsprintf.h>
 #include <linux/printk.h>
 
 /**
drivers/fastboot/fb_common.c +1 -1
index 3576b0677299..12ffb463deb9 100644
@@ -11,11 +11,11 @@
  */
 
 #include <bcb.h>
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <fastboot.h>
 #include <net.h>
+#include <vsprintf.h>
 
 /**
  * fastboot_buf_addr - base address of the fastboot download buffer
drivers/fastboot/fb_getvar.c +1 -1
index f65519c57b47..93cbd598e024 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 The Android Open Source Project
  */
 
-#include <common.h>
 #include <env.h>
 #include <fastboot.h>
 #include <fastboot-internal.h>
@@ -12,6 +11,7 @@
 #include <fs.h>
 #include <part.h>
 #include <version.h>
+#include <vsprintf.h>
 #include <linux/printk.h>
 
 static void getvar_version(char *var_parameter, char *response);
drivers/fastboot/fb_mmc.c +0 -1
index 060918e49109..f11eb66761b1 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 #include <env.h>
 #include <fastboot.h>
drivers/fastboot/fb_nand.c +0 -1
index bbe26ddcc9be..afc64fd52807 100644
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <blk.h>
 
 #include <fastboot.h>
Signature · 1 line
2.34.1
author
#37 lore raw

PATCH 29/81 firmware: 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: Abdellatif El Khlifi <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Jens Wiklander <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Stefan Herbrechtsmeier <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Tanmay Shah <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Weizhao Ouyang <[email protected]>
Cc: AKASHI Takahiro <[email protected]>
Cc: Etienne Carriere <[email protected]>

---
 drivers/firmware/arm-ffa/arm-ffa-uclass.c    | 1 -
 drivers/firmware/arm-ffa/arm-ffa.c           | 1 -
 drivers/firmware/arm-ffa/ffa-emul-uclass.c   | 1 -
 drivers/firmware/arm-ffa/sandbox_ffa.c       | 1 -
 drivers/firmware/firmware-sandbox.c          | 1 -
 drivers/firmware/firmware-uclass.c           | 1 -
 drivers/firmware/firmware-zynqmp.c           | 1 -
 drivers/firmware/psci.c                      | 1 -
 drivers/firmware/scmi/base.c                 | 1 -
 drivers/firmware/scmi/mailbox_agent.c        | 1 -
 drivers/firmware/scmi/optee_agent.c          | 1 -
 drivers/firmware/scmi/sandbox-scmi_agent.c   | 1 -
 drivers/firmware/scmi/sandbox-scmi_devices.c | 1 -
 drivers/firmware/scmi/scmi_agent-uclass.c    | 1 -
 drivers/firmware/scmi/smccc_agent.c          | 1 -
 drivers/firmware/scmi/smt.c                  | 1 -
 drivers/firmware/ti_sci.c                    | 1 -
 17 files changed, 17 deletions(-)
drivers/firmware/arm-ffa/arm-ffa-uclass.c +0 -1
index f1e91d151ea3..e0767fc75517 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <arm_ffa.h>
 #include <arm_ffa_priv.h>
 #include <dm.h>
drivers/firmware/arm-ffa/arm-ffa.c +0 -1
index ee0bf9a55b48..94e6105cb38e 100644
@@ -6,7 +6,6 @@
  *   Abdellatif El Khlifi <[email protected]>
  */
 
-#include <common.h>
 #include <arm_ffa.h>
 #include <arm_ffa_priv.h>
 #include <dm.h>
drivers/firmware/arm-ffa/ffa-emul-uclass.c +0 -1
index 4bf9f6041fec..1521d9b66ac3 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <mapmem.h>
 #include <string.h>
drivers/firmware/arm-ffa/sandbox_ffa.c +0 -1
index 11142429c09b..44b32a829ddf 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <arm_ffa.h>
 #include <dm.h>
 #include <log.h>
drivers/firmware/firmware-sandbox.c +0 -1
index d970d75f781d..226b5cfc191e 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 
 static const struct udevice_id generic_sandbox_firmware_ids[] = {
drivers/firmware/firmware-uclass.c +0 -1
index e83a147a000b..84caf25548be 100644
@@ -2,7 +2,6 @@
 
 #define LOG_CATEGORY UCLASS_FIRMWARE
 
-#include <common.h>
 #include <dm.h>
 
 /* Firmware access is platform-dependent.  No generic code in uclass */
drivers/firmware/firmware-zynqmp.c +0 -1
index dfad798a2e7d..f99507d86c61 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018-2019 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/firmware/psci.c +0 -1
index 03544d76ed4a..c32c3f5c6a54 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2015 ARM Limited
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <efi_loader.h>
drivers/firmware/scmi/base.c +0 -1
index 1d41a8a98fc6..f4e3974ff5b4 100644
@@ -6,7 +6,6 @@
  *		author: AKASHI Takahiro <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <scmi_agent.h>
 #include <scmi_protocols.h>
drivers/firmware/scmi/mailbox_agent.c +0 -1
index 7ad3e8da9f08..6d4497f4b92a 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <mailbox.h>
drivers/firmware/scmi/optee_agent.c +0 -1
index 48dbb88a3fb5..631625d715bf 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/sandbox-scmi_agent.c +0 -1
index cc9011c7312f..19be280ec448 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/sandbox-scmi_devices.c +0 -1
index 603e2bb40aff..96c2922b067e 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/firmware/scmi/scmi_agent-uclass.c +0 -1
index 0f1003e167e6..8c907c3b0328 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/smccc_agent.c +0 -1
index 972c6addde21..ac35d07ebaff 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/smt.c +0 -1
index 509ed618a997..67d2f4500249 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/firmware/ti_sci.c +0 -1
index 6c581b9df9c0..8ce0f46e70c8 100644
@@ -7,7 +7,6 @@
  *	Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 29/81
#38 lore raw

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

Quoted 244 lines · Tom Rini

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

---
Cc: Abdellatif El Khlifi <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Jens Wiklander <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Stefan Herbrechtsmeier <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Tanmay Shah <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Weizhao Ouyang <[email protected]>
Cc: AKASHI Takahiro <[email protected]>
Cc: Etienne Carriere <[email protected]>

---
 drivers/firmware/arm-ffa/arm-ffa-uclass.c    | 1 -
 drivers/firmware/arm-ffa/arm-ffa.c           | 1 -
 drivers/firmware/arm-ffa/ffa-emul-uclass.c   | 1 -
 drivers/firmware/arm-ffa/sandbox_ffa.c       | 1 -
 drivers/firmware/firmware-sandbox.c          | 1 -
 drivers/firmware/firmware-uclass.c           | 1 -
 drivers/firmware/firmware-zynqmp.c           | 1 -
 drivers/firmware/psci.c                      | 1 -
 drivers/firmware/scmi/base.c                 | 1 -
 drivers/firmware/scmi/mailbox_agent.c        | 1 -
 drivers/firmware/scmi/optee_agent.c          | 1 -
 drivers/firmware/scmi/sandbox-scmi_agent.c   | 1 -
 drivers/firmware/scmi/sandbox-scmi_devices.c | 1 -
 drivers/firmware/scmi/scmi_agent-uclass.c    | 1 -
 drivers/firmware/scmi/smccc_agent.c          | 1 -
 drivers/firmware/scmi/smt.c                  | 1 -
 drivers/firmware/ti_sci.c                    | 1 -
 17 files changed, 17 deletions(-)
drivers/firmware/arm-ffa/arm-ffa-uclass.c +0 -1
index f1e91d151ea3..e0767fc75517 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <arm_ffa.h>
 #include <arm_ffa_priv.h>
 #include <dm.h>
drivers/firmware/arm-ffa/arm-ffa.c +0 -1
index ee0bf9a55b48..94e6105cb38e 100644
@@ -6,7 +6,6 @@
  *   Abdellatif El Khlifi <[email protected]>
  */
 
-#include <common.h>
 #include <arm_ffa.h>
 #include <arm_ffa_priv.h>
 #include <dm.h>
drivers/firmware/arm-ffa/ffa-emul-uclass.c +0 -1
index 4bf9f6041fec..1521d9b66ac3 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <dm.h>
 #include <mapmem.h>
 #include <string.h>
drivers/firmware/arm-ffa/sandbox_ffa.c +0 -1
index 11142429c09b..44b32a829ddf 100644
@@ -5,7 +5,6 @@
  * Authors:
  *   Abdellatif El Khlifi <[email protected]>
  */
-#include <common.h>
 #include <arm_ffa.h>
 #include <dm.h>
 #include <log.h>
drivers/firmware/firmware-sandbox.c +0 -1
index d970d75f781d..226b5cfc191e 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 
 static const struct udevice_id generic_sandbox_firmware_ids[] = {
drivers/firmware/firmware-uclass.c +0 -1
index e83a147a000b..84caf25548be 100644
@@ -2,7 +2,6 @@
 
 #define LOG_CATEGORY UCLASS_FIRMWARE
 
-#include <common.h>
 #include <dm.h>
 
 /* Firmware access is platform-dependent.  No generic code in uclass */
drivers/firmware/firmware-zynqmp.c +0 -1
index dfad798a2e7d..f99507d86c61 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2018-2019 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/firmware/psci.c +0 -1
index 03544d76ed4a..c32c3f5c6a54 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2015 ARM Limited
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <efi_loader.h>
drivers/firmware/scmi/base.c +0 -1
index 1d41a8a98fc6..f4e3974ff5b4 100644
@@ -6,7 +6,6 @@
  *             author: AKASHI Takahiro <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <scmi_agent.h>
 #include <scmi_protocols.h>
drivers/firmware/scmi/mailbox_agent.c +0 -1
index 7ad3e8da9f08..6d4497f4b92a 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <mailbox.h>
drivers/firmware/scmi/optee_agent.c +0 -1
index 48dbb88a3fb5..631625d715bf 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/sandbox-scmi_agent.c +0 -1
index cc9011c7312f..19be280ec448 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/sandbox-scmi_devices.c +0 -1
index 603e2bb40aff..96c2922b067e 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_MISC
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/firmware/scmi/scmi_agent-uclass.c +0 -1
index 0f1003e167e6..8c907c3b0328 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/smccc_agent.c +0 -1
index 972c6addde21..ac35d07ebaff 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <scmi_agent.h>
drivers/firmware/scmi/smt.c +0 -1
index 509ed618a997..67d2f4500249 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_SCMI_AGENT
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/firmware/ti_sci.c +0 -2
index 6c581b9df9c0..8ce0f46e70c8 100644
@@ -7,7 +7,6 @@
  *     Lokesh Vutla <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
--
Quoted 2 lines

2.34.1

author
#39 lore raw

PATCH 30/81 fpga: 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: Michal Simek <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/fpga/ACEX1K.c          | 2 +-
 drivers/fpga/altera.c          | 1 -
 drivers/fpga/cyclon2.c         | 3 ++-
 drivers/fpga/fpga.c            | 1 -
 drivers/fpga/intel_sdm_mb.c    | 4 +++-
 drivers/fpga/ivm_core.c        | 1 -
 drivers/fpga/lattice.c         | 1 -
 drivers/fpga/socfpga.c         | 2 +-
 drivers/fpga/socfpga_arria10.c | 1 -
 drivers/fpga/socfpga_gen5.c    | 2 +-
 drivers/fpga/spartan2.c        | 2 +-
 drivers/fpga/spartan3.c        | 3 ++-
 drivers/fpga/stratixII.c       | 1 -
 drivers/fpga/stratixv.c        | 1 -
 drivers/fpga/versalpl.c        | 1 -
 drivers/fpga/virtex2.c         | 2 +-
 drivers/fpga/xilinx.c          | 2 +-
 drivers/fpga/zynqmppl.c        | 1 -
 drivers/fpga/zynqpl.c          | 3 ++-
 19 files changed, 15 insertions(+), 19 deletions(-)
drivers/fpga/ACEX1K.c +1 -1
index 4c00cdf0b57d..cb7877a8afe7 100644
@@ -9,7 +9,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>		/* core U-Boot definitions */
+#include <config.h>		/* core U-Boot definitions */
 #include <console.h>
 #include <log.h>
 #include <ACEX1K.h>		/* ACEX device family */
drivers/fpga/altera.c +0 -1
index 6a4f0cb9bc06..ae06f0123a03 100644
@@ -12,7 +12,6 @@
 /*
  *  Altera FPGA support
  */
-#include <common.h>
 #include <errno.h>
 #include <ACEX1K.h>
 #include <log.h>
drivers/fpga/cyclon2.c +2 -1
index 6e8a313db35b..7e78d6e2d6ce 100644
@@ -7,8 +7,9 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>		/* core U-Boot definitions */
+#include <config.h>		/* core U-Boot definitions */
 #include <log.h>
+#include <time.h>
 #include <altera.h>
 #include <ACEX1K.h>		/* ACEX device family */
 #include <linux/delay.h>
drivers/fpga/fpga.c +0 -1
index 81e6d8ffc0bd..38ba6c21ea2b 100644
@@ -5,7 +5,6 @@
  */
 
 /* Generic FPGA support */
-#include <common.h>             /* core U-Boot definitions */
 #include <init.h>
 #include <log.h>
 #include <xilinx.h>             /* xilinx specific definitions */
drivers/fpga/intel_sdm_mb.c +3 -1
index 903d143a361c..45caef4f5c10 100644
@@ -3,14 +3,16 @@
  * Copyright (C) 2018 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <altera.h>
 #include <log.h>
+#include <time.h>
 #include <watchdog.h>
 #include <asm/arch/mailbox_s10.h>
 #include <asm/arch/smc_api.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/intel-smc.h>
+#include <linux/string.h>
 
 #define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS		60000
 #define RECONFIG_STATUS_INTERVAL_DELAY_US		1000000
drivers/fpga/ivm_core.c +0 -1
index adc60919f3b0..b9cecdd8720a 100644
@@ -29,7 +29,6 @@
  *        the ispVMLCOUNT function
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/string.h>
 #include <malloc.h>
drivers/fpga/lattice.c +0 -1
index e292d991cd18..036580cad70f 100644
@@ -10,7 +10,6 @@
  * Copyright 2009 Lattice Semiconductor Corp.
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <fpga.h>
drivers/fpga/socfpga.c +1 -1
index d73414d5ac54..bb98c0e2bcf7 100644
@@ -4,7 +4,7 @@
  * All rights reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/fpga_manager.h>
drivers/fpga/socfpga_arria10.c +0 -1
index 96b195063e08..e9822b2bb0ec 100644
@@ -13,7 +13,6 @@
 #include <asm/arch/misc.h>
 #include <altera.h>
 #include <asm/arch/pinmux.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/ofnode.h>
 #include <errno.h>
drivers/fpga/socfpga_gen5.c +1 -1
index d73474f29ee1..9473f0573289 100644
@@ -4,7 +4,7 @@
  * All rights reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/fpga_manager.h>
drivers/fpga/spartan2.c +1 -1
index 6eef87b78e16..9cd6cb7f0fbd 100644
@@ -6,7 +6,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>		/* core U-Boot definitions */
+#include <config.h>		/* core U-Boot definitions */
 #include <log.h>
 #include <spartan2.h>		/* Spartan-II device family */
 
drivers/fpga/spartan3.c +2 -1
index e892fa571f19..b4d87d47d933 100644
@@ -11,8 +11,9 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>		/* core U-Boot definitions */
+#include <config.h>		/* core U-Boot definitions */
 #include <log.h>
+#include <time.h>
 #include <spartan3.h>		/* Spartan-II device family */
 
 /* Note: The assumption is that we cannot possibly run fast enough to
drivers/fpga/stratixII.c +0 -1
index b450a81072ed..73fecd9dca55 100644
@@ -4,7 +4,6 @@
  * Eran Liberty, Extricom , [email protected]
  */
 
-#include <common.h>		/* core U-Boot definitions */
 #include <altera.h>
 #include <linux/delay.h>
 
drivers/fpga/stratixv.c +0 -1
index abae3b5b7511..372f16d92d1a 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <[email protected]>
  */
 
-#include <common.h>
 #include <altera.h>
 #include <log.h>
 #include <spi.h>
drivers/fpga/versalpl.c +0 -1
index be58db54275c..1957e8dcacac 100644
@@ -4,7 +4,6 @@
  * Siva Durga Prasad Paladugu <[email protected]>>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/arch/sys_proto.h>
drivers/fpga/virtex2.c +1 -1
index 3ded27f9b3ff..8e2c12bb58b1 100644
@@ -14,7 +14,7 @@
 
 #define LOG_CATEGORY UCLASS_FPGA
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <log.h>
 #include <virtex2.h>
drivers/fpga/xilinx.c +1 -1
index 8170c3368ef6..c46513226d9b 100644
@@ -11,13 +11,13 @@
  *  Xilinx FPGA support
  */
 
-#include <common.h>
 #include <fpga.h>
 #include <log.h>
 #include <virtex2.h>
 #include <spartan2.h>
 #include <spartan3.h>
 #include <zynqpl.h>
+#include <linux/string.h>
 
 /* Local Static Functions */
 static int xilinx_validate(xilinx_desc *desc, char *fn);
drivers/fpga/zynqmppl.c +0 -1
index 2656f5fc5ecf..2b62bbbe3cf5 100644
@@ -6,7 +6,6 @@
  */
 
 #include <console.h>
-#include <common.h>
 #include <compiler.h>
 #include <cpu_func.h>
 #include <fpga.h>
drivers/fpga/zynqpl.c +2 -1
index a2e3b305fa41..57467b4d975a 100644
@@ -6,10 +6,11 @@
  * Joe Hershberger <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <fs.h>
Signature · 1 line
2.34.1
author
#40 lore raw

PATCH 31/81 fuzz: 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]>

---
 drivers/fuzz/fuzzing_engine-uclass.c  | 1 -
 drivers/fuzz/sandbox_fuzzing_engine.c | 1 -
 2 files changed, 2 deletions(-)
drivers/fuzz/fuzzing_engine-uclass.c +0 -1
index b16f1c4cfb71..08ce3ed2ec15 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_FUZZING_ENGINE
 
-#include <common.h>
 #include <dm.h>
 #include <fuzzing_engine.h>
 
drivers/fuzz/sandbox_fuzzing_engine.c +0 -1
index ebb938e5ba86..677402470edc 100644
@@ -4,7 +4,6 @@
  * Written by Andrew Scull <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fuzzing_engine.h>
 #include <asm/fuzzing_engine.h>
Signature · 1 line
2.34.1
author
#41 lore raw

PATCH 32/81 fwu-mdata: 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: Ilias Apalodimas <[email protected]>
Cc: Jassi Brar <[email protected]>
Cc: Etienne Carriere <[email protected]>

---
 drivers/fwu-mdata/fwu-mdata-uclass.c | 1 -
 1 file changed, 1 deletion(-)
drivers/fwu-mdata/fwu-mdata-uclass.c +0 -1
index 0a8edaaa418f..bab7a7e80d1d 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_FWU_MDATA
 
-#include <common.h>
 #include <dm.h>
 #include <efi_loader.h>
 #include <fwu.h>
Signature · 1 line
2.34.1
maintainer Acked-by on v1 32/81
#42 lore raw

Re: [PATCH 32/81] fwu-mdata: Remove <common.h> and add needed includes

Quoted 11 lines · Tom Rini

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

---
Cc: Tom Rini <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Jassi Brar <[email protected]>
Cc: Etienne Carriere <[email protected]>
---

Thanks

Reviewed-by on v1 32/81
#43 lore raw

Re: [PATCH 32/81] fwu-mdata: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 27 lines · Tom Rini

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

---
Cc: Tom Rini <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Jassi Brar <[email protected]>
Cc: Etienne Carriere <[email protected]>

---
 drivers/fwu-mdata/fwu-mdata-uclass.c | 1 -
 1 file changed, 1 deletion(-)
drivers/fwu-mdata/fwu-mdata-uclass.c +0 -2
index 0a8edaaa418f..bab7a7e80d1d 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_FWU_MDATA
 
-#include <common.h>
 #include <dm.h>
 #include <efi_loader.h>
 #include <fwu.h>
--
Quoted 2 lines

2.34.1

author
#44 lore raw

PATCH 33/81 gpio: 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: 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>
Signature · 1 line
2.34.1
Reviewed-by on v1 33/81
#45 lore raw

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

Quoted 876 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 -2
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>
--

2.34.1

Reviewed-by on v1 33/81
#46 lore raw

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

In reply to Tom Rini

Hello Tom,

Quoted 106 lines · Tom Rini

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

---
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 -
Quoted 8 lines
  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(-)

Thanks for this cleanup!

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]