[PATCH 01/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.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Weijie Gao weijie.gao@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com --- 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(-)
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig index 82018bd9d3e3..ff1fdee5c8da 100644 --- a/arch/arm/mach-mediatek/Kconfig +++ b/arch/arm/mach-mediatek/Kconfig @@ -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, diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig index 15b2792e619b..3fcd0b8465b4 100644 --- a/arch/mips/mach-mtmips/Kconfig +++ b/arch/mips/mach-mtmips/Kconfig @@ -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 diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 549634891a36..d0944793c92d 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -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 diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index fadab7d40bb7..ffb461c2f6c1 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -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, diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 595d88bd5625..5ac1c6a0e9e1 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -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, diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index b74c01400205..8b2ef9391f3e 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -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(®s->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) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 24170c59ecc1..0685b86af464 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -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); diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7b068c71ff37..4543d94c7205 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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) { diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 296aaee73318..4bd66ecf93ad 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -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, diff --git a/drivers/mmc/octeontx_hsmmc.c b/drivers/mmc/octeontx_hsmmc.c index 7f9c4f4d36d4..3b5e12217325 100644 --- a/drivers/mmc/octeontx_hsmmc.c +++ b/drivers/mmc/octeontx_hsmmc.c @@ -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 }; diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 99f21b2c546a..118d9cd16fdb 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -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, diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index c0a9f60b1496..0570dbca00d7 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -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
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index af654ea8d13c..d06f2c02bb7b 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -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, diff --git a/include/configs/mt7621.h b/include/configs/mt7621.h index bf2bc2d45c09..e6dba7071950 100644 --- a/include/configs/mt7621.h +++ b/include/configs/mt7621.h @@ -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 diff --git a/include/configs/mt7623.h b/include/configs/mt7623.h index fca234a1dc71..6f42cd32d80f 100644 --- a/include/configs/mt7623.h +++ b/include/configs/mt7623.h @@ -11,9 +11,6 @@
#include <linux/sizes.h>
-/* MMC */ -#define MMC_SUPPORTS_TUNING - /* DRAM */ #define CFG_SYS_SDRAM_BASE 0x80000000
diff --git a/include/configs/octeontx2_common.h b/include/configs/octeontx2_common.h index c4db38562d83..f415dffddbea 100644 --- a/include/configs/octeontx2_common.h +++ b/include/configs/octeontx2_common.h @@ -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__ */ diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7f1900363b91 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -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 *

The scu* files have many "Linux" style types in them, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au --- 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(+)
diff --git a/arch/arm/include/asm/arch-aspeed/scu_ast2500.h b/arch/arm/include/asm/arch-aspeed/scu_ast2500.h index 50d6a6bc7605..a415693de6ea 100644 --- a/arch/arm/include/asm/arch-aspeed/scu_ast2500.h +++ b/arch/arm/include/asm/arch-aspeed/scu_ast2500.h @@ -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; diff --git a/arch/arm/include/asm/arch-aspeed/scu_ast2600.h b/arch/arm/include/asm/arch-aspeed/scu_ast2600.h index 251bfa269bf4..a2c8852db842 100644 --- a/arch/arm/include/asm/arch-aspeed/scu_ast2600.h +++ b/arch/arm/include/asm/arch-aspeed/scu_ast2600.h @@ -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 */

These files have many "Linux" style types in them, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com --- arch/arm/include/asm/arch-sunxi/pmic_bus.h | 2 ++ arch/arm/include/asm/arch-sunxi/tve.h | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/arch-sunxi/pmic_bus.h b/arch/arm/include/asm/arch-sunxi/pmic_bus.h index 5ab9b2809f29..e26459fdd3bf 100644 --- a/arch/arm/include/asm/arch-sunxi/pmic_bus.h +++ b/arch/arm/include/asm/arch-sunxi/pmic_bus.h @@ -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); diff --git a/arch/arm/include/asm/arch-sunxi/tve.h b/arch/arm/include/asm/arch-sunxi/tve.h index 46cd87e79e8d..4fbb4b91c86b 100644 --- a/arch/arm/include/asm/arch-sunxi/tve.h +++ b/arch/arm/include/asm/arch-sunxi/tve.h @@ -9,6 +9,8 @@ #ifndef _TVE_H #define _TVE_H
+#include <linux/types.h> + enum tve_mode { tve_mode_vga, tve_mode_composite_pal,

This file has many "Linux" style types in it, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Stefan Bosch stefan_b@posteo.net --- arch/arm/mach-nexell/include/mach/mipi_display.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-nexell/include/mach/mipi_display.h b/arch/arm/mach-nexell/include/mach/mipi_display.h index f3fdec64647c..9183ffdd9c3d 100644 --- a/arch/arm/mach-nexell/include/mach/mipi_display.h +++ b/arch/arm/mach-nexell/include/mach/mipi_display.h @@ -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,

On 02.05.24 03:30, Tom Rini wrote:
This file has many "Linux" style types in it, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Stefan Bosch stefan_b@posteo.net
Thanks for your awesome work!
Cc: Stefan Bosch stefan_b@posteo.net
arch/arm/mach-nexell/include/mach/mipi_display.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-nexell/include/mach/mipi_display.h b/arch/arm/mach-nexell/include/mach/mipi_display.h index f3fdec64647c..9183ffdd9c3d 100644 --- a/arch/arm/mach-nexell/include/mach/mipi_display.h +++ b/arch/arm/mach-nexell/include/mach/mipi_display.h @@ -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,

This file has many "Linux" style types in it, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- arch/arm/mach-socfpga/include/mach/secure_reg_helper.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-socfpga/include/mach/secure_reg_helper.h b/arch/arm/mach-socfpga/include/mach/secure_reg_helper.h index d5a11122c723..01335dc93108 100644 --- a/arch/arm/mach-socfpga/include/mach/secure_reg_helper.h +++ b/arch/arm/mach-socfpga/include/mach/secure_reg_helper.h @@ -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

This file has many "Linux" style types in it, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Simon Glass sjg@chromium.org Cc: Bin Meng bmeng.cn@gmail.com --- arch/x86/include/asm/coreboot_tables.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/x86/include/asm/coreboot_tables.h b/arch/x86/include/asm/coreboot_tables.h index c967e6ad0ce5..54aeffb9889d 100644 --- a/arch/x86/include/asm/coreboot_tables.h +++ b/arch/x86/include/asm/coreboot_tables.h @@ -8,6 +8,7 @@ #ifndef _COREBOOT_TABLES_H #define _COREBOOT_TABLES_H
+#include <linux/kernel.h> #include <linux/types.h>
struct timestamp_entry {

These files have many "Linux" style types in them, add <linux/types.h>
Signed-off-by: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/include/display.h b/include/display.h index 3d0121764411..e8d8aaa15fbc 100644 --- a/include/display.h +++ b/include/display.h @@ -6,6 +6,8 @@ #ifndef _DISPLAY_H #define _DISPLAY_H
+#include <linux/types.h> + struct udevice; struct display_timing;
diff --git a/include/fuse.h b/include/fuse.h index d48dcdfa6474..4519821af7ea 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -11,6 +11,8 @@ #ifndef _FUSE_H_ #define _FUSE_H_
+#include <linux/types.h> + /* * Read/Sense/Program/Override interface: * bank: Fuse bank diff --git a/include/i2c_eeprom.h b/include/i2c_eeprom.h index cba991e3574f..1fe32d2dd687 100644 --- a/include/i2c_eeprom.h +++ b/include/i2c_eeprom.h @@ -7,6 +7,7 @@ #define __I2C_EEPROM
#include <linux/errno.h> +#include <linux/types.h>
struct udevice;
diff --git a/include/libata.h b/include/libata.h index a55e9315a730..fa39d21a44a0 100644 --- a/include/libata.h +++ b/include/libata.h @@ -10,6 +10,7 @@ #ifndef __LIBATA_H__ #define __LIBATA_H__
+#include <linux/types.h>
enum { /* various global constants */ diff --git a/include/ram.h b/include/ram.h index 2fc971df465a..3600bb57a6cf 100644 --- a/include/ram.h +++ b/include/ram.h @@ -7,6 +7,8 @@ #ifndef __RAM_H #define __RAM_H
+#include <linux/types.h> + struct udevice;
struct ram_info { diff --git a/include/sm.h b/include/sm.h index afa9c89055e5..fbc156ad68a7 100644 --- a/include/sm.h +++ b/include/sm.h @@ -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;

In the case of PowerPC, this file needs to include <asm/ppc.h> in order to resolve all of the references it makes.
Signed-off-by: Tom Rini trini@konsulko.com --- include/fsl_ifc.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/fsl_ifc.h b/include/fsl_ifc.h index f9a0a7017d4a..4991d9322007 100644 --- a/include/fsl_ifc.h +++ b/include/fsl_ifc.h @@ -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

As this file has macros which use get_timer() it must include <time.h> to resolve this.
Signed-off-by: Tom Rini trini@konsulko.com --- include/linux/compat.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/linux/compat.h b/include/linux/compat.h index f8e3570d1ad2..623814516175 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -5,6 +5,7 @@ #include <cyclic.h> #include <log.h> #include <malloc.h> +#include <time.h>
#include <asm/processor.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Luca Ellero l.ellero@asem.it Cc: Haibo Chen haibo.chen@nxp.com Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Johan Jonker jbx6244@gmail.com --- 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(-)
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c index 1b35bf22014f..16600be821c9 100644 --- a/drivers/adc/adc-uclass.c +++ b/drivers/adc/adc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_ADC
-#include <common.h> #include <errno.h> #include <div64.h> #include <dm.h> diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c index 2bda733af90d..ecc564cd219a 100644 --- a/drivers/adc/exynos-adc.c +++ b/drivers/adc/exynos-adc.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Samsung Electronics * Przemyslaw Marczak p.marczak@samsung.com */ -#include <common.h> #include <errno.h> #include <dm.h> #include <adc.h> diff --git a/drivers/adc/imx93-adc.c b/drivers/adc/imx93-adc.c index 41d04e0426cd..f593fb6447b3 100644 --- a/drivers/adc/imx93-adc.c +++ b/drivers/adc/imx93-adc.c @@ -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> diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index c15c7fea47fe..60e348968fb5 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -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> diff --git a/drivers/adc/rockchip-saradc.c b/drivers/adc/rockchip-saradc.c index 10ded1b088f3..f6832ab30731 100644 --- a/drivers/adc/rockchip-saradc.c +++ b/drivers/adc/rockchip-saradc.c @@ -5,7 +5,6 @@ * Rockchip SARADC driver for U-Boot */
-#include <common.h> #include <adc.h> #include <clk.h> #include <dm.h> diff --git a/drivers/adc/sandbox.c b/drivers/adc/sandbox.c index 43cad34ffebf..24d4af63bd9b 100644 --- a/drivers/adc/sandbox.c +++ b/drivers/adc/sandbox.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Samsung Electronics * Przemyslaw Marczak p.marczak@samsung.com */ -#include <common.h> #include <errno.h> #include <dm.h> #include <adc.h> diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c index 6c176961f17a..af340b8b273b 100644 --- a/drivers/adc/stm32-adc-core.c +++ b/drivers/adc/stm32-adc-core.c @@ -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> diff --git a/drivers/adc/stm32-adc.c b/drivers/adc/stm32-adc.c index 1fba707c6f7d..d50f00f1233e 100644 --- a/drivers/adc/stm32-adc.c +++ b/drivers/adc/stm32-adc.c @@ -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>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Simon Glass sjg@chromium.org Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Bin Meng bmeng@tinylab.org Cc: Tony Dinh mibodhi@gmail.com Cc: Michal Simek michal.simek@amd.com --- 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(-)
diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index 5356b9d83d34..f2102aaa6353 100644 --- a/drivers/ata/ahci-pci.c +++ b/drivers/ata/ahci-pci.c @@ -3,7 +3,6 @@ * Copyright (C) 2017, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <ahci.h> #include <scsi.h> #include <dm.h> diff --git a/drivers/ata/ahci-uclass.c b/drivers/ata/ahci-uclass.c index d398b50b9a1e..7affb3f1ec79 100644 --- a/drivers/ata/ahci-uclass.c +++ b/drivers/ata/ahci-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AHCI
-#include <common.h> #include <ahci.h> #include <dm.h>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 04ddc3394648..ac869296d525 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -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>
diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index f05150d61ddf..f6e2d6bee45b 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 9064774e6614..6cf5cee055e7 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -1,4 +1,3 @@ -#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index 15fd3e365b2b..b480cde4465b 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -8,7 +8,6 @@ * Author: Mugunthan V N mugunthanvnm@ti.com */
-#include <common.h> #include <dm.h> #include <ahci.h> #include <scsi.h> diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index b4d4e39c9b3b..a29d641343ed 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -4,7 +4,6 @@ * Terry Lv r65388@freescale.com */
-#include <common.h> #include <ahci.h> #include <blk.h> #include <cpu_func.h> diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c index 969bc191f8e8..4990148388b6 100644 --- a/drivers/ata/fsl_sata.c +++ b/drivers/ata/fsl_sata.c @@ -5,7 +5,6 @@ * Author: Dave Liu daveliu@freescale.com */
-#include <common.h> #include <ahci.h> #include <blk.h> #include <command.h> diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c index 47e2c5c1cc40..ef659cb1728a 100644 --- a/drivers/ata/libata.c +++ b/drivers/ata/libata.c @@ -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) { diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c index 2c5227df306b..53aabee0a5e6 100644 --- a/drivers/ata/mtk_ahci.c +++ b/drivers/ata/mtk_ahci.c @@ -8,7 +8,6 @@ * Author: Frank Wunderlich frank-w@public-files.de */
-#include <common.h> #include <ahci.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c index 784d9bbeacb4..84437d3d346b 100644 --- a/drivers/ata/sata.c +++ b/drivers/ata/sata.c @@ -9,7 +9,6 @@ * Dave Liu daveliu@freescale.com */
-#include <common.h> #include <ahci.h> #include <blk.h> #include <dm.h> diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c index f638493ce04f..a5ca6f6fd5bb 100644 --- a/drivers/ata/sata_bootdev.c +++ b/drivers/ata/sata_bootdev.c @@ -5,7 +5,6 @@ * Copyright 2023 Tony Dinh mibodhi@gmail.com */
-#include <common.h> #include <ahci.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c index 7769d4f99efd..a81b3165992a 100644 --- a/drivers/ata/sata_ceva.c +++ b/drivers/ata/sata_ceva.c @@ -3,7 +3,6 @@ * (C) Copyright 2015 - 2016 Xilinx, Inc. * Michal Simek michal.simek@amd.com */ -#include <common.h> #include <dm.h> #include <ahci.h> #include <generic-phy.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 94d7369351a3..ac78760a33eb 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -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> diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 43a91a79120a..5b80f6249d76 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -5,7 +5,6 @@ * Author: Tang Yuantian b29983@freescale.com */
-#include <common.h> #include <blk.h> #include <cpu_func.h> #include <dm.h>

On Wed, May 1, 2024 at 6:31 PM Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Simon Glass sjg@chromium.org Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Bin Meng bmeng@tinylab.org Cc: Tony Dinh mibodhi@gmail.com Cc: Michal Simek michal.simek@amd.com
Reviewed-by: Tony Dinh mibodhi@gmail.com
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(-)
diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index 5356b9d83d34..f2102aaa6353 100644 --- a/drivers/ata/ahci-pci.c +++ b/drivers/ata/ahci-pci.c @@ -3,7 +3,6 @@
- Copyright (C) 2017, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <ahci.h> #include <scsi.h> #include <dm.h> diff --git a/drivers/ata/ahci-uclass.c b/drivers/ata/ahci-uclass.c index d398b50b9a1e..7affb3f1ec79 100644 --- a/drivers/ata/ahci-uclass.c +++ b/drivers/ata/ahci-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AHCI
-#include <common.h> #include <ahci.h> #include <dm.h>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 04ddc3394648..ac869296d525 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -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>
diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index f05150d61ddf..f6e2d6bee45b 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 9064774e6614..6cf5cee055e7 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -1,4 +1,3 @@ -#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index 15fd3e365b2b..b480cde4465b 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -8,7 +8,6 @@
- Author: Mugunthan V N mugunthanvnm@ti.com
*/
-#include <common.h> #include <dm.h> #include <ahci.h> #include <scsi.h> diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index b4d4e39c9b3b..a29d641343ed 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -4,7 +4,6 @@
- Terry Lv r65388@freescale.com
*/
-#include <common.h> #include <ahci.h> #include <blk.h> #include <cpu_func.h> diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c index 969bc191f8e8..4990148388b6 100644 --- a/drivers/ata/fsl_sata.c +++ b/drivers/ata/fsl_sata.c @@ -5,7 +5,6 @@
- Author: Dave Liu daveliu@freescale.com
*/
-#include <common.h> #include <ahci.h> #include <blk.h> #include <command.h> diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c index 47e2c5c1cc40..ef659cb1728a 100644 --- a/drivers/ata/libata.c +++ b/drivers/ata/libata.c @@ -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) { diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c index 2c5227df306b..53aabee0a5e6 100644 --- a/drivers/ata/mtk_ahci.c +++ b/drivers/ata/mtk_ahci.c @@ -8,7 +8,6 @@
- Author: Frank Wunderlich frank-w@public-files.de
*/
-#include <common.h> #include <ahci.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c index 784d9bbeacb4..84437d3d346b 100644 --- a/drivers/ata/sata.c +++ b/drivers/ata/sata.c @@ -9,7 +9,6 @@
Dave Liu <daveliu@freescale.com>
*/
-#include <common.h> #include <ahci.h> #include <blk.h> #include <dm.h> diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c index f638493ce04f..a5ca6f6fd5bb 100644 --- a/drivers/ata/sata_bootdev.c +++ b/drivers/ata/sata_bootdev.c @@ -5,7 +5,6 @@
- Copyright 2023 Tony Dinh mibodhi@gmail.com
*/
-#include <common.h> #include <ahci.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c index 7769d4f99efd..a81b3165992a 100644 --- a/drivers/ata/sata_ceva.c +++ b/drivers/ata/sata_ceva.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 - 2016 Xilinx, Inc.
- Michal Simek michal.simek@amd.com
*/ -#include <common.h> #include <dm.h> #include <ahci.h> #include <generic-phy.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 94d7369351a3..ac78760a33eb 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -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> diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 43a91a79120a..5b80f6249d76 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -5,7 +5,6 @@
- Author: Tang Yuantian b29983@freescale.com
*/
-#include <common.h> #include <blk.h> #include <cpu_func.h>
#include <dm.h>
2.34.1

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Heinrich Schuchardt xypron.glpk@gmx.de --- 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(-)
diff --git a/drivers/axi/axi-emul-uclass.c b/drivers/axi/axi-emul-uclass.c index e6f3ef072005..bea0b040738c 100644 --- a/drivers/axi/axi-emul-uclass.c +++ b/drivers/axi/axi-emul-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AXI_EMUL
-#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/axi/axi-uclass.c b/drivers/axi/axi-uclass.c index 41551ae85c9c..fa2475cbaf4e 100644 --- a/drivers/axi/axi-uclass.c +++ b/drivers/axi/axi-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AXI
-#include <common.h> #include <dm.h> #include <axi.h>
diff --git a/drivers/axi/axi_sandbox.c b/drivers/axi/axi_sandbox.c index b91c91f6b3b6..6f698a405f92 100644 --- a/drivers/axi/axi_sandbox.c +++ b/drivers/axi/axi_sandbox.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <axi.h> #include <dm.h> #include <asm/axi.h> diff --git a/drivers/axi/ihs_axi.c b/drivers/axi/ihs_axi.c index a7e9761fbfc2..a37dd1e17867 100644 --- a/drivers/axi/ihs_axi.c +++ b/drivers/axi/ihs_axi.c @@ -7,7 +7,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/axi/sandbox_store.c b/drivers/axi/sandbox_store.c index ef349a50b798..b9413c758f7b 100644 --- a/drivers/axi/sandbox_store.c +++ b/drivers/axi/sandbox_store.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <axi.h> #include <dm.h> #include <log.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Bin Meng bmeng.cn@gmail.com --- 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(-)
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c index 7ebead6bfad6..d544ffb5ffb6 100644 --- a/drivers/bios_emulator/atibios.c +++ b/drivers/bios_emulator/atibios.c @@ -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> diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c index 02c4286a854c..690fb5a4d7b3 100644 --- a/drivers/bios_emulator/besys.c +++ b/drivers/bios_emulator/besys.c @@ -48,7 +48,6 @@ ****************************************************************************/
#define __io -#include <common.h> #include <asm/io.h> #include "biosemui.h"
diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c index 9596a1fdd3e0..7f883daf8f06 100644 --- a/drivers/bios_emulator/bios.c +++ b/drivers/bios_emulator/bios.c @@ -42,7 +42,6 @@ ****************************************************************************/
#define __io -#include <common.h> #include <asm/io.h> #include "biosemui.h"
diff --git a/drivers/bios_emulator/biosemu.c b/drivers/bios_emulator/biosemu.c index 82befbae66f7..ba4328474ce2 100644 --- a/drivers/bios_emulator/biosemu.c +++ b/drivers/bios_emulator/biosemu.c @@ -46,7 +46,6 @@ ****************************************************************************/
#include <malloc.h> -#include <common.h> #include "biosemui.h"
BE_sysEnv _BE_env = {{0}}; diff --git a/drivers/bios_emulator/x86emu/debug.c b/drivers/bios_emulator/x86emu/debug.c index 95f3cc09aad5..b426dc3bc45e 100644 --- a/drivers/bios_emulator/x86emu/debug.c +++ b/drivers/bios_emulator/x86emu/debug.c @@ -38,7 +38,6 @@ ****************************************************************************/
#include <stdarg.h> -#include <common.h> #include <linux/ctype.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/decode.c b/drivers/bios_emulator/x86emu/decode.c index e2028eaf0833..7e188d58a52c 100644 --- a/drivers/bios_emulator/x86emu/decode.c +++ b/drivers/bios_emulator/x86emu/decode.c @@ -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"
diff --git a/drivers/bios_emulator/x86emu/ops.c b/drivers/bios_emulator/x86emu/ops.c index 8c1a146165c9..57422ec3d473 100644 --- a/drivers/bios_emulator/x86emu/ops.c +++ b/drivers/bios_emulator/x86emu/ops.c @@ -72,7 +72,6 @@ * ****************************************************************************/
-#include <common.h> #include <linux/printk.h> #include "x86emu/x86emui.h"
diff --git a/drivers/bios_emulator/x86emu/ops2.c b/drivers/bios_emulator/x86emu/ops2.c index 6cd1ac398252..32fecb347913 100644 --- a/drivers/bios_emulator/x86emu/ops2.c +++ b/drivers/bios_emulator/x86emu/ops2.c @@ -41,7 +41,6 @@ * ****************************************************************************/
-#include <common.h> #include <linux/compiler.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/prim_ops.c b/drivers/bios_emulator/x86emu/prim_ops.c index 5f6c795fb7ff..b3cccb17f202 100644 --- a/drivers/bios_emulator/x86emu/prim_ops.c +++ b/drivers/bios_emulator/x86emu/prim_ops.c @@ -97,7 +97,6 @@ * ****************************************************************************/
-#include <common.h>
#define PRIM_OPS_NO_REDEFINE_ASM #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/sys.c b/drivers/bios_emulator/x86emu/sys.c index f96652415cd3..483ecd52efe3 100644 --- a/drivers/bios_emulator/x86emu/sys.c +++ b/drivers/bios_emulator/x86emu/sys.c @@ -39,7 +39,6 @@ * ****************************************************************************/
-#include <common.h> #include <linux/printk.h> #include "x86emu/x86emui.h"

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Tobias Waldekranz tobias@waldekranz.com Cc: Simon Glass sjg@chromium.org Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Bin Meng bmeng@tinylab.org Cc: Johan Jonker jbx6244@gmail.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Mattijs Korpershoek mkorpershoek@baylibre.com --- 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(-)
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 77066da352a3..512c952f4d7a 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BLK
-#include <common.h> #include <blk.h> #include <dm.h> #include <log.h> diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c index 5bf1d0471524..f36932183d1f 100644 --- a/drivers/block/blk_legacy.c +++ b/drivers/block/blk_legacy.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <blk.h> #include <part.h> #include <linux/err.h> diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index 26bcbea43533..0e69160249c7 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -4,7 +4,6 @@ * Author: Eric Nelsoneric@nelint.com * */ -#include <common.h> #include <blk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/block/blkmap.c b/drivers/block/blkmap.c index 21201409ed4b..34eed1380dca 100644 --- a/drivers/block/blkmap.c +++ b/drivers/block/blkmap.c @@ -4,7 +4,6 @@ * Author: Tobias Waldekranz tobias@waldekranz.com */
-#include <common.h> #include <blk.h> #include <blkmap.h> #include <dm.h> diff --git a/drivers/block/efi-media-uclass.c b/drivers/block/efi-media-uclass.c index e012f6f2f4c4..dc5e4f59b7f3 100644 --- a/drivers/block/efi-media-uclass.c +++ b/drivers/block/efi-media-uclass.c @@ -5,7 +5,6 @@ * Copyright 2021 Google LLC */
-#include <common.h> #include <dm.h>
UCLASS_DRIVER(efi_media) = { diff --git a/drivers/block/efi_blk.c b/drivers/block/efi_blk.c index 917a19f60254..9766cd6f8327 100644 --- a/drivers/block/efi_blk.c +++ b/drivers/block/efi_blk.c @@ -8,7 +8,6 @@ * Copyright 2021 Google LLC */
-#include <common.h> #include <blk.h> #include <dm.h> #include <efi.h> diff --git a/drivers/block/host-uclass.c b/drivers/block/host-uclass.c index b3647e3ce335..cf42bd1e07ac 100644 --- a/drivers/block/host-uclass.c +++ b/drivers/block/host-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/block/host_dev.c b/drivers/block/host_dev.c index 52313435a0cb..b3ff3cd1fab9 100644 --- a/drivers/block/host_dev.c +++ b/drivers/block/host_dev.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/block/ide.c b/drivers/block/ide.c index c698f9cbd558..b16623d7a3ab 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_IDE
-#include <common.h> #include <ata.h> #include <blk.h> #include <bootdev.h> diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index be4e02cb601a..ec34f1ad8c2e 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -3,7 +3,6 @@ * Copyright (C) 2013 Henrik Nordstrom henrik@henriknordstrom.net */
-#include <common.h> #include <blk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/block/sb_efi_media.c b/drivers/block/sb_efi_media.c index 52af155a6001..3255db064961 100644 --- a/drivers/block/sb_efi_media.c +++ b/drivers/block/sb_efi_media.c @@ -5,7 +5,6 @@ * Copyright 2021 Google LLC */
-#include <common.h> #include <dm.h>
static const struct udevice_id sandbox_efi_media_ids[] = {

Hi Tom,
Thank you for the patch.
On mer., mai 01, 2024 at 19:30, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Cc: Tom Rini trini@konsulko.com Cc: Tobias Waldekranz tobias@waldekranz.com Cc: Simon Glass sjg@chromium.org Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Bin Meng bmeng@tinylab.org Cc: Johan Jonker jbx6244@gmail.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Mattijs Korpershoek mkorpershoek@baylibre.com
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(-)
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 77066da352a3..512c952f4d7a 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BLK
-#include <common.h> #include <blk.h> #include <dm.h> #include <log.h> diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c index 5bf1d0471524..f36932183d1f 100644 --- a/drivers/block/blk_legacy.c +++ b/drivers/block/blk_legacy.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <blk.h> #include <part.h> #include <linux/err.h> diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index 26bcbea43533..0e69160249c7 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -4,7 +4,6 @@
- Author: Eric Nelsoneric@nelint.com
*/ -#include <common.h> #include <blk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/block/blkmap.c b/drivers/block/blkmap.c index 21201409ed4b..34eed1380dca 100644 --- a/drivers/block/blkmap.c +++ b/drivers/block/blkmap.c @@ -4,7 +4,6 @@
- Author: Tobias Waldekranz tobias@waldekranz.com
*/
-#include <common.h> #include <blk.h> #include <blkmap.h> #include <dm.h> diff --git a/drivers/block/efi-media-uclass.c b/drivers/block/efi-media-uclass.c index e012f6f2f4c4..dc5e4f59b7f3 100644 --- a/drivers/block/efi-media-uclass.c +++ b/drivers/block/efi-media-uclass.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h>
UCLASS_DRIVER(efi_media) = { diff --git a/drivers/block/efi_blk.c b/drivers/block/efi_blk.c index 917a19f60254..9766cd6f8327 100644 --- a/drivers/block/efi_blk.c +++ b/drivers/block/efi_blk.c @@ -8,7 +8,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <blk.h> #include <dm.h> #include <efi.h> diff --git a/drivers/block/host-uclass.c b/drivers/block/host-uclass.c index b3647e3ce335..cf42bd1e07ac 100644 --- a/drivers/block/host-uclass.c +++ b/drivers/block/host-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/block/host_dev.c b/drivers/block/host_dev.c index 52313435a0cb..b3ff3cd1fab9 100644 --- a/drivers/block/host_dev.c +++ b/drivers/block/host_dev.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/block/ide.c b/drivers/block/ide.c index c698f9cbd558..b16623d7a3ab 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_IDE
-#include <common.h> #include <ata.h> #include <blk.h> #include <bootdev.h> diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index be4e02cb601a..ec34f1ad8c2e 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -3,7 +3,6 @@
- Copyright (C) 2013 Henrik Nordstrom henrik@henriknordstrom.net
*/
-#include <common.h> #include <blk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/block/sb_efi_media.c b/drivers/block/sb_efi_media.c index 52af155a6001..3255db064961 100644 --- a/drivers/block/sb_efi_media.c +++ b/drivers/block/sb_efi_media.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h>
static const struct udevice_id sandbox_efi_media_ids[] = {
2.34.1

On 2024/5/2 09:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Tobias Waldekranz tobias@waldekranz.com Cc: Simon Glass sjg@chromium.org Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Bin Meng bmeng@tinylab.org Cc: Johan Jonker jbx6244@gmail.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Mattijs Korpershoek mkorpershoek@baylibre.com
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(-)
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 77066da352a3..512c952f4d7a 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BLK
-#include <common.h> #include <blk.h> #include <dm.h> #include <log.h> diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c index 5bf1d0471524..f36932183d1f 100644 --- a/drivers/block/blk_legacy.c +++ b/drivers/block/blk_legacy.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <blk.h> #include <part.h> #include <linux/err.h> diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index 26bcbea43533..0e69160249c7 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -4,7 +4,6 @@
- Author: Eric Nelsoneric@nelint.com
*/ -#include <common.h> #include <blk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/block/blkmap.c b/drivers/block/blkmap.c index 21201409ed4b..34eed1380dca 100644 --- a/drivers/block/blkmap.c +++ b/drivers/block/blkmap.c @@ -4,7 +4,6 @@
- Author: Tobias Waldekranz tobias@waldekranz.com
*/
-#include <common.h> #include <blk.h> #include <blkmap.h> #include <dm.h> diff --git a/drivers/block/efi-media-uclass.c b/drivers/block/efi-media-uclass.c index e012f6f2f4c4..dc5e4f59b7f3 100644 --- a/drivers/block/efi-media-uclass.c +++ b/drivers/block/efi-media-uclass.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h>
UCLASS_DRIVER(efi_media) = { diff --git a/drivers/block/efi_blk.c b/drivers/block/efi_blk.c index 917a19f60254..9766cd6f8327 100644 --- a/drivers/block/efi_blk.c +++ b/drivers/block/efi_blk.c @@ -8,7 +8,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <blk.h> #include <dm.h> #include <efi.h> diff --git a/drivers/block/host-uclass.c b/drivers/block/host-uclass.c index b3647e3ce335..cf42bd1e07ac 100644 --- a/drivers/block/host-uclass.c +++ b/drivers/block/host-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/block/host_dev.c b/drivers/block/host_dev.c index 52313435a0cb..b3ff3cd1fab9 100644 --- a/drivers/block/host_dev.c +++ b/drivers/block/host_dev.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_HOST
-#include <common.h> #include <blk.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/block/ide.c b/drivers/block/ide.c index c698f9cbd558..b16623d7a3ab 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_IDE
-#include <common.h> #include <ata.h> #include <blk.h> #include <bootdev.h> diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index be4e02cb601a..ec34f1ad8c2e 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -3,7 +3,6 @@
- Copyright (C) 2013 Henrik Nordstrom henrik@henriknordstrom.net
*/
-#include <common.h> #include <blk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/block/sb_efi_media.c b/drivers/block/sb_efi_media.c index 52af155a6001..3255db064961 100644 --- a/drivers/block/sb_efi_media.c +++ b/drivers/block/sb_efi_media.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h>
static const struct udevice_id sandbox_efi_media_ids[] = {

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- 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(-)
diff --git a/drivers/bootcount/bootcount-uclass.c b/drivers/bootcount/bootcount-uclass.c index 5a369c82f1c5..0178c1818e59 100644 --- a/drivers/bootcount/bootcount-uclass.c +++ b/drivers/bootcount/bootcount-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_BOOTCOUNT
-#include <common.h> #include <dm.h> #include <errno.h> #include <bootcount.h> diff --git a/drivers/bootcount/bootcount_at91.c b/drivers/bootcount/bootcount_at91.c index c4ab5ceafabd..1a06db1fb740 100644 --- a/drivers/bootcount/bootcount_at91.c +++ b/drivers/bootcount/bootcount_at91.c @@ -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> diff --git a/drivers/bootcount/bootcount_env.c b/drivers/bootcount/bootcount_env.c index b75c9002b2c0..960cd71b9d56 100644 --- a/drivers/bootcount/bootcount_env.c +++ b/drivers/bootcount/bootcount_env.c @@ -4,7 +4,6 @@ * Heiko Schocher, DENX Software Engineering, hs@denx.de. */
-#include <common.h> #include <env.h>
void bootcount_store(ulong a) diff --git a/drivers/bootcount/bootcount_ram.c b/drivers/bootcount/bootcount_ram.c index 8cc30cf40eff..33e157b865a1 100644 --- a/drivers/bootcount/bootcount_ram.c +++ b/drivers/bootcount/bootcount_ram.c @@ -4,7 +4,6 @@ * Heiko Schocher, DENX Software Engineering, hs@denx.de. */
-#include <common.h> #include <cpu_func.h> #include <asm/cache.h> #include <asm/global_data.h> diff --git a/drivers/bootcount/bootcount_syscon.c b/drivers/bootcount/bootcount_syscon.c index f80d87071d98..5dbc13cd5452 100644 --- a/drivers/bootcount/bootcount_syscon.c +++ b/drivers/bootcount/bootcount_syscon.c @@ -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> diff --git a/drivers/bootcount/i2c-eeprom.c b/drivers/bootcount/i2c-eeprom.c index 709be094b118..12c430465c98 100644 --- a/drivers/bootcount/i2c-eeprom.c +++ b/drivers/bootcount/i2c-eeprom.c @@ -4,7 +4,6 @@ * (C) Copyright 2019 GE */
-#include <common.h> #include <bootcount.h> #include <dm.h> #include <i2c_eeprom.h> diff --git a/drivers/bootcount/pmic_pfuze100.c b/drivers/bootcount/pmic_pfuze100.c index df046f1b0ab0..8c529f5592b4 100644 --- a/drivers/bootcount/pmic_pfuze100.c +++ b/drivers/bootcount/pmic_pfuze100.c @@ -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> diff --git a/drivers/bootcount/rtc.c b/drivers/bootcount/rtc.c index 483caaa80df4..b131946aa9d1 100644 --- a/drivers/bootcount/rtc.c +++ b/drivers/bootcount/rtc.c @@ -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> diff --git a/drivers/bootcount/spi-flash.c b/drivers/bootcount/spi-flash.c index 03050e666134..155d0323ee78 100644 --- a/drivers/bootcount/spi-flash.c +++ b/drivers/bootcount/spi-flash.c @@ -4,7 +4,6 @@ * (C) Copyright 2019 GE */
-#include <common.h> #include <bootcount.h> #include <dm.h> #include <spi_flash.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com --- drivers/bus/ti-pwmss.c | 1 - drivers/bus/ti-sysc.c | 1 - 2 files changed, 2 deletions(-)
diff --git a/drivers/bus/ti-pwmss.c b/drivers/bus/ti-pwmss.c index 265b4cf83b59..d1f6f3bab00f 100644 --- a/drivers/bus/ti-pwmss.c +++ b/drivers/bus/ti-pwmss.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <dm.h>
static const struct udevice_id ti_pwmss_ids[] = { diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 778c0654f6a3..5f9f0a0d0b7b 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com --- drivers/button/button-adc.c | 1 - drivers/button/button-gpio.c | 1 - drivers/button/button-uclass.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/button/button-adc.c b/drivers/button/button-adc.c index 9c24c960e6ff..da7ddf2a8577 100644 --- a/drivers/button/button-adc.c +++ b/drivers/button/button-adc.c @@ -5,7 +5,6 @@ * Author: Marek Szyprowski m.szyprowski@samsung.com */
-#include <common.h> #include <adc.h> #include <button.h> #include <log.h> diff --git a/drivers/button/button-gpio.c b/drivers/button/button-gpio.c index 7b5b3affe2dd..43b82d98aeb7 100644 --- a/drivers/button/button-gpio.c +++ b/drivers/button/button-gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Philippe Reynes philippe.reynes@softathome.com */
-#include <common.h> #include <button.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/button/button-uclass.c b/drivers/button/button-uclass.c index 032191d61abc..cda243389df3 100644 --- a/drivers/button/button-uclass.c +++ b/drivers/button/button-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_BUTTON
-#include <common.h> #include <button.h> #include <dm.h> #include <dm/uclass-internal.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Johan Jonker jbx6244@gmail.com --- 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(-)
diff --git a/drivers/cache/cache-l2x0.c b/drivers/cache/cache-l2x0.c index 560f4c94f1ef..c7bdd9d064a5 100644 --- a/drivers/cache/cache-l2x0.c +++ b/drivers/cache/cache-l2x0.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2019 Intel Corporation <www.intel.com> */ -#include <common.h> #include <command.h> #include <dm.h>
diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-sifive-ccache.c index 521df40466f9..cc00b80f60b8 100644 --- a/drivers/cache/cache-sifive-ccache.c +++ b/drivers/cache/cache-sifive-ccache.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 SiFive */
-#include <common.h> #include <cache.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/cache/cache-uclass.c b/drivers/cache/cache-uclass.c index 0c13dbdb75c4..300e7bc86e1a 100644 --- a/drivers/cache/cache-uclass.c +++ b/drivers/cache/cache-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CACHE
-#include <common.h> #include <cache.h> #include <dm.h>
diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c index fe3f9392b2ca..f0b8ecc88079 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-v5l2.c @@ -4,7 +4,6 @@ * Rick Chen, Andes Technology Corporation rick@andestech.com */
-#include <common.h> #include <command.h> #include <cache.h> #include <dm.h> diff --git a/drivers/cache/sandbox_cache.c b/drivers/cache/sandbox_cache.c index 955dfc8a0f84..2e20b83ab803 100644 --- a/drivers/cache/sandbox_cache.c +++ b/drivers/cache/sandbox_cache.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 Intel Corporation <www.intel.com> */
-#include <common.h> #include <cache.h> #include <dm.h> #include <errno.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Lukasz Majewski lukma@denx.de Cc: Sean Anderson seanga2@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Mario Six mario.six@gdsys.cc Cc: Stefan Roese sr@denx.de Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Francois Berder fberder@outlook.fr Cc: Johan Jonker jbx6244@gmail.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Chanho Park chanho61.park@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Konrad Dybcio konrad.dybcio@linaro.org Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Torsten Duwe duwe@suse.de Cc: Hal Feng hal.feng@starfivetech.com Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Xingyu Wu xingyu.wu@starfivetech.com Cc: Hoegeun Kwon hoegeun.kwon@samsung.com Cc: Vishal Mahaveer vishalm@ti.com Cc: Nishanth Menon nm@ti.com Cc: Bryan Brattlof bb@ti.com Cc: Hari Nagalla hnagalla@ti.com Cc: Apurva Nandan a-nandan@ti.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Udit Kumar u-kumar1@ti.com --- 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(-)
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index cca6d6741221..bdc7be0fb5d3 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -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> diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 578597a16e81..1840f73beeec 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Marek Vasut marex@denx.de */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c index 9bbe2cd0ca70..b75f52d203b2 100644 --- a/drivers/clk/altera/clk-mem-n5x.c +++ b/drivers/clk/altera/clk-mem-n5x.c @@ -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> diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c index 3fa19e05c47e..3e256101a947 100644 --- a/drivers/clk/altera/clk-n5x.c +++ b/drivers/clk/altera/clk-n5x.c @@ -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> diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index dc446ce9fb7d..a330dcda4dcb 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 Google, Inc */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index a15909329bbd..535010b79414 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -3,7 +3,6 @@ * Copyright (C) ASPEED Technology Inc. */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/clk/at91/clk-generic.c b/drivers/clk/at91/clk-generic.c index 87738b7b5bff..c410cd2b5052 100644 --- a/drivers/clk/at91/clk-generic.c +++ b/drivers/clk/at91/clk-generic.c @@ -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> diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 025c7a7aa26d..09daae97676d 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -10,7 +10,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-master.c b/drivers/clk/at91/clk-master.c index aec0bca7b3cb..d28775d64d33 100644 --- a/drivers/clk/at91/clk-master.c +++ b/drivers/clk/at91/clk-master.c @@ -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> diff --git a/drivers/clk/at91/clk-peripheral.c b/drivers/clk/at91/clk-peripheral.c index 52cbc520cef4..08d7e7dddc9e 100644 --- a/drivers/clk/at91/clk-peripheral.c +++ b/drivers/clk/at91/clk-peripheral.c @@ -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> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c index 868de4b1774b..d0b14656c4d6 100644 --- a/drivers/clk/at91/clk-programmable.c +++ b/drivers/clk/at91/clk-programmable.c @@ -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> diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c index 383f79cfbaf5..a30035eb8ce9 100644 --- a/drivers/clk/at91/clk-sam9x60-pll.c +++ b/drivers/clk/at91/clk-sam9x60-pll.c @@ -11,7 +11,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 82f79e74a190..3545b0b24bd7 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -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> diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c index 7c8bcfb51dba..84784ae41ce8 100644 --- a/drivers/clk/at91/clk-utmi.c +++ b/drivers/clk/at91/clk-utmi.c @@ -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> diff --git a/drivers/clk/at91/compat.c b/drivers/clk/at91/compat.c index ee67093c6073..1d738f160b6e 100644 --- a/drivers/clk/at91/compat.c +++ b/drivers/clk/at91/compat.c @@ -6,7 +6,7 @@ * * Author: Claudiu Beznea claudiu.beznea@microchip.com */ -#include <common.h> +#include <config.h> #include <clk-uclass.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 87d2069d89ce..aa4bc8fa47ad 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -4,7 +4,6 @@ * Wenyou.Yang wenyou.yang@atmel.com */
-#include <common.h> #include <asm/io.h> #include <clk-uclass.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index d858c860f696..b7d64bdbb3d4 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -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> diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 3e62fb1f58d3..63b2c6474679 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -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> diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 43136ab2e349..6d6f12578db7 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -7,7 +7,6 @@ * Author: Claudiu Beznea claudiu.beznea@microchip.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c index b8700f517fc9..e5f74e714d54 100644 --- a/drivers/clk/clk-cdce9xx.c +++ b/drivers/clk/clk-cdce9xx.c @@ -8,7 +8,6 @@ * Based on Linux kernel clk-cdce925.c. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index d2e5a1ae401d..199ca6eaa370 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2ad682b8fe2c..aa210e3d15fd 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 2a446788e191..068798cf9b05 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index cfd90b717e73..bf1c6a93b468 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <log.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 85074f1b86e8..53655059279e 100644 --- a/drivers/clk/clk-hsdk-cgu.c +++ b/drivers/clk/clk-hsdk-cgu.c @@ -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> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index f410518461e9..39e01c3fbc61 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -23,7 +23,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index ed6e60bc4841..4c832f1a5307 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index a10a843f11f9..4a3f50c638b1 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -7,7 +7,6 @@ * Author: Zhengxun Li zhengxunli@mxic.com.tw */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 6ede1b4d4dcc..b8c2e8d531b9 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c index 8c22ed2f43d4..0b41872b7192 100644 --- a/drivers/clk/clk_bcm6345.c +++ b/drivers/clk/clk_bcm6345.c @@ -6,7 +6,6 @@ * Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c index 4bcf91175512..030ff7cc58ec 100644 --- a/drivers/clk/clk_boston.c +++ b/drivers/clk/clk_boston.c @@ -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> diff --git a/drivers/clk/clk_fixed_factor.c b/drivers/clk/clk_fixed_factor.c index 6c1139e5c519..1d740cf49f62 100644 --- a/drivers/clk/clk_fixed_factor.c +++ b/drivers/clk/clk_fixed_factor.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index b5e78c70559e..d1da05cc18a5 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c index 7432ae8f0642..d1a6cde8f0f8 100644 --- a/drivers/clk/clk_k210.c +++ b/drivers/clk/clk_k210.c @@ -4,7 +4,6 @@ */ #define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index a77d0e7419c9..885aa8345165 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c index 73d943f9e092..8dd77f18d901 100644 --- a/drivers/clk/clk_sandbox.c +++ b/drivers/clk/clk_sandbox.c @@ -3,7 +3,6 @@ * (C) Copyright 2015 Google, Inc */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c index 38184e27aa4f..f96a15c30b3a 100644 --- a/drivers/clk/clk_sandbox_ccf.c +++ b/drivers/clk/clk_sandbox_ccf.c @@ -6,7 +6,6 @@ * Common Clock Framework [CCF] driver for Sandbox */
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c index c224dc1d2cb9..87350212775c 100644 --- a/drivers/clk/clk_sandbox_test.c +++ b/drivers/clk/clk_sandbox_test.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index 34a49363a51a..e42d2032d45e 100644 --- a/drivers/clk/clk_scmi.c +++ b/drivers/clk/clk_scmi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <scmi_agent.h> diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c index bbe722560329..9ccaf13d2420 100644 --- a/drivers/clk/clk_versaclock.c +++ b/drivers/clk/clk_versaclock.c @@ -5,7 +5,6 @@ * Derived from code Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index 42ab032bf7e7..35ee56d0693d 100644 --- a/drivers/clk/clk_versal.c +++ b/drivers/clk/clk_versal.c @@ -4,7 +4,6 @@ * Siva Durga Prasad Paladugu siva.durga.prasad.paladugu@amd.com> */
-#include <common.h> #include <log.h> #include <asm/cache.h> #include <asm/ptrace.h> diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c index 3b1e0208d47e..2e0e7bbe68ff 100644 --- a/drivers/clk/clk_vexpress_osc.c +++ b/drivers/clk/clk_vexpress_osc.c @@ -5,7 +5,6 @@ * */ #define DEBUG -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c index e3cefe2e0c72..b62b4646f4e5 100644 --- a/drivers/clk/clk_zynq.c +++ b/drivers/clk/clk_zynq.c @@ -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> diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index e23f7da3f929..599992661484 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -5,7 +5,6 @@ * Copyright (C) 2016 Xilinx, Inc. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <dm/device_compat.h> diff --git a/drivers/clk/exynos/clk-exynos7420.c b/drivers/clk/exynos/clk-exynos7420.c index 9caa932e12fb..3aa751bf4e42 100644 --- a/drivers/clk/exynos/clk-exynos7420.c +++ b/drivers/clk/exynos/clk-exynos7420.c @@ -5,7 +5,6 @@ * Thomas Abraham thomas.ab@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c index 33fb6ed0c7a4..9c61a84ea61f 100644 --- a/drivers/clk/ics8n3qv01.c +++ b/drivers/clk/ics8n3qv01.c @@ -9,7 +9,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de */
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <i2c.h> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c index 494156751dae..45f1bcaea288 100644 --- a/drivers/clk/imx/clk-composite-8m.c +++ b/drivers/clk/imx/clk-composite-8m.c @@ -3,7 +3,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers/clk/imx/clk-composite-93.c index 6d71c0c03ffe..2cf20be2ccae 100644 --- a/drivers/clk/imx/clk-composite-93.c +++ b/drivers/clk/imx/clk-composite-93.c @@ -4,7 +4,6 @@ * * Peng Fan peng.fan@nxp.com */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 9228f279e27d..8f42a5cb1b72 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -3,7 +3,6 @@ * Copyright 2021 NXP */
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate-93.c b/drivers/clk/imx/clk-gate-93.c index bc8574137137..d7f2640fbb7c 100644 --- a/drivers/clk/imx/clk-gate-93.c +++ b/drivers/clk/imx/clk-gate-93.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index da2723023778..65fa6b5b139f 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -14,7 +14,6 @@ * */
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 67825af89b81..ba9923d8f6fa 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -4,7 +4,6 @@ * Lukasz Majewski, DENX Software Engineering, lukma@denx.de */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c index d39b87b2e245..96cf5fece75f 100644 --- a/drivers/clk/imx/clk-imx8.c +++ b/drivers/clk/imx/clk-imx8.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 1a00dd1d287b..70e2e53bdea5 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 457acb8a401e..ed9e16d7c180 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 7dfc829df2c4..1f498b6ba4ea 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index cf197df96dbb..ed4acd79ef74 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c index 01e33de9d63f..62fed7e3e32c 100644 --- a/drivers/clk/imx/clk-imx8qm.c +++ b/drivers/clk/imx/clk-imx8qm.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index d900d4cd5286..18bdc08971bf 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -4,7 +4,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index f0cb797d9750..ede36c412bff 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -3,7 +3,6 @@ * Copyright 2021 NXP. */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c index dc91ac5adbf1..c80b02975aad 100644 --- a/drivers/clk/imx/clk-imxrt1020.c +++ b/drivers/clk/imx/clk-imxrt1020.c @@ -4,7 +4,6 @@ * Author(s): Giulio Benetti giulio.benetti@benettiengineering.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index d40635d17a4a..754f39484275 100644 --- a/drivers/clk/imx/clk-imxrt1050.c +++ b/drivers/clk/imx/clk-imxrt1050.c @@ -4,7 +4,6 @@ * Author(s): Giulio Benetti giulio.benetti@benettiengineering.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1170.c b/drivers/clk/imx/clk-imxrt1170.c index 077dd1bf02d3..20b9dc315001 100644 --- a/drivers/clk/imx/clk-imxrt1170.c +++ b/drivers/clk/imx/clk-imxrt1170.c @@ -4,7 +4,6 @@ * Author(s): Jesse Taube Mr.Bossman075@gmail.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index b8be3167c4cd..378cdff072fe 100644 --- a/drivers/clk/imx/clk-pfd.c +++ b/drivers/clk/imx/clk-pfd.c @@ -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> diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index 1cb685ee9abd..3911e0339056 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index fad306aeed23..c6692f2f9f5a 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -4,7 +4,6 @@ * Lukasz Majewski, DENX Software Engineering, lukma@denx.de */
-#include <common.h> #include <asm/io.h> #include <div64.h> #include <malloc.h> diff --git a/drivers/clk/intel/clk_intel.c b/drivers/clk/intel/clk_intel.c index 46ccbb1d834d..a677a7caac7c 100644 --- a/drivers/clk/intel/clk_intel.c +++ b/drivers/clk/intel/clk_intel.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <dt-bindings/clock/intel-clock.h> diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 259ea335959c..2beb63030f22 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -6,7 +6,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c index 0c7411ee814d..5072c9983c11 100644 --- a/drivers/clk/mediatek/clk-mt7623.c +++ b/drivers/clk/mediatek/clk-mt7623.c @@ -6,7 +6,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index 31b6fa02251a..0c796a1788aa 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -6,7 +6,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk-mt8183.c index 17e653a1f00a..9612a62e56a7 100644 --- a/drivers/clk/mediatek/clk-mt8183.c +++ b/drivers/clk/mediatek/clk-mt8183.c @@ -8,7 +8,6 @@ * Author: Weiyi Lu weiyi.lu@mediatek.com */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8183-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8512.c b/drivers/clk/mediatek/clk-mt8512.c index 193e069cb053..ab2706734428 100644 --- a/drivers/clk/mediatek/clk-mt8512.c +++ b/drivers/clk/mediatek/clk-mt8512.c @@ -6,7 +6,6 @@ * Author: Chen Zhong chen.zhong@mediatek.com */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8512-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c index 29f70620e09d..623f88499f1b 100644 --- a/drivers/clk/mediatek/clk-mt8516.c +++ b/drivers/clk/mediatek/clk-mt8516.c @@ -6,7 +6,6 @@ * Author: Fabien Parent fparent@baylibre.com */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8516-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8518.c b/drivers/clk/mediatek/clk-mt8518.c index 238651483726..ba8cc584d46f 100644 --- a/drivers/clk/mediatek/clk-mt8518.c +++ b/drivers/clk/mediatek/clk-mt8518.c @@ -6,7 +6,6 @@ * Author: Chen Zhong chen.zhong@mediatek.com */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8518-clk.h> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 4303300d3a8d..d2c45be30dec 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -6,7 +6,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index 5220a337a8bb..a1b8d7914910 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -4,7 +4,6 @@ * Author: Igor Prusov ivprusov@salutedevices.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/clk/meson/axg-ao.c b/drivers/clk/meson/axg-ao.c index 311ffc1cca9a..6ccf52127b02 100644 --- a/drivers/clk/meson/axg-ao.c +++ b/drivers/clk/meson/axg-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index d6da59d269b0..c421a622a587 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -5,7 +5,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <asm/arch/clock-axg.h> #include <asm/io.h> diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 1a855a68966e..61d489c6e1c8 100644 --- a/drivers/clk/meson/g12a-ao.c +++ b/drivers/clk/meson/g12a-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index e4fed8ddfb27..5d7faaa3eabf 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -5,7 +5,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <asm/arch/clock-g12a.h> #include <asm/io.h> diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index e379540deee7..72ad4fd0e85f 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -5,7 +5,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <asm/arch/clock-gx.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk.c b/drivers/clk/microchip/mpfs_clk.c index 08f8bfcecbed..0a82777ff74d 100644 --- a/drivers/clk/microchip/mpfs_clk.c +++ b/drivers/clk/microchip/mpfs_clk.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari padmarao.begari@microchip.com */ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/microchip/mpfs_clk_cfg.c b/drivers/clk/microchip/mpfs_clk_cfg.c index 5739fd66e8df..5e8fb9952895 100644 --- a/drivers/clk/microchip/mpfs_clk_cfg.c +++ b/drivers/clk/microchip/mpfs_clk_cfg.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari padmarao.begari@microchip.com */ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_msspll.c b/drivers/clk/microchip/mpfs_clk_msspll.c index f37c0d86047c..d0e7b1ff844f 100644 --- a/drivers/clk/microchip/mpfs_clk_msspll.c +++ b/drivers/clk/microchip/mpfs_clk_msspll.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2022 Microchip Technology Inc. */ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_periph.c b/drivers/clk/microchip/mpfs_clk_periph.c index ddeccb914575..41c6df4fb979 100644 --- a/drivers/clk/microchip/mpfs_clk_periph.c +++ b/drivers/clk/microchip/mpfs_clk_periph.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari padmarao.begari@microchip.com */ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index cc734450ef00..a29ad0d7a68d 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <clk-uclass.h> #include <clock_legacy.h> #include <command.h> diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c index 4d3ac847d1d5..2e263fb2cd28 100644 --- a/drivers/clk/mtmips/clk-mt7628.c +++ b/drivers/clk/mtmips/clk-mt7628.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clock/mt7628-clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index f5c9bd735c13..30330393f760 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -8,7 +8,6 @@ * Gregory CLEMENT gregory.clement@free-electrons.com */
-#include <common.h> #include <malloc.h> #include <clk-uclass.h> #include <clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index 846a73cd6b36..c1bab84c070e 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -8,7 +8,6 @@ * Gregory CLEMENT gregory.clement@free-electrons.com */
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c index 678fdd5a4540..513112c1146c 100644 --- a/drivers/clk/owl/clk_owl.c +++ b/drivers/clk/owl/clk_owl.c @@ -6,7 +6,6 @@ * Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org */
-#include <common.h> #include <dm.h> #include "clk_owl.h" #include <asm/io.h> diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c index d3b63b9c1ac5..41fe4d896a7c 100644 --- a/drivers/clk/qcom/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -7,7 +7,6 @@ * Based on Little Kernel driver, simplified */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c index 479f9771a464..c77d69128b00 100644 --- a/drivers/clk/qcom/clock-apq8096.c +++ b/drivers/clk/qcom/clock-apq8096.c @@ -7,7 +7,6 @@ * Based on Little Kernel driver, simplified */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-ipq4019.c b/drivers/clk/qcom/clock-ipq4019.c index 72f235eab212..0e6d93b3d7c2 100644 --- a/drivers/clk/qcom/clock-ipq4019.c +++ b/drivers/clk/qcom/clock-ipq4019.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcom.c b/drivers/clk/qcom/clock-qcom.c index 05e5ab7d094b..3a9cf2a231f2 100644 --- a/drivers/clk/qcom/clock-qcom.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcs404.c b/drivers/clk/qcom/clock-qcs404.c index 8a897a52bc00..70a1f648e585 100644 --- a/drivers/clk/qcom/clock-qcs404.c +++ b/drivers/clk/qcom/clock-qcs404.c @@ -5,7 +5,6 @@ * (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index 782df7da8444..f41f8c9e8dee 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -8,7 +8,6 @@ * Based on Little Kernel driver, simplified */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/delay.h> diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c index 66f8bb166955..44c6f14618d2 100644 --- a/drivers/clk/rockchip/clk_pll.c +++ b/drivers/clk/rockchip/clk_pll.c @@ -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> diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index 2875c152b20d..d7825c66493e 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c index 6238b14c29e1..274428f2b4bd 100644 --- a/drivers/clk/rockchip/clk_rk3036.c +++ b/drivers/clk/rockchip/clk_rk3036.c @@ -3,7 +3,6 @@ * (C) Copyright 2015 Google, Inc */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index f83335df6db6..f7dea7859f74 100644 --- a/drivers/clk/rockchip/clk_rk3066.c +++ b/drivers/clk/rockchip/clk_rk3066.c @@ -5,7 +5,6 @@ */
#include <bitfield.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c index 182754e7052d..a07285593b55 100644 --- a/drivers/clk/rockchip/clk_rk3128.c +++ b/drivers/clk/rockchip/clk_rk3128.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c index f98b46a0f73b..f569a100f22b 100644 --- a/drivers/clk/rockchip/clk_rk3188.c +++ b/drivers/clk/rockchip/clk_rk3188.c @@ -4,7 +4,6 @@ * (C) Copyright 2016 Heiko Stuebner heiko@sntech.de */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 9371c4f63a48..9b71fd863bad 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 0b7eefad15f1..432a79291c8a 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -3,7 +3,6 @@ * (C) Copyright 2015 Google, Inc */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index 861648321d40..e73bb6790af2 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 87075ec71340..4b94d6364d13 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 1c5dfaa3800b..d89439805215 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 80f65a237e8e..cc414c38432c 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index 24eeca8bf265..35563509d617 100644 --- a/drivers/clk/rockchip/clk_rk3568.c +++ b/drivers/clk/rockchip/clk_rk3568.c @@ -4,7 +4,6 @@ * Author: Elaine Zhang zhangqing@rock-chips.com */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index 4c611a390499..ceae08a19aa5 100644 --- a/drivers/clk/rockchip/clk_rk3588.c +++ b/drivers/clk/rockchip/clk_rk3588.c @@ -4,7 +4,6 @@ * Author: Elaine Zhang zhangqing@rock-chips.com */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index fc442f7eebe2..75202a66aa68 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -4,7 +4,6 @@ * Author: Andy Yan andy.yan@rock-chips.com */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1126.c b/drivers/clk/rockchip/clk_rv1126.c index cfdfcbdb0f4c..aeeea9569147 100644 --- a/drivers/clk/rockchip/clk_rv1126.c +++ b/drivers/clk/rockchip/clk_rv1126.c @@ -5,7 +5,6 @@ * Author: Finley Xiao finley.xiao@rock-chips.com */
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index c8fb60029070..5ea860628006 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -22,7 +22,6 @@ * https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2... */
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/starfive/clk-jh7110-pll.c b/drivers/clk/starfive/clk-jh7110-pll.c index 1568a1f4cd91..581035842fc3 100644 --- a/drivers/clk/starfive/clk-jh7110-pll.c +++ b/drivers/clk/starfive/clk-jh7110-pll.c @@ -6,7 +6,6 @@ * Xingyu Wu xingyu.wu@starfivetech.com */
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index a38694809a00..191da75d7ba2 100644 --- a/drivers/clk/starfive/clk-jh7110.c +++ b/drivers/clk/starfive/clk-jh7110.c @@ -6,7 +6,6 @@ * Xingyu Wu xingyu.wu@starfivetech.com */
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32-core.c b/drivers/clk/stm32/clk-stm32-core.c index 37e996e78f96..cad07cc952e7 100644 --- a/drivers/clk/stm32/clk-stm32-core.c +++ b/drivers/clk/stm32/clk-stm32-core.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32f.c b/drivers/clk/stm32/clk-stm32f.c index d68c75ed2013..fceb3c44b94e 100644 --- a/drivers/clk/stm32/clk-stm32f.c +++ b/drivers/clk/stm32/clk-stm32f.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32h7.c b/drivers/clk/stm32/clk-stm32h7.c index d440c28eb485..a554eda504de 100644 --- a/drivers/clk/stm32/clk-stm32h7.c +++ b/drivers/clk/stm32/clk-stm32h7.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32mp1.c b/drivers/clk/stm32/clk-stm32mp1.c index 6f000c8e4448..204ac170531d 100644 --- a/drivers/clk/stm32/clk-stm32mp1.c +++ b/drivers/clk/stm32/clk-stm32mp1.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32mp13.c b/drivers/clk/stm32/clk-stm32mp13.c index 5174ae53a1a2..362dba102521 100644 --- a/drivers/clk/stm32/clk-stm32mp13.c +++ b/drivers/clk/stm32/clk-stm32mp13.c @@ -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> diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c index f27306fe33b3..19fe248044b4 100644 --- a/drivers/clk/sunxi/clk_a10.c +++ b/drivers/clk/sunxi/clk_a10.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c index 16ac589bb2bf..f771369c9423 100644 --- a/drivers/clk/sunxi/clk_a10s.c +++ b/drivers/clk/sunxi/clk_a10s.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c index 45d5ba75bf51..fdee4347e991 100644 --- a/drivers/clk/sunxi/clk_a23.c +++ b/drivers/clk/sunxi/clk_a23.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c index 6ca800050ed0..04f76a7c2a38 100644 --- a/drivers/clk/sunxi/clk_a31.c +++ b/drivers/clk/sunxi/clk_a31.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index fd26cd4f5d66..f1b01d25ddd4 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c index c5834f44103f..6751af8a8031 100644 --- a/drivers/clk/sunxi/clk_a80.c +++ b/drivers/clk/sunxi/clk_a80.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c index 760d98cd620c..d8621a3e64cc 100644 --- a/drivers/clk/sunxi/clk_a83t.c +++ b/drivers/clk/sunxi/clk_a83t.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index 9dae761de83c..b990a1185948 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk/sunxi/clk_d1.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Samuel Holland samuel@sholland.org */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_f1c100s.c b/drivers/clk/sunxi/clk_f1c100s.c index 7b4c3ce51765..e22956992014 100644 --- a/drivers/clk/sunxi/clk_f1c100s.c +++ b/drivers/clk/sunxi/clk_f1c100s.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 George Hilliard thirtythreeforty@gmail.com. */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index 32bc95fccca4..ce55caeb1573 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 071fd581003d..1b7bd9dea2f8 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h616.c b/drivers/clk/sunxi/clk_h616.c index 113dcff28515..b1e999e18c14 100644 --- a/drivers/clk/sunxi/clk_h616.c +++ b/drivers/clk/sunxi/clk_h616.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Jernej Skrabec jernej.skrabec@siol.net */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 0fef6f3566d5..721debdae238 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c index 1782cffc404a..2ef4f45dacf5 100644 --- a/drivers/clk/sunxi/clk_sunxi.c +++ b/drivers/clk/sunxi/clk_sunxi.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c index 6524c13540e0..85410e282e85 100644 --- a/drivers/clk/sunxi/clk_v3s.c +++ b/drivers/clk/sunxi/clk_v3s.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c index c5214b9b3e2e..1d61f8dc378d 100644 --- a/drivers/clk/tegra/tegra-car-clk.c +++ b/drivers/clk/tegra/tegra-car-clk.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/tegra/tegra186-clk.c b/drivers/clk/tegra/tegra186-clk.c index 5a98a3f3f0e6..ec52326c3b36 100644 --- a/drivers/clk/tegra/tegra186-clk.c +++ b/drivers/clk/tegra/tegra186-clk.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/ti/clk-am3-dpll-x2.c b/drivers/clk/ti/clk-am3-dpll-x2.c index 3cf279d6a3a9..1b0b9818cdd4 100644 --- a/drivers/clk/ti/clk-am3-dpll-x2.c +++ b/drivers/clk/ti/clk-am3-dpll-x2.c @@ -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> diff --git a/drivers/clk/ti/clk-am3-dpll.c b/drivers/clk/ti/clk-am3-dpll.c index 398a011a5cea..21ec01f8dd9a 100644 --- a/drivers/clk/ti/clk-am3-dpll.c +++ b/drivers/clk/ti/clk-am3-dpll.c @@ -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> diff --git a/drivers/clk/ti/clk-ctrl.c b/drivers/clk/ti/clk-ctrl.c index 8926e57ebc84..c5c97dc35c4d 100644 --- a/drivers/clk/ti/clk-ctrl.c +++ b/drivers/clk/ti/clk-ctrl.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-divider.c b/drivers/clk/ti/clk-divider.c index 15941f17811a..40a742d7fdc4 100644 --- a/drivers/clk/ti/clk-divider.c +++ b/drivers/clk/ti/clk-divider.c @@ -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> diff --git a/drivers/clk/ti/clk-gate.c b/drivers/clk/ti/clk-gate.c index eb15f6243f20..873ceb8a2ab7 100644 --- a/drivers/clk/ti/clk-gate.c +++ b/drivers/clk/ti/clk-gate.c @@ -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> diff --git a/drivers/clk/ti/clk-k3-pll.c b/drivers/clk/ti/clk-k3-pll.c index 8323e6e6919c..b3a1b4cedb78 100644 --- a/drivers/clk/ti/clk-k3-pll.c +++ b/drivers/clk/ti/clk-k3-pll.c @@ -6,7 +6,6 @@ * Tero Kristo t-kristo@ti.com */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-k3.c b/drivers/clk/ti/clk-k3.c index 7aa162c2f702..41e5022ea0cd 100644 --- a/drivers/clk/ti/clk-k3.c +++ b/drivers/clk/ti/clk-k3.c @@ -6,7 +6,6 @@ * Tero Kristo t-kristo@ti.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <soc.h> diff --git a/drivers/clk/ti/clk-mux.c b/drivers/clk/ti/clk-mux.c index 215241b16135..db5393414318 100644 --- a/drivers/clk/ti/clk-mux.c +++ b/drivers/clk/ti/clk-mux.c @@ -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> diff --git a/drivers/clk/ti/clk-sci.c b/drivers/clk/ti/clk-sci.c index 9e5760d33544..e374bd3bcc20 100644 --- a/drivers/clk/ti/clk-sci.c +++ b/drivers/clk/ti/clk-sci.c @@ -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> diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 6e5cc90f0f8c..28cd15128819 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <regmap.h> diff --git a/drivers/clk/ti/omap4-cm.c b/drivers/clk/ti/omap4-cm.c index 3cdc9b28887d..a30ce9d09d27 100644 --- a/drivers/clk/ti/omap4-cm.c +++ b/drivers/clk/ti/omap4-cm.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <dm.h> #include <dm/lists.h>
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index c31e59641d93..33369c93916b 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

On 02.05.24 03:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Lukasz Majewski lukma@denx.de Cc: Sean Anderson seanga2@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Mario Six mario.six@gdsys.cc Cc: Stefan Roese sr@denx.de Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Francois Berder fberder@outlook.fr Cc: Johan Jonker jbx6244@gmail.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Chanho Park chanho61.park@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Konrad Dybcio konrad.dybcio@linaro.org Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Torsten Duwe duwe@suse.de Cc: Hal Feng hal.feng@starfivetech.com Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Xingyu Wu xingyu.wu@starfivetech.com Cc: Hoegeun Kwon hoegeun.kwon@samsung.com Cc: Vishal Mahaveer vishalm@ti.com Cc: Nishanth Menon nm@ti.com Cc: Bryan Brattlof bb@ti.com Cc: Hari Nagalla hnagalla@ti.com Cc: Apurva Nandan a-nandan@ti.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Udit Kumar u-kumar1@ti.com
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(-)
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index cca6d6741221..bdc7be0fb5d3 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -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> diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 578597a16e81..1840f73beeec 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c index 9bbe2cd0ca70..b75f52d203b2 100644 --- a/drivers/clk/altera/clk-mem-n5x.c +++ b/drivers/clk/altera/clk-mem-n5x.c @@ -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> diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c index 3fa19e05c47e..3e256101a947 100644 --- a/drivers/clk/altera/clk-n5x.c +++ b/drivers/clk/altera/clk-n5x.c @@ -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> diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index dc446ce9fb7d..a330dcda4dcb 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index a15909329bbd..535010b79414 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -3,7 +3,6 @@
- Copyright (C) ASPEED Technology Inc.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/clk/at91/clk-generic.c b/drivers/clk/at91/clk-generic.c index 87738b7b5bff..c410cd2b5052 100644 --- a/drivers/clk/at91/clk-generic.c +++ b/drivers/clk/at91/clk-generic.c @@ -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> diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 025c7a7aa26d..09daae97676d 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -10,7 +10,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-master.c b/drivers/clk/at91/clk-master.c index aec0bca7b3cb..d28775d64d33 100644 --- a/drivers/clk/at91/clk-master.c +++ b/drivers/clk/at91/clk-master.c @@ -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> diff --git a/drivers/clk/at91/clk-peripheral.c b/drivers/clk/at91/clk-peripheral.c index 52cbc520cef4..08d7e7dddc9e 100644 --- a/drivers/clk/at91/clk-peripheral.c +++ b/drivers/clk/at91/clk-peripheral.c @@ -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> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c index 868de4b1774b..d0b14656c4d6 100644 --- a/drivers/clk/at91/clk-programmable.c +++ b/drivers/clk/at91/clk-programmable.c @@ -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> diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c index 383f79cfbaf5..a30035eb8ce9 100644 --- a/drivers/clk/at91/clk-sam9x60-pll.c +++ b/drivers/clk/at91/clk-sam9x60-pll.c @@ -11,7 +11,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 82f79e74a190..3545b0b24bd7 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -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> diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c index 7c8bcfb51dba..84784ae41ce8 100644 --- a/drivers/clk/at91/clk-utmi.c +++ b/drivers/clk/at91/clk-utmi.c @@ -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> diff --git a/drivers/clk/at91/compat.c b/drivers/clk/at91/compat.c index ee67093c6073..1d738f160b6e 100644 --- a/drivers/clk/at91/compat.c +++ b/drivers/clk/at91/compat.c @@ -6,7 +6,7 @@
- Author: Claudiu Beznea claudiu.beznea@microchip.com
*/ -#include <common.h> +#include <config.h> #include <clk-uclass.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 87d2069d89ce..aa4bc8fa47ad 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <asm/io.h> #include <clk-uclass.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index d858c860f696..b7d64bdbb3d4 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -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> diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 3e62fb1f58d3..63b2c6474679 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -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> diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 43136ab2e349..6d6f12578db7 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -7,7 +7,6 @@
- Author: Claudiu Beznea claudiu.beznea@microchip.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c index b8700f517fc9..e5f74e714d54 100644 --- a/drivers/clk/clk-cdce9xx.c +++ b/drivers/clk/clk-cdce9xx.c @@ -8,7 +8,6 @@
- Based on Linux kernel clk-cdce925.c.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index d2e5a1ae401d..199ca6eaa370 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2ad682b8fe2c..aa210e3d15fd 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 2a446788e191..068798cf9b05 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index cfd90b717e73..bf1c6a93b468 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <log.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 85074f1b86e8..53655059279e 100644 --- a/drivers/clk/clk-hsdk-cgu.c +++ b/drivers/clk/clk-hsdk-cgu.c @@ -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> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index f410518461e9..39e01c3fbc61 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -23,7 +23,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index ed6e60bc4841..4c832f1a5307 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index a10a843f11f9..4a3f50c638b1 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -7,7 +7,6 @@
- Author: Zhengxun Li zhengxunli@mxic.com.tw
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 6ede1b4d4dcc..b8c2e8d531b9 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c index 8c22ed2f43d4..0b41872b7192 100644 --- a/drivers/clk/clk_bcm6345.c +++ b/drivers/clk/clk_bcm6345.c @@ -6,7 +6,6 @@
- Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c index 4bcf91175512..030ff7cc58ec 100644 --- a/drivers/clk/clk_boston.c +++ b/drivers/clk/clk_boston.c @@ -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> diff --git a/drivers/clk/clk_fixed_factor.c b/drivers/clk/clk_fixed_factor.c index 6c1139e5c519..1d740cf49f62 100644 --- a/drivers/clk/clk_fixed_factor.c +++ b/drivers/clk/clk_fixed_factor.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index b5e78c70559e..d1da05cc18a5 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c index 7432ae8f0642..d1a6cde8f0f8 100644 --- a/drivers/clk/clk_k210.c +++ b/drivers/clk/clk_k210.c @@ -4,7 +4,6 @@ */ #define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index a77d0e7419c9..885aa8345165 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c index 73d943f9e092..8dd77f18d901 100644 --- a/drivers/clk/clk_sandbox.c +++ b/drivers/clk/clk_sandbox.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c index 38184e27aa4f..f96a15c30b3a 100644 --- a/drivers/clk/clk_sandbox_ccf.c +++ b/drivers/clk/clk_sandbox_ccf.c @@ -6,7 +6,6 @@
- Common Clock Framework [CCF] driver for Sandbox
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c index c224dc1d2cb9..87350212775c 100644 --- a/drivers/clk/clk_sandbox_test.c +++ b/drivers/clk/clk_sandbox_test.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index 34a49363a51a..e42d2032d45e 100644 --- a/drivers/clk/clk_scmi.c +++ b/drivers/clk/clk_scmi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <scmi_agent.h> diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c index bbe722560329..9ccaf13d2420 100644 --- a/drivers/clk/clk_versaclock.c +++ b/drivers/clk/clk_versaclock.c @@ -5,7 +5,6 @@
- Derived from code Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index 42ab032bf7e7..35ee56d0693d 100644 --- a/drivers/clk/clk_versal.c +++ b/drivers/clk/clk_versal.c @@ -4,7 +4,6 @@
- Siva Durga Prasad Paladugu siva.durga.prasad.paladugu@amd.com>
*/
-#include <common.h> #include <log.h> #include <asm/cache.h> #include <asm/ptrace.h> diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c index 3b1e0208d47e..2e0e7bbe68ff 100644 --- a/drivers/clk/clk_vexpress_osc.c +++ b/drivers/clk/clk_vexpress_osc.c @@ -5,7 +5,6 @@
*/ #define DEBUG -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c index e3cefe2e0c72..b62b4646f4e5 100644 --- a/drivers/clk/clk_zynq.c +++ b/drivers/clk/clk_zynq.c @@ -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> diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index e23f7da3f929..599992661484 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -5,7 +5,6 @@
- Copyright (C) 2016 Xilinx, Inc.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <dm/device_compat.h> diff --git a/drivers/clk/exynos/clk-exynos7420.c b/drivers/clk/exynos/clk-exynos7420.c index 9caa932e12fb..3aa751bf4e42 100644 --- a/drivers/clk/exynos/clk-exynos7420.c +++ b/drivers/clk/exynos/clk-exynos7420.c @@ -5,7 +5,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c index 33fb6ed0c7a4..9c61a84ea61f 100644 --- a/drivers/clk/ics8n3qv01.c +++ b/drivers/clk/ics8n3qv01.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <i2c.h> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c index 494156751dae..45f1bcaea288 100644 --- a/drivers/clk/imx/clk-composite-8m.c +++ b/drivers/clk/imx/clk-composite-8m.c @@ -3,7 +3,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers/clk/imx/clk-composite-93.c index 6d71c0c03ffe..2cf20be2ccae 100644 --- a/drivers/clk/imx/clk-composite-93.c +++ b/drivers/clk/imx/clk-composite-93.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/ -#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 9228f279e27d..8f42a5cb1b72 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -3,7 +3,6 @@
- Copyright 2021 NXP
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate-93.c b/drivers/clk/imx/clk-gate-93.c index bc8574137137..d7f2640fbb7c 100644 --- a/drivers/clk/imx/clk-gate-93.c +++ b/drivers/clk/imx/clk-gate-93.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index da2723023778..65fa6b5b139f 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -14,7 +14,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 67825af89b81..ba9923d8f6fa 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c index d39b87b2e245..96cf5fece75f 100644 --- a/drivers/clk/imx/clk-imx8.c +++ b/drivers/clk/imx/clk-imx8.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 1a00dd1d287b..70e2e53bdea5 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 457acb8a401e..ed9e16d7c180 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 7dfc829df2c4..1f498b6ba4ea 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index cf197df96dbb..ed4acd79ef74 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c index 01e33de9d63f..62fed7e3e32c 100644 --- a/drivers/clk/imx/clk-imx8qm.c +++ b/drivers/clk/imx/clk-imx8qm.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index d900d4cd5286..18bdc08971bf 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index f0cb797d9750..ede36c412bff 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -3,7 +3,6 @@
- Copyright 2021 NXP.
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c index dc91ac5adbf1..c80b02975aad 100644 --- a/drivers/clk/imx/clk-imxrt1020.c +++ b/drivers/clk/imx/clk-imxrt1020.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index d40635d17a4a..754f39484275 100644 --- a/drivers/clk/imx/clk-imxrt1050.c +++ b/drivers/clk/imx/clk-imxrt1050.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1170.c b/drivers/clk/imx/clk-imxrt1170.c index 077dd1bf02d3..20b9dc315001 100644 --- a/drivers/clk/imx/clk-imxrt1170.c +++ b/drivers/clk/imx/clk-imxrt1170.c @@ -4,7 +4,6 @@
- Author(s): Jesse Taube Mr.Bossman075@gmail.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index b8be3167c4cd..378cdff072fe 100644 --- a/drivers/clk/imx/clk-pfd.c +++ b/drivers/clk/imx/clk-pfd.c @@ -14,7 +14,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index 1cb685ee9abd..3911e0339056 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index fad306aeed23..c6692f2f9f5a 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <asm/io.h> #include <div64.h> #include <malloc.h> diff --git a/drivers/clk/intel/clk_intel.c b/drivers/clk/intel/clk_intel.c index 46ccbb1d834d..a677a7caac7c 100644 --- a/drivers/clk/intel/clk_intel.c +++ b/drivers/clk/intel/clk_intel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <dt-bindings/clock/intel-clock.h> diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 259ea335959c..2beb63030f22 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c index 0c7411ee814d..5072c9983c11 100644 --- a/drivers/clk/mediatek/clk-mt7623.c +++ b/drivers/clk/mediatek/clk-mt7623.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index 31b6fa02251a..0c796a1788aa 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk-mt8183.c index 17e653a1f00a..9612a62e56a7 100644 --- a/drivers/clk/mediatek/clk-mt8183.c +++ b/drivers/clk/mediatek/clk-mt8183.c @@ -8,7 +8,6 @@
- Author: Weiyi Lu weiyi.lu@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8183-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8512.c b/drivers/clk/mediatek/clk-mt8512.c index 193e069cb053..ab2706734428 100644 --- a/drivers/clk/mediatek/clk-mt8512.c +++ b/drivers/clk/mediatek/clk-mt8512.c @@ -6,7 +6,6 @@
- Author: Chen Zhong chen.zhong@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8512-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c index 29f70620e09d..623f88499f1b 100644 --- a/drivers/clk/mediatek/clk-mt8516.c +++ b/drivers/clk/mediatek/clk-mt8516.c @@ -6,7 +6,6 @@
- Author: Fabien Parent fparent@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8516-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8518.c b/drivers/clk/mediatek/clk-mt8518.c index 238651483726..ba8cc584d46f 100644 --- a/drivers/clk/mediatek/clk-mt8518.c +++ b/drivers/clk/mediatek/clk-mt8518.c @@ -6,7 +6,6 @@
- Author: Chen Zhong chen.zhong@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8518-clk.h> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 4303300d3a8d..d2c45be30dec 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index 5220a337a8bb..a1b8d7914910 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -4,7 +4,6 @@
- Author: Igor Prusov ivprusov@salutedevices.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/clk/meson/axg-ao.c b/drivers/clk/meson/axg-ao.c index 311ffc1cca9a..6ccf52127b02 100644 --- a/drivers/clk/meson/axg-ao.c +++ b/drivers/clk/meson/axg-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index d6da59d269b0..c421a622a587 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-axg.h> #include <asm/io.h> diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 1a855a68966e..61d489c6e1c8 100644 --- a/drivers/clk/meson/g12a-ao.c +++ b/drivers/clk/meson/g12a-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index e4fed8ddfb27..5d7faaa3eabf 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-g12a.h> #include <asm/io.h> diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index e379540deee7..72ad4fd0e85f 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-gx.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk.c b/drivers/clk/microchip/mpfs_clk.c index 08f8bfcecbed..0a82777ff74d 100644 --- a/drivers/clk/microchip/mpfs_clk.c +++ b/drivers/clk/microchip/mpfs_clk.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/microchip/mpfs_clk_cfg.c b/drivers/clk/microchip/mpfs_clk_cfg.c index 5739fd66e8df..5e8fb9952895 100644 --- a/drivers/clk/microchip/mpfs_clk_cfg.c +++ b/drivers/clk/microchip/mpfs_clk_cfg.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_msspll.c b/drivers/clk/microchip/mpfs_clk_msspll.c index f37c0d86047c..d0e7b1ff844f 100644 --- a/drivers/clk/microchip/mpfs_clk_msspll.c +++ b/drivers/clk/microchip/mpfs_clk_msspll.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2022 Microchip Technology Inc.
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_periph.c b/drivers/clk/microchip/mpfs_clk_periph.c index ddeccb914575..41c6df4fb979 100644 --- a/drivers/clk/microchip/mpfs_clk_periph.c +++ b/drivers/clk/microchip/mpfs_clk_periph.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index cc734450ef00..a29ad0d7a68d 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <clk-uclass.h> #include <clock_legacy.h> #include <command.h> diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c index 4d3ac847d1d5..2e263fb2cd28 100644 --- a/drivers/clk/mtmips/clk-mt7628.c +++ b/drivers/clk/mtmips/clk-mt7628.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clock/mt7628-clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index f5c9bd735c13..30330393f760 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -8,7 +8,6 @@
- Gregory CLEMENT gregory.clement@free-electrons.com
*/
-#include <common.h> #include <malloc.h> #include <clk-uclass.h> #include <clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index 846a73cd6b36..c1bab84c070e 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -8,7 +8,6 @@
- Gregory CLEMENT gregory.clement@free-electrons.com
*/
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c index 678fdd5a4540..513112c1146c 100644 --- a/drivers/clk/owl/clk_owl.c +++ b/drivers/clk/owl/clk_owl.c @@ -6,7 +6,6 @@
- Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org
*/
-#include <common.h> #include <dm.h> #include "clk_owl.h" #include <asm/io.h> diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c index d3b63b9c1ac5..41fe4d896a7c 100644 --- a/drivers/clk/qcom/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -7,7 +7,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c index 479f9771a464..c77d69128b00 100644 --- a/drivers/clk/qcom/clock-apq8096.c +++ b/drivers/clk/qcom/clock-apq8096.c @@ -7,7 +7,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-ipq4019.c b/drivers/clk/qcom/clock-ipq4019.c index 72f235eab212..0e6d93b3d7c2 100644 --- a/drivers/clk/qcom/clock-ipq4019.c +++ b/drivers/clk/qcom/clock-ipq4019.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcom.c b/drivers/clk/qcom/clock-qcom.c index 05e5ab7d094b..3a9cf2a231f2 100644 --- a/drivers/clk/qcom/clock-qcom.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcs404.c b/drivers/clk/qcom/clock-qcs404.c index 8a897a52bc00..70a1f648e585 100644 --- a/drivers/clk/qcom/clock-qcs404.c +++ b/drivers/clk/qcom/clock-qcs404.c @@ -5,7 +5,6 @@
- (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index 782df7da8444..f41f8c9e8dee 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -8,7 +8,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/delay.h> diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c index 66f8bb166955..44c6f14618d2 100644 --- a/drivers/clk/rockchip/clk_pll.c +++ b/drivers/clk/rockchip/clk_pll.c @@ -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>
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index 2875c152b20d..d7825c66493e 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c index 6238b14c29e1..274428f2b4bd 100644 --- a/drivers/clk/rockchip/clk_rk3036.c +++ b/drivers/clk/rockchip/clk_rk3036.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index f83335df6db6..f7dea7859f74 100644 --- a/drivers/clk/rockchip/clk_rk3066.c +++ b/drivers/clk/rockchip/clk_rk3066.c @@ -5,7 +5,6 @@ */
#include <bitfield.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c index 182754e7052d..a07285593b55 100644 --- a/drivers/clk/rockchip/clk_rk3128.c +++ b/drivers/clk/rockchip/clk_rk3128.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c index f98b46a0f73b..f569a100f22b 100644 --- a/drivers/clk/rockchip/clk_rk3188.c +++ b/drivers/clk/rockchip/clk_rk3188.c @@ -4,7 +4,6 @@
- (C) Copyright 2016 Heiko Stuebner heiko@sntech.de
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 9371c4f63a48..9b71fd863bad 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 0b7eefad15f1..432a79291c8a 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index 861648321d40..e73bb6790af2 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 87075ec71340..4b94d6364d13 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 1c5dfaa3800b..d89439805215 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 80f65a237e8e..cc414c38432c 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index 24eeca8bf265..35563509d617 100644 --- a/drivers/clk/rockchip/clk_rk3568.c +++ b/drivers/clk/rockchip/clk_rk3568.c @@ -4,7 +4,6 @@
- Author: Elaine Zhang zhangqing@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index 4c611a390499..ceae08a19aa5 100644 --- a/drivers/clk/rockchip/clk_rk3588.c +++ b/drivers/clk/rockchip/clk_rk3588.c @@ -4,7 +4,6 @@
- Author: Elaine Zhang zhangqing@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index fc442f7eebe2..75202a66aa68 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -4,7 +4,6 @@
- Author: Andy Yan andy.yan@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1126.c b/drivers/clk/rockchip/clk_rv1126.c index cfdfcbdb0f4c..aeeea9569147 100644 --- a/drivers/clk/rockchip/clk_rv1126.c +++ b/drivers/clk/rockchip/clk_rv1126.c @@ -5,7 +5,6 @@
- Author: Finley Xiao finley.xiao@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index c8fb60029070..5ea860628006 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -22,7 +22,6 @@
*/
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/starfive/clk-jh7110-pll.c b/drivers/clk/starfive/clk-jh7110-pll.c index 1568a1f4cd91..581035842fc3 100644 --- a/drivers/clk/starfive/clk-jh7110-pll.c +++ b/drivers/clk/starfive/clk-jh7110-pll.c @@ -6,7 +6,6 @@
Xingyu Wu <xingyu.wu@starfivetech.com>
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index a38694809a00..191da75d7ba2 100644 --- a/drivers/clk/starfive/clk-jh7110.c +++ b/drivers/clk/starfive/clk-jh7110.c @@ -6,7 +6,6 @@
Xingyu Wu <xingyu.wu@starfivetech.com>
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32-core.c b/drivers/clk/stm32/clk-stm32-core.c index 37e996e78f96..cad07cc952e7 100644 --- a/drivers/clk/stm32/clk-stm32-core.c +++ b/drivers/clk/stm32/clk-stm32-core.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32f.c b/drivers/clk/stm32/clk-stm32f.c index d68c75ed2013..fceb3c44b94e 100644 --- a/drivers/clk/stm32/clk-stm32f.c +++ b/drivers/clk/stm32/clk-stm32f.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32h7.c b/drivers/clk/stm32/clk-stm32h7.c index d440c28eb485..a554eda504de 100644 --- a/drivers/clk/stm32/clk-stm32h7.c +++ b/drivers/clk/stm32/clk-stm32h7.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32mp1.c b/drivers/clk/stm32/clk-stm32mp1.c index 6f000c8e4448..204ac170531d 100644 --- a/drivers/clk/stm32/clk-stm32mp1.c +++ b/drivers/clk/stm32/clk-stm32mp1.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32mp13.c b/drivers/clk/stm32/clk-stm32mp13.c index 5174ae53a1a2..362dba102521 100644 --- a/drivers/clk/stm32/clk-stm32mp13.c +++ b/drivers/clk/stm32/clk-stm32mp13.c @@ -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> diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c index f27306fe33b3..19fe248044b4 100644 --- a/drivers/clk/sunxi/clk_a10.c +++ b/drivers/clk/sunxi/clk_a10.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c index 16ac589bb2bf..f771369c9423 100644 --- a/drivers/clk/sunxi/clk_a10s.c +++ b/drivers/clk/sunxi/clk_a10s.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c index 45d5ba75bf51..fdee4347e991 100644 --- a/drivers/clk/sunxi/clk_a23.c +++ b/drivers/clk/sunxi/clk_a23.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c index 6ca800050ed0..04f76a7c2a38 100644 --- a/drivers/clk/sunxi/clk_a31.c +++ b/drivers/clk/sunxi/clk_a31.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index fd26cd4f5d66..f1b01d25ddd4 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c index c5834f44103f..6751af8a8031 100644 --- a/drivers/clk/sunxi/clk_a80.c +++ b/drivers/clk/sunxi/clk_a80.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c index 760d98cd620c..d8621a3e64cc 100644 --- a/drivers/clk/sunxi/clk_a83t.c +++ b/drivers/clk/sunxi/clk_a83t.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index 9dae761de83c..b990a1185948 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk/sunxi/clk_d1.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 Samuel Holland samuel@sholland.org
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_f1c100s.c b/drivers/clk/sunxi/clk_f1c100s.c index 7b4c3ce51765..e22956992014 100644 --- a/drivers/clk/sunxi/clk_f1c100s.c +++ b/drivers/clk/sunxi/clk_f1c100s.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 George Hilliard thirtythreeforty@gmail.com.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index 32bc95fccca4..ce55caeb1573 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 071fd581003d..1b7bd9dea2f8 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h616.c b/drivers/clk/sunxi/clk_h616.c index 113dcff28515..b1e999e18c14 100644 --- a/drivers/clk/sunxi/clk_h616.c +++ b/drivers/clk/sunxi/clk_h616.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 0fef6f3566d5..721debdae238 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c index 1782cffc404a..2ef4f45dacf5 100644 --- a/drivers/clk/sunxi/clk_sunxi.c +++ b/drivers/clk/sunxi/clk_sunxi.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c index 6524c13540e0..85410e282e85 100644 --- a/drivers/clk/sunxi/clk_v3s.c +++ b/drivers/clk/sunxi/clk_v3s.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c index c5214b9b3e2e..1d61f8dc378d 100644 --- a/drivers/clk/tegra/tegra-car-clk.c +++ b/drivers/clk/tegra/tegra-car-clk.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/tegra/tegra186-clk.c b/drivers/clk/tegra/tegra186-clk.c index 5a98a3f3f0e6..ec52326c3b36 100644 --- a/drivers/clk/tegra/tegra186-clk.c +++ b/drivers/clk/tegra/tegra186-clk.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/ti/clk-am3-dpll-x2.c b/drivers/clk/ti/clk-am3-dpll-x2.c index 3cf279d6a3a9..1b0b9818cdd4 100644 --- a/drivers/clk/ti/clk-am3-dpll-x2.c +++ b/drivers/clk/ti/clk-am3-dpll-x2.c @@ -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> diff --git a/drivers/clk/ti/clk-am3-dpll.c b/drivers/clk/ti/clk-am3-dpll.c index 398a011a5cea..21ec01f8dd9a 100644 --- a/drivers/clk/ti/clk-am3-dpll.c +++ b/drivers/clk/ti/clk-am3-dpll.c @@ -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> diff --git a/drivers/clk/ti/clk-ctrl.c b/drivers/clk/ti/clk-ctrl.c index 8926e57ebc84..c5c97dc35c4d 100644 --- a/drivers/clk/ti/clk-ctrl.c +++ b/drivers/clk/ti/clk-ctrl.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-divider.c b/drivers/clk/ti/clk-divider.c index 15941f17811a..40a742d7fdc4 100644 --- a/drivers/clk/ti/clk-divider.c +++ b/drivers/clk/ti/clk-divider.c @@ -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> diff --git a/drivers/clk/ti/clk-gate.c b/drivers/clk/ti/clk-gate.c index eb15f6243f20..873ceb8a2ab7 100644 --- a/drivers/clk/ti/clk-gate.c +++ b/drivers/clk/ti/clk-gate.c @@ -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> diff --git a/drivers/clk/ti/clk-k3-pll.c b/drivers/clk/ti/clk-k3-pll.c index 8323e6e6919c..b3a1b4cedb78 100644 --- a/drivers/clk/ti/clk-k3-pll.c +++ b/drivers/clk/ti/clk-k3-pll.c @@ -6,7 +6,6 @@
- Tero Kristo t-kristo@ti.com
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-k3.c b/drivers/clk/ti/clk-k3.c index 7aa162c2f702..41e5022ea0cd 100644 --- a/drivers/clk/ti/clk-k3.c +++ b/drivers/clk/ti/clk-k3.c @@ -6,7 +6,6 @@
- Tero Kristo t-kristo@ti.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <soc.h> diff --git a/drivers/clk/ti/clk-mux.c b/drivers/clk/ti/clk-mux.c index 215241b16135..db5393414318 100644 --- a/drivers/clk/ti/clk-mux.c +++ b/drivers/clk/ti/clk-mux.c @@ -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> diff --git a/drivers/clk/ti/clk-sci.c b/drivers/clk/ti/clk-sci.c index 9e5760d33544..e374bd3bcc20 100644 --- a/drivers/clk/ti/clk-sci.c +++ b/drivers/clk/ti/clk-sci.c @@ -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> diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 6e5cc90f0f8c..28cd15128819 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <regmap.h> diff --git a/drivers/clk/ti/omap4-cm.c b/drivers/clk/ti/omap4-cm.c index 3cdc9b28887d..a30ce9d09d27 100644 --- a/drivers/clk/ti/omap4-cm.c +++ b/drivers/clk/ti/omap4-cm.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h>
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index c31e59641d93..33369c93916b 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

On 2024/5/2 09:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Lukasz Majewski lukma@denx.de Cc: Sean Anderson seanga2@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Mario Six mario.six@gdsys.cc Cc: Stefan Roese sr@denx.de Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Francois Berder fberder@outlook.fr Cc: Johan Jonker jbx6244@gmail.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Chanho Park chanho61.park@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Konrad Dybcio konrad.dybcio@linaro.org Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Torsten Duwe duwe@suse.de Cc: Hal Feng hal.feng@starfivetech.com Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Xingyu Wu xingyu.wu@starfivetech.com Cc: Hoegeun Kwon hoegeun.kwon@samsung.com Cc: Vishal Mahaveer vishalm@ti.com Cc: Nishanth Menon nm@ti.com Cc: Bryan Brattlof bb@ti.com Cc: Hari Nagalla hnagalla@ti.com Cc: Apurva Nandan a-nandan@ti.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Udit Kumar u-kumar1@ti.com
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(-)
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index cca6d6741221..bdc7be0fb5d3 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -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> diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 578597a16e81..1840f73beeec 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c index 9bbe2cd0ca70..b75f52d203b2 100644 --- a/drivers/clk/altera/clk-mem-n5x.c +++ b/drivers/clk/altera/clk-mem-n5x.c @@ -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> diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c index 3fa19e05c47e..3e256101a947 100644 --- a/drivers/clk/altera/clk-n5x.c +++ b/drivers/clk/altera/clk-n5x.c @@ -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> diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index dc446ce9fb7d..a330dcda4dcb 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index a15909329bbd..535010b79414 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -3,7 +3,6 @@
- Copyright (C) ASPEED Technology Inc.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/clk/at91/clk-generic.c b/drivers/clk/at91/clk-generic.c index 87738b7b5bff..c410cd2b5052 100644 --- a/drivers/clk/at91/clk-generic.c +++ b/drivers/clk/at91/clk-generic.c @@ -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> diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 025c7a7aa26d..09daae97676d 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -10,7 +10,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-master.c b/drivers/clk/at91/clk-master.c index aec0bca7b3cb..d28775d64d33 100644 --- a/drivers/clk/at91/clk-master.c +++ b/drivers/clk/at91/clk-master.c @@ -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> diff --git a/drivers/clk/at91/clk-peripheral.c b/drivers/clk/at91/clk-peripheral.c index 52cbc520cef4..08d7e7dddc9e 100644 --- a/drivers/clk/at91/clk-peripheral.c +++ b/drivers/clk/at91/clk-peripheral.c @@ -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> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c index 868de4b1774b..d0b14656c4d6 100644 --- a/drivers/clk/at91/clk-programmable.c +++ b/drivers/clk/at91/clk-programmable.c @@ -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> diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c index 383f79cfbaf5..a30035eb8ce9 100644 --- a/drivers/clk/at91/clk-sam9x60-pll.c +++ b/drivers/clk/at91/clk-sam9x60-pll.c @@ -11,7 +11,6 @@ */
#include <asm/processor.h> -#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 82f79e74a190..3545b0b24bd7 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -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> diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c index 7c8bcfb51dba..84784ae41ce8 100644 --- a/drivers/clk/at91/clk-utmi.c +++ b/drivers/clk/at91/clk-utmi.c @@ -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> diff --git a/drivers/clk/at91/compat.c b/drivers/clk/at91/compat.c index ee67093c6073..1d738f160b6e 100644 --- a/drivers/clk/at91/compat.c +++ b/drivers/clk/at91/compat.c @@ -6,7 +6,7 @@
- Author: Claudiu Beznea claudiu.beznea@microchip.com
*/ -#include <common.h> +#include <config.h> #include <clk-uclass.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 87d2069d89ce..aa4bc8fa47ad 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <asm/io.h> #include <clk-uclass.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index d858c860f696..b7d64bdbb3d4 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -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> diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 3e62fb1f58d3..63b2c6474679 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -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> diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 43136ab2e349..6d6f12578db7 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -7,7 +7,6 @@
- Author: Claudiu Beznea claudiu.beznea@microchip.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c index b8700f517fc9..e5f74e714d54 100644 --- a/drivers/clk/clk-cdce9xx.c +++ b/drivers/clk/clk-cdce9xx.c @@ -8,7 +8,6 @@
- Based on Linux kernel clk-cdce925.c.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index d2e5a1ae401d..199ca6eaa370 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2ad682b8fe2c..aa210e3d15fd 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 2a446788e191..068798cf9b05 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index cfd90b717e73..bf1c6a93b468 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <log.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 85074f1b86e8..53655059279e 100644 --- a/drivers/clk/clk-hsdk-cgu.c +++ b/drivers/clk/clk-hsdk-cgu.c @@ -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> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index f410518461e9..39e01c3fbc61 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -23,7 +23,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index ed6e60bc4841..4c832f1a5307 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index a10a843f11f9..4a3f50c638b1 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -7,7 +7,6 @@
- Author: Zhengxun Li zhengxunli@mxic.com.tw
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 6ede1b4d4dcc..b8c2e8d531b9 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c index 8c22ed2f43d4..0b41872b7192 100644 --- a/drivers/clk/clk_bcm6345.c +++ b/drivers/clk/clk_bcm6345.c @@ -6,7 +6,6 @@
- Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c index 4bcf91175512..030ff7cc58ec 100644 --- a/drivers/clk/clk_boston.c +++ b/drivers/clk/clk_boston.c @@ -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> diff --git a/drivers/clk/clk_fixed_factor.c b/drivers/clk/clk_fixed_factor.c index 6c1139e5c519..1d740cf49f62 100644 --- a/drivers/clk/clk_fixed_factor.c +++ b/drivers/clk/clk_fixed_factor.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index b5e78c70559e..d1da05cc18a5 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c index 7432ae8f0642..d1a6cde8f0f8 100644 --- a/drivers/clk/clk_k210.c +++ b/drivers/clk/clk_k210.c @@ -4,7 +4,6 @@ */ #define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index a77d0e7419c9..885aa8345165 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c index 73d943f9e092..8dd77f18d901 100644 --- a/drivers/clk/clk_sandbox.c +++ b/drivers/clk/clk_sandbox.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c index 38184e27aa4f..f96a15c30b3a 100644 --- a/drivers/clk/clk_sandbox_ccf.c +++ b/drivers/clk/clk_sandbox_ccf.c @@ -6,7 +6,6 @@
- Common Clock Framework [CCF] driver for Sandbox
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c index c224dc1d2cb9..87350212775c 100644 --- a/drivers/clk/clk_sandbox_test.c +++ b/drivers/clk/clk_sandbox_test.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index 34a49363a51a..e42d2032d45e 100644 --- a/drivers/clk/clk_scmi.c +++ b/drivers/clk/clk_scmi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <scmi_agent.h> diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c index bbe722560329..9ccaf13d2420 100644 --- a/drivers/clk/clk_versaclock.c +++ b/drivers/clk/clk_versaclock.c @@ -5,7 +5,6 @@
- Derived from code Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index 42ab032bf7e7..35ee56d0693d 100644 --- a/drivers/clk/clk_versal.c +++ b/drivers/clk/clk_versal.c @@ -4,7 +4,6 @@
- Siva Durga Prasad Paladugu siva.durga.prasad.paladugu@amd.com>
*/
-#include <common.h> #include <log.h> #include <asm/cache.h> #include <asm/ptrace.h> diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c index 3b1e0208d47e..2e0e7bbe68ff 100644 --- a/drivers/clk/clk_vexpress_osc.c +++ b/drivers/clk/clk_vexpress_osc.c @@ -5,7 +5,6 @@
*/ #define DEBUG -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c index e3cefe2e0c72..b62b4646f4e5 100644 --- a/drivers/clk/clk_zynq.c +++ b/drivers/clk/clk_zynq.c @@ -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> diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index e23f7da3f929..599992661484 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -5,7 +5,6 @@
- Copyright (C) 2016 Xilinx, Inc.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <dm/device_compat.h> diff --git a/drivers/clk/exynos/clk-exynos7420.c b/drivers/clk/exynos/clk-exynos7420.c index 9caa932e12fb..3aa751bf4e42 100644 --- a/drivers/clk/exynos/clk-exynos7420.c +++ b/drivers/clk/exynos/clk-exynos7420.c @@ -5,7 +5,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c index 33fb6ed0c7a4..9c61a84ea61f 100644 --- a/drivers/clk/ics8n3qv01.c +++ b/drivers/clk/ics8n3qv01.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <i2c.h> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c index 494156751dae..45f1bcaea288 100644 --- a/drivers/clk/imx/clk-composite-8m.c +++ b/drivers/clk/imx/clk-composite-8m.c @@ -3,7 +3,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers/clk/imx/clk-composite-93.c index 6d71c0c03ffe..2cf20be2ccae 100644 --- a/drivers/clk/imx/clk-composite-93.c +++ b/drivers/clk/imx/clk-composite-93.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/ -#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 9228f279e27d..8f42a5cb1b72 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -3,7 +3,6 @@
- Copyright 2021 NXP
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate-93.c b/drivers/clk/imx/clk-gate-93.c index bc8574137137..d7f2640fbb7c 100644 --- a/drivers/clk/imx/clk-gate-93.c +++ b/drivers/clk/imx/clk-gate-93.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index da2723023778..65fa6b5b139f 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -14,7 +14,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 67825af89b81..ba9923d8f6fa 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c index d39b87b2e245..96cf5fece75f 100644 --- a/drivers/clk/imx/clk-imx8.c +++ b/drivers/clk/imx/clk-imx8.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 1a00dd1d287b..70e2e53bdea5 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 457acb8a401e..ed9e16d7c180 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 7dfc829df2c4..1f498b6ba4ea 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index cf197df96dbb..ed4acd79ef74 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c index 01e33de9d63f..62fed7e3e32c 100644 --- a/drivers/clk/imx/clk-imx8qm.c +++ b/drivers/clk/imx/clk-imx8qm.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index d900d4cd5286..18bdc08971bf 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -4,7 +4,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index f0cb797d9750..ede36c412bff 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -3,7 +3,6 @@
- Copyright 2021 NXP.
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c index dc91ac5adbf1..c80b02975aad 100644 --- a/drivers/clk/imx/clk-imxrt1020.c +++ b/drivers/clk/imx/clk-imxrt1020.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index d40635d17a4a..754f39484275 100644 --- a/drivers/clk/imx/clk-imxrt1050.c +++ b/drivers/clk/imx/clk-imxrt1050.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1170.c b/drivers/clk/imx/clk-imxrt1170.c index 077dd1bf02d3..20b9dc315001 100644 --- a/drivers/clk/imx/clk-imxrt1170.c +++ b/drivers/clk/imx/clk-imxrt1170.c @@ -4,7 +4,6 @@
- Author(s): Jesse Taube Mr.Bossman075@gmail.com
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index b8be3167c4cd..378cdff072fe 100644 --- a/drivers/clk/imx/clk-pfd.c +++ b/drivers/clk/imx/clk-pfd.c @@ -14,7 +14,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index 1cb685ee9abd..3911e0339056 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index fad306aeed23..c6692f2f9f5a 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <asm/io.h> #include <div64.h> #include <malloc.h> diff --git a/drivers/clk/intel/clk_intel.c b/drivers/clk/intel/clk_intel.c index 46ccbb1d834d..a677a7caac7c 100644 --- a/drivers/clk/intel/clk_intel.c +++ b/drivers/clk/intel/clk_intel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <dt-bindings/clock/intel-clock.h> diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 259ea335959c..2beb63030f22 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c index 0c7411ee814d..5072c9983c11 100644 --- a/drivers/clk/mediatek/clk-mt7623.c +++ b/drivers/clk/mediatek/clk-mt7623.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index 31b6fa02251a..0c796a1788aa 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk-mt8183.c index 17e653a1f00a..9612a62e56a7 100644 --- a/drivers/clk/mediatek/clk-mt8183.c +++ b/drivers/clk/mediatek/clk-mt8183.c @@ -8,7 +8,6 @@
- Author: Weiyi Lu weiyi.lu@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8183-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8512.c b/drivers/clk/mediatek/clk-mt8512.c index 193e069cb053..ab2706734428 100644 --- a/drivers/clk/mediatek/clk-mt8512.c +++ b/drivers/clk/mediatek/clk-mt8512.c @@ -6,7 +6,6 @@
- Author: Chen Zhong chen.zhong@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8512-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c index 29f70620e09d..623f88499f1b 100644 --- a/drivers/clk/mediatek/clk-mt8516.c +++ b/drivers/clk/mediatek/clk-mt8516.c @@ -6,7 +6,6 @@
- Author: Fabien Parent fparent@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8516-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8518.c b/drivers/clk/mediatek/clk-mt8518.c index 238651483726..ba8cc584d46f 100644 --- a/drivers/clk/mediatek/clk-mt8518.c +++ b/drivers/clk/mediatek/clk-mt8518.c @@ -6,7 +6,6 @@
- Author: Chen Zhong chen.zhong@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8518-clk.h> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 4303300d3a8d..d2c45be30dec 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index 5220a337a8bb..a1b8d7914910 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -4,7 +4,6 @@
- Author: Igor Prusov ivprusov@salutedevices.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/clk/meson/axg-ao.c b/drivers/clk/meson/axg-ao.c index 311ffc1cca9a..6ccf52127b02 100644 --- a/drivers/clk/meson/axg-ao.c +++ b/drivers/clk/meson/axg-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index d6da59d269b0..c421a622a587 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-axg.h> #include <asm/io.h> diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 1a855a68966e..61d489c6e1c8 100644 --- a/drivers/clk/meson/g12a-ao.c +++ b/drivers/clk/meson/g12a-ao.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index e4fed8ddfb27..5d7faaa3eabf 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-g12a.h> #include <asm/io.h> diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index e379540deee7..72ad4fd0e85f 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -5,7 +5,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock-gx.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk.c b/drivers/clk/microchip/mpfs_clk.c index 08f8bfcecbed..0a82777ff74d 100644 --- a/drivers/clk/microchip/mpfs_clk.c +++ b/drivers/clk/microchip/mpfs_clk.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/microchip/mpfs_clk_cfg.c b/drivers/clk/microchip/mpfs_clk_cfg.c index 5739fd66e8df..5e8fb9952895 100644 --- a/drivers/clk/microchip/mpfs_clk_cfg.c +++ b/drivers/clk/microchip/mpfs_clk_cfg.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_msspll.c b/drivers/clk/microchip/mpfs_clk_msspll.c index f37c0d86047c..d0e7b1ff844f 100644 --- a/drivers/clk/microchip/mpfs_clk_msspll.c +++ b/drivers/clk/microchip/mpfs_clk_msspll.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2022 Microchip Technology Inc.
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_periph.c b/drivers/clk/microchip/mpfs_clk_periph.c index ddeccb914575..41c6df4fb979 100644 --- a/drivers/clk/microchip/mpfs_clk_periph.c +++ b/drivers/clk/microchip/mpfs_clk_periph.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Microchip Technology Inc.
- Padmarao Begari padmarao.begari@microchip.com
*/ -#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index cc734450ef00..a29ad0d7a68d 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <clk-uclass.h> #include <clock_legacy.h> #include <command.h> diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c index 4d3ac847d1d5..2e263fb2cd28 100644 --- a/drivers/clk/mtmips/clk-mt7628.c +++ b/drivers/clk/mtmips/clk-mt7628.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clock/mt7628-clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index f5c9bd735c13..30330393f760 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -8,7 +8,6 @@
- Gregory CLEMENT gregory.clement@free-electrons.com
*/
-#include <common.h> #include <malloc.h> #include <clk-uclass.h> #include <clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index 846a73cd6b36..c1bab84c070e 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -8,7 +8,6 @@
- Gregory CLEMENT gregory.clement@free-electrons.com
*/
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c index 678fdd5a4540..513112c1146c 100644 --- a/drivers/clk/owl/clk_owl.c +++ b/drivers/clk/owl/clk_owl.c @@ -6,7 +6,6 @@
- Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org
*/
-#include <common.h> #include <dm.h> #include "clk_owl.h" #include <asm/io.h> diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c index d3b63b9c1ac5..41fe4d896a7c 100644 --- a/drivers/clk/qcom/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -7,7 +7,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c index 479f9771a464..c77d69128b00 100644 --- a/drivers/clk/qcom/clock-apq8096.c +++ b/drivers/clk/qcom/clock-apq8096.c @@ -7,7 +7,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-ipq4019.c b/drivers/clk/qcom/clock-ipq4019.c index 72f235eab212..0e6d93b3d7c2 100644 --- a/drivers/clk/qcom/clock-ipq4019.c +++ b/drivers/clk/qcom/clock-ipq4019.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcom.c b/drivers/clk/qcom/clock-qcom.c index 05e5ab7d094b..3a9cf2a231f2 100644 --- a/drivers/clk/qcom/clock-qcom.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -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> diff --git a/drivers/clk/qcom/clock-qcs404.c b/drivers/clk/qcom/clock-qcs404.c index 8a897a52bc00..70a1f648e585 100644 --- a/drivers/clk/qcom/clock-qcs404.c +++ b/drivers/clk/qcom/clock-qcs404.c @@ -5,7 +5,6 @@
- (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index 782df7da8444..f41f8c9e8dee 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -8,7 +8,6 @@
- Based on Little Kernel driver, simplified
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/delay.h> diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c index 66f8bb166955..44c6f14618d2 100644 --- a/drivers/clk/rockchip/clk_pll.c +++ b/drivers/clk/rockchip/clk_pll.c @@ -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>
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index 2875c152b20d..d7825c66493e 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c index 6238b14c29e1..274428f2b4bd 100644 --- a/drivers/clk/rockchip/clk_rk3036.c +++ b/drivers/clk/rockchip/clk_rk3036.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index f83335df6db6..f7dea7859f74 100644 --- a/drivers/clk/rockchip/clk_rk3066.c +++ b/drivers/clk/rockchip/clk_rk3066.c @@ -5,7 +5,6 @@ */
#include <bitfield.h> -#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c index 182754e7052d..a07285593b55 100644 --- a/drivers/clk/rockchip/clk_rk3128.c +++ b/drivers/clk/rockchip/clk_rk3128.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c index f98b46a0f73b..f569a100f22b 100644 --- a/drivers/clk/rockchip/clk_rk3188.c +++ b/drivers/clk/rockchip/clk_rk3188.c @@ -4,7 +4,6 @@
- (C) Copyright 2016 Heiko Stuebner heiko@sntech.de
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 9371c4f63a48..9b71fd863bad 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 0b7eefad15f1..432a79291c8a 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -3,7 +3,6 @@
- (C) Copyright 2015 Google, Inc
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index 861648321d40..e73bb6790af2 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 87075ec71340..4b94d6364d13 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 1c5dfaa3800b..d89439805215 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 80f65a237e8e..cc414c38432c 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -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> diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index 24eeca8bf265..35563509d617 100644 --- a/drivers/clk/rockchip/clk_rk3568.c +++ b/drivers/clk/rockchip/clk_rk3568.c @@ -4,7 +4,6 @@
- Author: Elaine Zhang zhangqing@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index 4c611a390499..ceae08a19aa5 100644 --- a/drivers/clk/rockchip/clk_rk3588.c +++ b/drivers/clk/rockchip/clk_rk3588.c @@ -4,7 +4,6 @@
- Author: Elaine Zhang zhangqing@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index fc442f7eebe2..75202a66aa68 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -4,7 +4,6 @@
- Author: Andy Yan andy.yan@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1126.c b/drivers/clk/rockchip/clk_rv1126.c index cfdfcbdb0f4c..aeeea9569147 100644 --- a/drivers/clk/rockchip/clk_rv1126.c +++ b/drivers/clk/rockchip/clk_rv1126.c @@ -5,7 +5,6 @@
- Author: Finley Xiao finley.xiao@rock-chips.com
*/
-#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index c8fb60029070..5ea860628006 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -22,7 +22,6 @@
*/
-#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/starfive/clk-jh7110-pll.c b/drivers/clk/starfive/clk-jh7110-pll.c index 1568a1f4cd91..581035842fc3 100644 --- a/drivers/clk/starfive/clk-jh7110-pll.c +++ b/drivers/clk/starfive/clk-jh7110-pll.c @@ -6,7 +6,6 @@
Xingyu Wu <xingyu.wu@starfivetech.com>
*/
-#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index a38694809a00..191da75d7ba2 100644 --- a/drivers/clk/starfive/clk-jh7110.c +++ b/drivers/clk/starfive/clk-jh7110.c @@ -6,7 +6,6 @@
Xingyu Wu <xingyu.wu@starfivetech.com>
*/
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32-core.c b/drivers/clk/stm32/clk-stm32-core.c index 37e996e78f96..cad07cc952e7 100644 --- a/drivers/clk/stm32/clk-stm32-core.c +++ b/drivers/clk/stm32/clk-stm32-core.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32f.c b/drivers/clk/stm32/clk-stm32f.c index d68c75ed2013..fceb3c44b94e 100644 --- a/drivers/clk/stm32/clk-stm32f.c +++ b/drivers/clk/stm32/clk-stm32f.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32h7.c b/drivers/clk/stm32/clk-stm32h7.c index d440c28eb485..a554eda504de 100644 --- a/drivers/clk/stm32/clk-stm32h7.c +++ b/drivers/clk/stm32/clk-stm32h7.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32mp1.c b/drivers/clk/stm32/clk-stm32mp1.c index 6f000c8e4448..204ac170531d 100644 --- a/drivers/clk/stm32/clk-stm32mp1.c +++ b/drivers/clk/stm32/clk-stm32mp1.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_CLK
-#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32mp13.c b/drivers/clk/stm32/clk-stm32mp13.c index 5174ae53a1a2..362dba102521 100644 --- a/drivers/clk/stm32/clk-stm32mp13.c +++ b/drivers/clk/stm32/clk-stm32mp13.c @@ -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> diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c index f27306fe33b3..19fe248044b4 100644 --- a/drivers/clk/sunxi/clk_a10.c +++ b/drivers/clk/sunxi/clk_a10.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c index 16ac589bb2bf..f771369c9423 100644 --- a/drivers/clk/sunxi/clk_a10s.c +++ b/drivers/clk/sunxi/clk_a10s.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c index 45d5ba75bf51..fdee4347e991 100644 --- a/drivers/clk/sunxi/clk_a23.c +++ b/drivers/clk/sunxi/clk_a23.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c index 6ca800050ed0..04f76a7c2a38 100644 --- a/drivers/clk/sunxi/clk_a31.c +++ b/drivers/clk/sunxi/clk_a31.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index fd26cd4f5d66..f1b01d25ddd4 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c index c5834f44103f..6751af8a8031 100644 --- a/drivers/clk/sunxi/clk_a80.c +++ b/drivers/clk/sunxi/clk_a80.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c index 760d98cd620c..d8621a3e64cc 100644 --- a/drivers/clk/sunxi/clk_a83t.c +++ b/drivers/clk/sunxi/clk_a83t.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index 9dae761de83c..b990a1185948 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk/sunxi/clk_d1.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 Samuel Holland samuel@sholland.org
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_f1c100s.c b/drivers/clk/sunxi/clk_f1c100s.c index 7b4c3ce51765..e22956992014 100644 --- a/drivers/clk/sunxi/clk_f1c100s.c +++ b/drivers/clk/sunxi/clk_f1c100s.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 George Hilliard thirtythreeforty@gmail.com.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index 32bc95fccca4..ce55caeb1573 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 071fd581003d..1b7bd9dea2f8 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h616.c b/drivers/clk/sunxi/clk_h616.c index 113dcff28515..b1e999e18c14 100644 --- a/drivers/clk/sunxi/clk_h616.c +++ b/drivers/clk/sunxi/clk_h616.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 0fef6f3566d5..721debdae238 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c index 1782cffc404a..2ef4f45dacf5 100644 --- a/drivers/clk/sunxi/clk_sunxi.c +++ b/drivers/clk/sunxi/clk_sunxi.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c index 6524c13540e0..85410e282e85 100644 --- a/drivers/clk/sunxi/clk_v3s.c +++ b/drivers/clk/sunxi/clk_v3s.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c index c5214b9b3e2e..1d61f8dc378d 100644 --- a/drivers/clk/tegra/tegra-car-clk.c +++ b/drivers/clk/tegra/tegra-car-clk.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/tegra/tegra186-clk.c b/drivers/clk/tegra/tegra186-clk.c index 5a98a3f3f0e6..ec52326c3b36 100644 --- a/drivers/clk/tegra/tegra186-clk.c +++ b/drivers/clk/tegra/tegra186-clk.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/ti/clk-am3-dpll-x2.c b/drivers/clk/ti/clk-am3-dpll-x2.c index 3cf279d6a3a9..1b0b9818cdd4 100644 --- a/drivers/clk/ti/clk-am3-dpll-x2.c +++ b/drivers/clk/ti/clk-am3-dpll-x2.c @@ -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> diff --git a/drivers/clk/ti/clk-am3-dpll.c b/drivers/clk/ti/clk-am3-dpll.c index 398a011a5cea..21ec01f8dd9a 100644 --- a/drivers/clk/ti/clk-am3-dpll.c +++ b/drivers/clk/ti/clk-am3-dpll.c @@ -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> diff --git a/drivers/clk/ti/clk-ctrl.c b/drivers/clk/ti/clk-ctrl.c index 8926e57ebc84..c5c97dc35c4d 100644 --- a/drivers/clk/ti/clk-ctrl.c +++ b/drivers/clk/ti/clk-ctrl.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-divider.c b/drivers/clk/ti/clk-divider.c index 15941f17811a..40a742d7fdc4 100644 --- a/drivers/clk/ti/clk-divider.c +++ b/drivers/clk/ti/clk-divider.c @@ -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> diff --git a/drivers/clk/ti/clk-gate.c b/drivers/clk/ti/clk-gate.c index eb15f6243f20..873ceb8a2ab7 100644 --- a/drivers/clk/ti/clk-gate.c +++ b/drivers/clk/ti/clk-gate.c @@ -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> diff --git a/drivers/clk/ti/clk-k3-pll.c b/drivers/clk/ti/clk-k3-pll.c index 8323e6e6919c..b3a1b4cedb78 100644 --- a/drivers/clk/ti/clk-k3-pll.c +++ b/drivers/clk/ti/clk-k3-pll.c @@ -6,7 +6,6 @@
- Tero Kristo t-kristo@ti.com
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-k3.c b/drivers/clk/ti/clk-k3.c index 7aa162c2f702..41e5022ea0cd 100644 --- a/drivers/clk/ti/clk-k3.c +++ b/drivers/clk/ti/clk-k3.c @@ -6,7 +6,6 @@
- Tero Kristo t-kristo@ti.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <soc.h> diff --git a/drivers/clk/ti/clk-mux.c b/drivers/clk/ti/clk-mux.c index 215241b16135..db5393414318 100644 --- a/drivers/clk/ti/clk-mux.c +++ b/drivers/clk/ti/clk-mux.c @@ -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> diff --git a/drivers/clk/ti/clk-sci.c b/drivers/clk/ti/clk-sci.c index 9e5760d33544..e374bd3bcc20 100644 --- a/drivers/clk/ti/clk-sci.c +++ b/drivers/clk/ti/clk-sci.c @@ -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> diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 6e5cc90f0f8c..28cd15128819 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <regmap.h> diff --git a/drivers/clk/ti/omap4-cm.c b/drivers/clk/ti/omap4-cm.c index 3cdc9b28887d..a30ce9d09d27 100644 --- a/drivers/clk/ti/omap4-cm.c +++ b/drivers/clk/ti/omap4-cm.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h>
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index c31e59641d93..33369c93916b 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Simon Glass sjg@chromium.org Cc: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/drivers/core/acpi.c b/drivers/core/acpi.c index 0ebd288ab420..9f7842289218 100644 --- a/drivers/core/acpi.c +++ b/drivers/core/acpi.c @@ -8,7 +8,6 @@
#define LOG_CATEOGRY LOGC_ACPI
-#include <common.h> #include <display_options.h> #include <dm.h> #include <log.h> diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index a86b9325dd8d..437080ed7780 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY LOGC_DM
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/core/device.c b/drivers/core/device.c index bf7f261cbce0..18e2bd02dd56 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -8,8 +8,8 @@ * Pavel Herrmann morpheus.ibis@gmail.com */
-#include <common.h> #include <cpu_func.h> +#include <errno.h> #include <event.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/core/devres.c b/drivers/core/devres.c index 78914bdf7f21..8df08b91021c 100644 --- a/drivers/core/devres.c +++ b/drivers/core/devres.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY LOGC_DEVRES
-#include <common.h> #include <log.h> #include <malloc.h> #include <linux/compat.h> diff --git a/drivers/core/dump.c b/drivers/core/dump.c index 841124830ee7..5ec30d5b3c1a 100644 --- a/drivers/core/dump.c +++ b/drivers/core/dump.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 Google, Inc */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index 5f27d2511485..6be8ea0c0a9c 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -8,7 +8,6 @@ * Pavel Herrmann morpheus.ibis@gmail.com */
-#include <common.h> #include <dm.h> #include <fdt_support.h> #include <log.h> diff --git a/drivers/core/lists.c b/drivers/core/lists.c index 8034a8f48d99..2839a9b73718 100644 --- a/drivers/core/lists.c +++ b/drivers/core/lists.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_DM
-#include <common.h> #include <errno.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index c8db743f5298..41f2e09b9c27 100644 --- a/drivers/core/of_access.c +++ b/drivers/core/of_access.c @@ -19,7 +19,6 @@ * Linux version. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/core/of_addr.c b/drivers/core/of_addr.c index b3b3d7ccdd56..d7913ab3d2fd 100644 --- a/drivers/core/of_addr.c +++ b/drivers/core/of_addr.c @@ -6,7 +6,6 @@ * Copyright (c) 2017 Google, Inc */
-#include <common.h> #include <log.h> #include <linux/bug.h> #include <linux/libfdt.h> diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index 59ce9174ad07..a3ebe9e9c245 100644 --- a/drivers/core/of_extra.c +++ b/drivers/core/of_extra.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <log.h> #include <linux/libfdt.h> #include <dm/of_access.h> diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 21a233f90f0b..9a5eaaa4d134 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY LOGC_DT
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/core/read.c b/drivers/core/read.c index 1a4a95cddea3..55c19f335ae1 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <dm/of_access.h> #include <mapmem.h> diff --git a/drivers/core/read_extra.c b/drivers/core/read_extra.c index 513834882783..5a0153a46610 100644 --- a/drivers/core/read_extra.c +++ b/drivers/core/read_extra.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <dm/of_addr.h> #include <dm/read.h> diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index dd32328098c4..7ff7834bdf08 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY LOGC_DM
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/core/root.c b/drivers/core/root.c index d4ae652bcfb1..4bfd08f48130 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_ROOT
-#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index 6022e7514e0e..f402bb5d6748 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -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> diff --git a/drivers/core/simple-pm-bus.c b/drivers/core/simple-pm-bus.c index 1bb0d86e289d..f38372ec60bc 100644 --- a/drivers/core/simple-pm-bus.c +++ b/drivers/core/simple-pm-bus.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Sean Anderson seanga2@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h>
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c index a47b8bd3c017..f0e69d7216b3 100644 --- a/drivers/core/syscon-uclass.c +++ b/drivers/core/syscon-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SYSCON
-#include <common.h> #include <log.h> #include <syscon.h> #include <dm.h> diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index e46d5717aa62..762536eebc6e 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_DM
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/core/util.c b/drivers/core/util.c index 81497df85ffd..108a3bc4dac1 100644 --- a/drivers/core/util.c +++ b/drivers/core/util.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 Google, Inc */
-#include <common.h> #include <dm/device.h> #include <dm/ofnode.h> #include <dm/read.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Mario Six mario.six@gdsys.cc Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Bin Meng bmeng.cn@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Sean Anderson seanga2@gmail.com Cc: Conor Dooley conor.dooley@microchip.com --- 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(-)
diff --git a/drivers/cpu/at91_cpu.c b/drivers/cpu/at91_cpu.c index 34a3f61c7e95..b45cc6ca1a9a 100644 --- a/drivers/cpu/at91_cpu.c +++ b/drivers/cpu/at91_cpu.c @@ -5,7 +5,6 @@ * Author: Claudiu Beznea claudiu.beznea@microchip.com */
-#include <common.h> #include <cpu.h> #include <dm.h> #include <div64.h> diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index 3dd04fa88581..db624ee47fb0 100644 --- a/drivers/cpu/bmips_cpu.c +++ b/drivers/cpu/bmips_cpu.c @@ -7,7 +7,6 @@ * Copyright (C) 2009 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <cpu.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 9772578968ba..16f8f2e52194 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_CPU
-#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> diff --git a/drivers/cpu/cpu_sandbox.c b/drivers/cpu/cpu_sandbox.c index 2e871fe313c1..e65e1bdc51bf 100644 --- a/drivers/cpu/cpu_sandbox.c +++ b/drivers/cpu/cpu_sandbox.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <cpu.h>
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 98ff95f5ff5c..4781a565547a 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -3,7 +3,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <cpu.h> #include <dm.h> #include <thermal.h> diff --git a/drivers/cpu/microblaze_cpu.c b/drivers/cpu/microblaze_cpu.c index a229f6913b07..4e24ada40022 100644 --- a/drivers/cpu/microblaze_cpu.c +++ b/drivers/cpu/microblaze_cpu.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2022, Ovidiu Panait ovpanait@gmail.com */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <asm/cpuinfo.h> diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c index e451c11116ab..9a7b5fd7c423 100644 --- a/drivers/cpu/mpc83xx_cpu.c +++ b/drivers/cpu/mpc83xx_cpu.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <bitfield.h> #include <clk.h> #include <cpu.h> diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 9b1950efe05e..4f2958a23cee 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Gaurav Jain gaurav.jain@nxp.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org --- 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(-)
diff --git a/drivers/crypto/ace_sha.c b/drivers/crypto/ace_sha.c index 261d3efe84e5..0e43e82fc5fa 100644 --- a/drivers/crypto/ace_sha.c +++ b/drivers/crypto/ace_sha.c @@ -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> diff --git a/drivers/crypto/ace_sha.h b/drivers/crypto/ace_sha.h index ad9e81a586c7..efc791a4def4 100644 --- a/drivers/crypto/ace_sha.h +++ b/drivers/crypto/ace_sha.h @@ -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; diff --git a/drivers/crypto/aspeed/aspeed_acry.c b/drivers/crypto/aspeed/aspeed_acry.c index 47a007f633a6..e3f81ebd5c74 100644 --- a/drivers/crypto/aspeed/aspeed_acry.c +++ b/drivers/crypto/aspeed/aspeed_acry.c @@ -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> diff --git a/drivers/crypto/aspeed/aspeed_hace.c b/drivers/crypto/aspeed/aspeed_hace.c index 6b6c8fa65889..17cc30a7b54d 100644 --- a/drivers/crypto/aspeed/aspeed_hace.c +++ b/drivers/crypto/aspeed/aspeed_hace.c @@ -3,7 +3,6 @@ * Copyright 2021 ASPEED Technology Inc. */ #include <config.h> -#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/crypto/fsl/dcp_rng.c b/drivers/crypto/fsl/dcp_rng.c index 31706960157c..6b19c171fcda 100644 --- a/drivers/crypto/fsl/dcp_rng.c +++ b/drivers/crypto/fsl/dcp_rng.c @@ -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> diff --git a/drivers/crypto/fsl/error.c b/drivers/crypto/fsl/error.c index c76574919c74..7b232d94c2a3 100644 --- a/drivers/crypto/fsl/error.c +++ b/drivers/crypto/fsl/error.c @@ -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"
diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c index 9b6e4bca062c..0ecd6befd259 100644 --- a/drivers/crypto/fsl/fsl_blob.c +++ b/drivers/crypto/fsl/fsl_blob.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c index f22f24b60775..79b32e2627c4 100644 --- a/drivers/crypto/fsl/fsl_hash.c +++ b/drivers/crypto/fsl/fsl_hash.c @@ -4,7 +4,6 @@ * Copyright 2021 NXP */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/fsl/fsl_mfgprot.c b/drivers/crypto/fsl/fsl_mfgprot.c index 29af79f577dc..7c22f8e012b8 100644 --- a/drivers/crypto/fsl/fsl_mfgprot.c +++ b/drivers/crypto/fsl/fsl_mfgprot.c @@ -4,7 +4,6 @@ * Copyright 2017 NXP */
-#include <common.h> #include <errno.h> #include <fsl_sec.h> #include <memalign.h> diff --git a/drivers/crypto/fsl/fsl_rsa.c b/drivers/crypto/fsl/fsl_rsa.c index 335b7fe25acb..125a72ae6d32 100644 --- a/drivers/crypto/fsl/fsl_rsa.c +++ b/drivers/crypto/fsl/fsl_rsa.c @@ -5,7 +5,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/crypto/fsl/jobdesc.c b/drivers/crypto/fsl/jobdesc.c index d32c1fe5c31a..551917369318 100644 --- a/drivers/crypto/fsl/jobdesc.c +++ b/drivers/crypto/fsl/jobdesc.c @@ -8,7 +8,7 @@ * */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <fsl_sec.h> #include "desc_constr.h" diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 203f16252159..4436e23b72ac 100644 --- a/drivers/crypto/fsl/jr.c +++ b/drivers/crypto/fsl/jr.c @@ -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> diff --git a/drivers/crypto/fsl/rng.c b/drivers/crypto/fsl/rng.c index 063649480521..786a710f5fb6 100644 --- a/drivers/crypto/fsl/rng.c +++ b/drivers/crypto/fsl/rng.c @@ -7,7 +7,6 @@ */
#include <asm/cache.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <rng.h> diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index 9de30a6112fa..e9c39ddcfd9e 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c @@ -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 diff --git a/drivers/crypto/hash/hash-uclass.c b/drivers/crypto/hash/hash-uclass.c index 446eb9e56a4f..5d9f1e0d59bd 100644 --- a/drivers/crypto/hash/hash-uclass.c +++ b/drivers/crypto/hash/hash-uclass.c @@ -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> diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c index d8065d68ea48..ffd4ab149ffb 100644 --- a/drivers/crypto/hash/hash_sw.c +++ b/drivers/crypto/hash/hash_sw.c @@ -4,7 +4,6 @@ * Author: ChiaWei Wang chiawei_wang@aspeedtech.com */ #include <config.h> -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/nuvoton/npcm_aes.c b/drivers/crypto/nuvoton/npcm_aes.c index 6493ea108ec7..8d3a30ea918d 100644 --- a/drivers/crypto/nuvoton/npcm_aes.c +++ b/drivers/crypto/nuvoton/npcm_aes.c @@ -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
diff --git a/drivers/crypto/nuvoton/npcm_sha.c b/drivers/crypto/nuvoton/npcm_sha.c index 7ebdfa16f4fc..f06be86ca59e 100644 --- a/drivers/crypto/nuvoton/npcm_sha.c +++ b/drivers/crypto/nuvoton/npcm_sha.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <hash.h> #include <malloc.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c index 7bed444c3fbf..4f59adc09c9c 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c @@ -5,7 +5,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <log.h> #include <u-boot/rsa-mod-exp.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c index 057cc74b10bb..107500dd6e07 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c @@ -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>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Simon Glass sjg@chromium.org Cc: Johan Jonker jbx6244@gmail.com Cc: Ye Li ye.li@nxp.com Cc: Peng Fan peng.fan@nxp.com Cc: Jacky Bai ping.bai@nxp.com Cc: Marek Vasut marex@denx.de Cc: Fabio Estevam festevam@gmail.com Cc: Shawn Guo shawn.guo@linaro.org Cc: Shiji Yang yangshiji66@outlook.com --- 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(-)
diff --git a/drivers/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c index 65ecdd022c43..7f2cccb6af20 100644 --- a/drivers/ddr/altera/sdram_agilex.c +++ b/drivers/ddr/altera/sdram_agilex.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <div64.h> diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index 8ef5fa4c481c..bd2af94bb0dd 100644 --- a/drivers/ddr/altera/sdram_arria10.c +++ b/drivers/ddr/altera/sdram_arria10.c @@ -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> diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c index 34d2a2789ccf..46c53e7c7a34 100644 --- a/drivers/ddr/altera/sdram_gen5.c +++ b/drivers/ddr/altera/sdram_gen5.c @@ -2,7 +2,6 @@ /* * Copyright Altera Corporation (C) 2014-2015 */ -#include <common.h> #include <dm.h> #include <errno.h> #include <div64.h> diff --git a/drivers/ddr/altera/sdram_n5x.c b/drivers/ddr/altera/sdram_n5x.c index d9039443b91c..db09986f64b4 100644 --- a/drivers/ddr/altera/sdram_n5x.c +++ b/drivers/ddr/altera/sdram_n5x.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c index 4d36fb453323..4ac4c79e0ac3 100644 --- a/drivers/ddr/altera/sdram_s10.c +++ b/drivers/ddr/altera/sdram_s10.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c index 4716abfc9a8b..9e57c2ecfa4f 100644 --- a/drivers/ddr/altera/sdram_soc64.c +++ b/drivers/ddr/altera/sdram_soc64.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index e402f2929ab7..7636e71a0a6b 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -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> diff --git a/drivers/ddr/altera/sequencer.h b/drivers/ddr/altera/sequencer.h index c72a683ffef2..618ba00da645 100644 --- a/drivers/ddr/altera/sequencer.h +++ b/drivers/ddr/altera/sequencer.h @@ -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 ( \ diff --git a/drivers/ddr/fsl/arm_ddr_gen3.c b/drivers/ddr/fsl/arm_ddr_gen3.c index 9dada5e11756..9f9aea804d97 100644 --- a/drivers/ddr/fsl/arm_ddr_gen3.c +++ b/drivers/ddr/fsl/arm_ddr_gen3.c @@ -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> diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c index 8f8c2c864c3f..9a25192c0798 100644 --- a/drivers/ddr/fsl/ctrl_regs.c +++ b/drivers/ddr/fsl/ctrl_regs.c @@ -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) || \ diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c index e5481eaa0ddd..cc87a95214d8 100644 --- a/drivers/ddr/fsl/ddr1_dimm_params.c +++ b/drivers/ddr/fsl/ddr1_dimm_params.c @@ -3,7 +3,6 @@ * Copyright 2008 Freescale Semiconductor, Inc. */
-#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> #include <asm/bitops.h> diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c index 3b78118a9d82..5674685a191e 100644 --- a/drivers/ddr/fsl/ddr2_dimm_params.c +++ b/drivers/ddr/fsl/ddr2_dimm_params.c @@ -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> diff --git a/drivers/ddr/fsl/ddr3_dimm_params.c b/drivers/ddr/fsl/ddr3_dimm_params.c index 1f8db90c45bd..c30ecdaafafd 100644 --- a/drivers/ddr/fsl/ddr3_dimm_params.c +++ b/drivers/ddr/fsl/ddr3_dimm_params.c @@ -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>
diff --git a/drivers/ddr/fsl/ddr4_dimm_params.c b/drivers/ddr/fsl/ddr4_dimm_params.c index ea7916226287..75e3bfe08be7 100644 --- a/drivers/ddr/fsl/ddr4_dimm_params.c +++ b/drivers/ddr/fsl/ddr4_dimm_params.c @@ -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>
diff --git a/drivers/ddr/fsl/fsl_ddr_gen4.c b/drivers/ddr/fsl/fsl_ddr_gen4.c index f8d1468a26f1..31c58d9a8e31 100644 --- a/drivers/ddr/fsl/fsl_ddr_gen4.c +++ b/drivers/ddr/fsl/fsl_ddr_gen4.c @@ -4,7 +4,7 @@ * Copyright 2021 NXP */
-#include <common.h> +#include <config.h> #include <env.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/fsl/fsl_mmdc.c b/drivers/ddr/fsl/fsl_mmdc.c index 28f2219b2a43..7812b1b01caf 100644 --- a/drivers/ddr/fsl/fsl_mmdc.c +++ b/drivers/ddr/fsl/fsl_mmdc.c @@ -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> diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c index eb2f06e8300a..94a5e447d56a 100644 --- a/drivers/ddr/fsl/interactive.c +++ b/drivers/ddr/fsl/interactive.c @@ -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> diff --git a/drivers/ddr/fsl/lc_common_dimm_params.c b/drivers/ddr/fsl/lc_common_dimm_params.c index 5e4ad56f0714..aaf9800b3723 100644 --- a/drivers/ddr/fsl/lc_common_dimm_params.c +++ b/drivers/ddr/fsl/lc_common_dimm_params.c @@ -4,7 +4,6 @@ * Copyright 2017-2021 NXP Semiconductor */
-#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> #include <asm/bitops.h> diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c index cd332718b640..31091bb44952 100644 --- a/drivers/ddr/fsl/main.c +++ b/drivers/ddr/fsl/main.c @@ -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> diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c index 16186bdbae72..a8520754006a 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c @@ -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> diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c index b830e7cbd141..00b4b376dd45 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c @@ -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>
diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c index 1c4a1cae4df4..b0a61fa2b416 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c @@ -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> diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c index 7cff82345847..852a5d0eca41 100644 --- a/drivers/ddr/fsl/options.c +++ b/drivers/ddr/fsl/options.c @@ -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
/* diff --git a/drivers/ddr/fsl/util.c b/drivers/ddr/fsl/util.c index 60051392e713..0a73170e4183 100644 --- a/drivers/ddr/fsl/util.c +++ b/drivers/ddr/fsl/util.c @@ -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> diff --git a/drivers/ddr/imx/imx8m/ddr_init.c b/drivers/ddr/imx/imx8m/ddr_init.c index 52a4aa632304..e9209ce8b61d 100644 --- a/drivers/ddr/imx/imx8m/ddr_init.c +++ b/drivers/ddr/imx/imx8m/ddr_init.c @@ -3,7 +3,6 @@ * Copyright 2018-2019 NXP */
-#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/imx/imx8ulp/ddr_init.c b/drivers/ddr/imx/imx8ulp/ddr_init.c index c362a2da338b..172e260a55d9 100644 --- a/drivers/ddr/imx/imx8ulp/ddr_init.c +++ b/drivers/ddr/imx/imx8ulp/ddr_init.c @@ -2,7 +2,6 @@ /* * Copyright 2021 NXP */ -#include <common.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/ddr.h> diff --git a/drivers/ddr/imx/imx9/ddr_init.c b/drivers/ddr/imx/imx9/ddr_init.c index 7a333880e6b6..5b0ad773875d 100644 --- a/drivers/ddr/imx/imx9/ddr_init.c +++ b/drivers/ddr/imx/imx9/ddr_init.c @@ -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]; diff --git a/drivers/ddr/imx/phy/ddrphy_train.c b/drivers/ddr/imx/phy/ddrphy_train.c index cd905f952c64..ccc10df18452 100644 --- a/drivers/ddr/imx/phy/ddrphy_train.c +++ b/drivers/ddr/imx/phy/ddrphy_train.c @@ -3,7 +3,6 @@ * Copyright 2018 NXP */
-#include <common.h> #include <log.h> #include <linux/kernel.h> #include <asm/arch/ddr.h> diff --git a/drivers/ddr/imx/phy/ddrphy_utils.c b/drivers/ddr/imx/phy/ddrphy_utils.c index 45e1a70dbd44..cf5bdad7abe7 100644 --- a/drivers/ddr/imx/phy/ddrphy_utils.c +++ b/drivers/ddr/imx/phy/ddrphy_utils.c @@ -3,7 +3,6 @@ * Copyright 2018 NXP */
-#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/imx/phy/helper.c b/drivers/ddr/imx/phy/helper.c index b9b2403012d9..c1fc800f191b 100644 --- a/drivers/ddr/imx/phy/helper.c +++ b/drivers/ddr/imx/phy/helper.c @@ -3,7 +3,6 @@ * Copyright 2018 NXP */
-#include <common.h> #include <binman_sym.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_dfs.c b/drivers/ddr/marvell/axp/ddr3_dfs.c index 2a4596680b19..985835ec9235 100644 --- a/drivers/ddr/marvell/axp/ddr3_dfs.c +++ b/drivers/ddr/marvell/axp/ddr3_dfs.c @@ -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> diff --git a/drivers/ddr/marvell/axp/ddr3_dqs.c b/drivers/ddr/marvell/axp/ddr3_dqs.c index 0db94212b90f..bda0d7ec4735 100644 --- a/drivers/ddr/marvell/axp/ddr3_dqs.c +++ b/drivers/ddr/marvell/axp/ddr3_dqs.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_hw_training.c b/drivers/ddr/marvell/axp/ddr3_hw_training.c index 35d98faf58f3..bb3e1be1f4c6 100644 --- a/drivers/ddr/marvell/axp/ddr3_hw_training.c +++ b/drivers/ddr/marvell/axp/ddr3_hw_training.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_init.c b/drivers/ddr/marvell/axp/ddr3_init.c index a9dcb74cecb7..23c6d119f61e 100644 --- a/drivers/ddr/marvell/axp/ddr3_init.c +++ b/drivers/ddr/marvell/axp/ddr3_init.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_pbs.c b/drivers/ddr/marvell/axp/ddr3_pbs.c index 069a42fbf5ed..2322900185d3 100644 --- a/drivers/ddr/marvell/axp/ddr3_pbs.c +++ b/drivers/ddr/marvell/axp/ddr3_pbs.c @@ -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> diff --git a/drivers/ddr/marvell/axp/ddr3_read_leveling.c b/drivers/ddr/marvell/axp/ddr3_read_leveling.c index 30a5c3548857..db7003f72caf 100644 --- a/drivers/ddr/marvell/axp/ddr3_read_leveling.c +++ b/drivers/ddr/marvell/axp/ddr3_read_leveling.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_sdram.c b/drivers/ddr/marvell/axp/ddr3_sdram.c index 0b150b20f3a1..f8fee2623d04 100644 --- a/drivers/ddr/marvell/axp/ddr3_sdram.c +++ b/drivers/ddr/marvell/axp/ddr3_sdram.c @@ -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> diff --git a/drivers/ddr/marvell/axp/ddr3_spd.c b/drivers/ddr/marvell/axp/ddr3_spd.c index 4763403c1278..c169a8ea16b4 100644 --- a/drivers/ddr/marvell/axp/ddr3_spd.c +++ b/drivers/ddr/marvell/axp/ddr3_spd.c @@ -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> diff --git a/drivers/ddr/marvell/axp/ddr3_write_leveling.c b/drivers/ddr/marvell/axp/ddr3_write_leveling.c index d4add4477745..ea7bac56d0ed 100644 --- a/drivers/ddr/marvell/axp/ddr3_write_leveling.c +++ b/drivers/ddr/marvell/axp/ddr3_write_leveling.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/xor.c b/drivers/ddr/marvell/axp/xor.c index 76aea96682c7..6ecacfeb9336 100644 --- a/drivers/ddr/marvell/axp/xor.c +++ b/drivers/ddr/marvell/axp/xor.c @@ -3,7 +3,6 @@ * Copyright (C) Marvell International Ltd. and its affiliates */
-#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/microchip/ddr2.c b/drivers/ddr/microchip/ddr2.c index 149b6071cfde..bfba5d245c68 100644 --- a/drivers/ddr/microchip/ddr2.c +++ b/drivers/ddr/microchip/ddr2.c @@ -3,7 +3,6 @@ * (c) 2015 Paul Thacker paul.thacker@microchip.com * */ -#include <common.h> #include <wait_bit.h> #include <linux/kernel.h> #include <linux/bitops.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/drivers/demo/demo-pdata.c b/drivers/demo/demo-pdata.c index 818f77503a31..73711991626b 100644 --- a/drivers/demo/demo-pdata.c +++ b/drivers/demo/demo-pdata.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 Google, Inc */
-#include <common.h> #include <dm.h> #include <dm-demo.h>
diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c index b6b29bcb31b3..3ccd5bced95e 100644 --- a/drivers/demo/demo-shape.c +++ b/drivers/demo/demo-shape.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/demo/demo-simple.c b/drivers/demo/demo-simple.c index 28b271f7791c..944d58972224 100644 --- a/drivers/demo/demo-simple.c +++ b/drivers/demo/demo-simple.c @@ -6,7 +6,6 @@ * Pavel Herrmann morpheus.ibis@gmail.com */
-#include <common.h> #include <dm.h> #include <dm-demo.h> #include <mapmem.h> diff --git a/drivers/demo/demo-uclass.c b/drivers/demo/demo-uclass.c index 09f9a47d4de6..d7b1305dc65d 100644 --- a/drivers/demo/demo-uclass.c +++ b/drivers/demo/demo-uclass.c @@ -6,7 +6,6 @@ * Pavel Herrmann morpheus.ibis@gmail.com */
-#include <common.h> #include <dm.h> #include <dm-demo.h> #include <errno.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Lukasz Majewski lukma@denx.de Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 2adf26e2fe24..540d48fab77d 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -6,7 +6,6 @@ * author: Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/dfu/dfu_alt.c b/drivers/dfu/dfu_alt.c index ece3d2236f3d..e9132936a90b 100644 --- a/drivers/dfu/dfu_alt.c +++ b/drivers/dfu/dfu_alt.c @@ -4,7 +4,6 @@ * Lukasz Majewski l.majewski@majess.pl */
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c index 12c54e90ef71..cfa6334e4397 100644 --- a/drivers/dfu/dfu_mmc.c +++ b/drivers/dfu/dfu_mmc.c @@ -6,7 +6,6 @@ * author: Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c index 485586989c8a..c36ac09189f3 100644 --- a/drivers/dfu/dfu_mtd.c +++ b/drivers/dfu/dfu_mtd.c @@ -7,7 +7,6 @@ * Based on dfu_nand.c */
-#include <common.h> #include <dfu.h> #include <mtd.h> #include <linux/err.h> diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c index 08e8cf5cdb37..940cfefc986c 100644 --- a/drivers/dfu/dfu_nand.c +++ b/drivers/dfu/dfu_nand.c @@ -9,7 +9,6 @@ * author: Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_ram.c b/drivers/dfu/dfu_ram.c index c4f4bd2e482f..043acbf022fc 100644 --- a/drivers/dfu/dfu_ram.c +++ b/drivers/dfu/dfu_ram.c @@ -8,7 +8,6 @@ * author: Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <errno.h> diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 2dae15937064..7c1c0f9e2dc7 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/dfu/dfu_sf.c @@ -3,7 +3,6 @@ * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. */
-#include <common.h> #include <malloc.h> #include <errno.h> #include <div64.h> diff --git a/drivers/dfu/dfu_virt.c b/drivers/dfu/dfu_virt.c index 29f7a08f6728..2c31445af12a 100644 --- a/drivers/dfu/dfu_virt.c +++ b/drivers/dfu/dfu_virt.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ -#include <common.h> #include <dfu.h> #include <errno.h> #include <log.h>

Hi Tom,
Thank you for the patch.
On mer., mai 01, 2024 at 19:30, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
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.
Cc: Lukasz Majewski lukma@denx.de Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Tom Rini trini@konsulko.com
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(-)
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 2adf26e2fe24..540d48fab77d 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -6,7 +6,6 @@
- author: Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/dfu/dfu_alt.c b/drivers/dfu/dfu_alt.c index ece3d2236f3d..e9132936a90b 100644 --- a/drivers/dfu/dfu_alt.c +++ b/drivers/dfu/dfu_alt.c @@ -4,7 +4,6 @@
- Lukasz Majewski l.majewski@majess.pl
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c index 12c54e90ef71..cfa6334e4397 100644 --- a/drivers/dfu/dfu_mmc.c +++ b/drivers/dfu/dfu_mmc.c @@ -6,7 +6,6 @@
- author: Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c index 485586989c8a..c36ac09189f3 100644 --- a/drivers/dfu/dfu_mtd.c +++ b/drivers/dfu/dfu_mtd.c @@ -7,7 +7,6 @@
- Based on dfu_nand.c
*/
-#include <common.h> #include <dfu.h> #include <mtd.h> #include <linux/err.h> diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c index 08e8cf5cdb37..940cfefc986c 100644 --- a/drivers/dfu/dfu_nand.c +++ b/drivers/dfu/dfu_nand.c @@ -9,7 +9,6 @@
- author: Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_ram.c b/drivers/dfu/dfu_ram.c index c4f4bd2e482f..043acbf022fc 100644 --- a/drivers/dfu/dfu_ram.c +++ b/drivers/dfu/dfu_ram.c @@ -8,7 +8,6 @@
- author: Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <errno.h> diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 2dae15937064..7c1c0f9e2dc7 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/dfu/dfu_sf.c @@ -3,7 +3,6 @@
- Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <malloc.h> #include <errno.h> #include <div64.h> diff --git a/drivers/dfu/dfu_virt.c b/drivers/dfu/dfu_virt.c index 29f7a08f6728..2c31445af12a 100644 --- a/drivers/dfu/dfu_virt.c +++ b/drivers/dfu/dfu_virt.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/ -#include <common.h> #include <dfu.h> #include <errno.h>
#include <log.h>
2.34.1

On Thu, May 02, 2024 at 09:28:03AM +0200, Mattijs Korpershoek wrote:
Hi Tom,
Thank you for the patch.
On mer., mai 01, 2024 at 19:30, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
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.

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Sean Anderson seanga2@gmail.com --- 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(-)
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index da988f6bb667..331815c469f9 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -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> diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c index 33c7b9814156..fd3a353d5484 100644 --- a/drivers/dma/bcm6348-iudma.c +++ b/drivers/dma/bcm6348-iudma.c @@ -15,7 +15,6 @@ * Copyright (C) 2010 Broadcom Corporation */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c index 0c1d88e10c65..2c76ba3fe328 100644 --- a/drivers/dma/dma-uclass.c +++ b/drivers/dma/dma-uclass.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_DMA
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c index 700df2236bd1..0cd9bcb51109 100644 --- a/drivers/dma/fsl_dma.c +++ b/drivers/dma/fsl_dma.c @@ -9,7 +9,6 @@ */
#include <config.h> -#include <common.h> #include <asm/io.h> #include <asm/fsl_dma.h>
diff --git a/drivers/dma/keystone_nav.c b/drivers/dma/keystone_nav.c index 9a5ba79f3fe5..c84db454bfd4 100644 --- a/drivers/dma/keystone_nav.c +++ b/drivers/dma/keystone_nav.c @@ -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, diff --git a/drivers/dma/lpc32xx_dma.c b/drivers/dma/lpc32xx_dma.c index 0efdfd028cfd..f15b67546a9f 100644 --- a/drivers/dma/lpc32xx_dma.c +++ b/drivers/dma/lpc32xx_dma.c @@ -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> diff --git a/drivers/dma/sandbox-dma-test.c b/drivers/dma/sandbox-dma-test.c index a19e5e37fb9d..0290b93340f4 100644 --- a/drivers/dma/sandbox-dma-test.c +++ b/drivers/dma/sandbox-dma-test.c @@ -7,7 +7,6 @@ * Author: Grygorii Strashko grygorii.strashko@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/dma/ti-edma3.c b/drivers/dma/ti-edma3.c index 31ffff07f5b3..d64059f39ab8 100644 --- a/drivers/dma/ti-edma3.c +++ b/drivers/dma/ti-edma3.c @@ -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> diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index ef3074aa13ff..8e11d817a5b4 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -5,7 +5,6 @@ */ #define pr_fmt(fmt) "udma: " fmt
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/dma/xilinx_dpdma.c b/drivers/dma/xilinx_dpdma.c index d4ee21dfc07f..1d615ec28387 100644 --- a/drivers/dma/xilinx_dpdma.c +++ b/drivers/dma/xilinx_dpdma.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Xilinx Inc. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dma.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Svyatoslav Ryhel clamor95@gmail.com --- drivers/extcon/extcon-max14526.c | 1 - drivers/extcon/extcon-uclass.c | 1 - 2 files changed, 2 deletions(-)
diff --git a/drivers/extcon/extcon-max14526.c b/drivers/extcon/extcon-max14526.c index a33b5ef919cc..2d2166bde682 100644 --- a/drivers/extcon/extcon-max14526.c +++ b/drivers/extcon/extcon-max14526.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/delay.h> diff --git a/drivers/extcon/extcon-uclass.c b/drivers/extcon/extcon-uclass.c index 9dd22b576269..1a5928738820 100644 --- a/drivers/extcon/extcon-uclass.c +++ b/drivers/extcon/extcon-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_EXTCON
-#include <common.h> #include <extcon.h> #include <dm.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c index 01443c5d39e2..e4484d65aca5 100644 --- a/drivers/fastboot/fb_command.c +++ b/drivers/fastboot/fb_command.c @@ -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>
/** diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 3576b0677299..12ffb463deb9 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -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 diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c index f65519c57b47..93cbd598e024 100644 --- a/drivers/fastboot/fb_getvar.c +++ b/drivers/fastboot/fb_getvar.c @@ -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); diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c index 060918e49109..f11eb66761b1 100644 --- a/drivers/fastboot/fb_mmc.c +++ b/drivers/fastboot/fb_mmc.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <env.h> #include <fastboot.h> diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_nand.c index bbe26ddcc9be..afc64fd52807 100644 --- a/drivers/fastboot/fb_nand.c +++ b/drivers/fastboot/fb_nand.c @@ -5,7 +5,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h>
#include <fastboot.h>

Hi Tom,
Thank you for the patch.
On mer., mai 01, 2024 at 19:30, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Tom Rini trini@konsulko.com
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(-)
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c index 01443c5d39e2..e4484d65aca5 100644 --- a/drivers/fastboot/fb_command.c +++ b/drivers/fastboot/fb_command.c @@ -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>
/** diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 3576b0677299..12ffb463deb9 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -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
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c index f65519c57b47..93cbd598e024 100644 --- a/drivers/fastboot/fb_getvar.c +++ b/drivers/fastboot/fb_getvar.c @@ -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); diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c index 060918e49109..f11eb66761b1 100644 --- a/drivers/fastboot/fb_mmc.c +++ b/drivers/fastboot/fb_mmc.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <env.h> #include <fastboot.h> diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_nand.c index bbe26ddcc9be..afc64fd52807 100644 --- a/drivers/fastboot/fb_nand.c +++ b/drivers/fastboot/fb_nand.c @@ -5,7 +5,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h>
#include <fastboot.h>
2.34.1

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Abdellatif El Khlifi abdellatif.elkhlifi@arm.com Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Jens Wiklander jens.wiklander@linaro.org Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Tanmay Shah tanmay.shah@amd.com Cc: Ashok Reddy Soma ashok.reddy.soma@amd.com Cc: Weizhao Ouyang o451686892@gmail.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com Cc: Etienne Carriere etienne.carriere@foss.st.com --- 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(-)
diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-uclass.c index f1e91d151ea3..e0767fc75517 100644 --- a/drivers/firmware/arm-ffa/arm-ffa-uclass.c +++ b/drivers/firmware/arm-ffa/arm-ffa-uclass.c @@ -5,7 +5,6 @@ * Authors: * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */ -#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/arm-ffa.c b/drivers/firmware/arm-ffa/arm-ffa.c index ee0bf9a55b48..94e6105cb38e 100644 --- a/drivers/firmware/arm-ffa/arm-ffa.c +++ b/drivers/firmware/arm-ffa/arm-ffa.c @@ -6,7 +6,6 @@ * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */
-#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/ffa-emul-uclass.c b/drivers/firmware/arm-ffa/ffa-emul-uclass.c index 4bf9f6041fec..1521d9b66ac3 100644 --- a/drivers/firmware/arm-ffa/ffa-emul-uclass.c +++ b/drivers/firmware/arm-ffa/ffa-emul-uclass.c @@ -5,7 +5,6 @@ * Authors: * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */ -#include <common.h> #include <dm.h> #include <mapmem.h> #include <string.h> diff --git a/drivers/firmware/arm-ffa/sandbox_ffa.c b/drivers/firmware/arm-ffa/sandbox_ffa.c index 11142429c09b..44b32a829ddf 100644 --- a/drivers/firmware/arm-ffa/sandbox_ffa.c +++ b/drivers/firmware/arm-ffa/sandbox_ffa.c @@ -5,7 +5,6 @@ * Authors: * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */ -#include <common.h> #include <arm_ffa.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/firmware-sandbox.c b/drivers/firmware/firmware-sandbox.c index d970d75f781d..226b5cfc191e 100644 --- a/drivers/firmware/firmware-sandbox.c +++ b/drivers/firmware/firmware-sandbox.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Xilinx, Inc. */
-#include <common.h> #include <dm.h>
static const struct udevice_id generic_sandbox_firmware_ids[] = { diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c index e83a147a000b..84caf25548be 100644 --- a/drivers/firmware/firmware-uclass.c +++ b/drivers/firmware/firmware-uclass.c @@ -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 */ diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c index dfad798a2e7d..f99507d86c61 100644 --- a/drivers/firmware/firmware-zynqmp.c +++ b/drivers/firmware/firmware-zynqmp.c @@ -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> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 03544d76ed4a..c32c3f5c6a54 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -6,7 +6,6 @@ * Copyright (C) 2015 ARM Limited */
-#include <common.h> #include <command.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/firmware/scmi/base.c b/drivers/firmware/scmi/base.c index 1d41a8a98fc6..f4e3974ff5b4 100644 --- a/drivers/firmware/scmi/base.c +++ b/drivers/firmware/scmi/base.c @@ -6,7 +6,6 @@ * author: AKASHI Takahiro takahiro.akashi@linaro.org */
-#include <common.h> #include <dm.h> #include <scmi_agent.h> #include <scmi_protocols.h> diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index 7ad3e8da9f08..6d4497f4b92a 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <mailbox.h> diff --git a/drivers/firmware/scmi/optee_agent.c b/drivers/firmware/scmi/optee_agent.c index 48dbb88a3fb5..631625d715bf 100644 --- a/drivers/firmware/scmi/optee_agent.c +++ b/drivers/firmware/scmi/optee_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_agent.c b/drivers/firmware/scmi/sandbox-scmi_agent.c index cc9011c7312f..19be280ec448 100644 --- a/drivers/firmware/scmi/sandbox-scmi_agent.c +++ b/drivers/firmware/scmi/sandbox-scmi_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <malloc.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_devices.c b/drivers/firmware/scmi/sandbox-scmi_devices.c index 603e2bb40aff..96c2922b067e 100644 --- a/drivers/firmware/scmi/sandbox-scmi_devices.c +++ b/drivers/firmware/scmi/sandbox-scmi_devices.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/scmi/scmi_agent-uclass.c b/drivers/firmware/scmi/scmi_agent-uclass.c index 0f1003e167e6..8c907c3b0328 100644 --- a/drivers/firmware/scmi/scmi_agent-uclass.c +++ b/drivers/firmware/scmi/scmi_agent-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index 972c6addde21..ac35d07ebaff 100644 --- a/drivers/firmware/scmi/smccc_agent.c +++ b/drivers/firmware/scmi/smccc_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index 509ed618a997..67d2f4500249 100644 --- a/drivers/firmware/scmi/smt.c +++ b/drivers/firmware/scmi/smt.c @@ -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> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 6c581b9df9c0..8ce0f46e70c8 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -7,7 +7,6 @@ * Lokesh Vutla lokeshvutla@ti.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>

On Thu, 2 May 2024 at 04:32, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Abdellatif El Khlifi abdellatif.elkhlifi@arm.com Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Jens Wiklander jens.wiklander@linaro.org Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Tanmay Shah tanmay.shah@amd.com Cc: Ashok Reddy Soma ashok.reddy.soma@amd.com Cc: Weizhao Ouyang o451686892@gmail.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com Cc: Etienne Carriere etienne.carriere@foss.st.com
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(-)
diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-uclass.c index f1e91d151ea3..e0767fc75517 100644 --- a/drivers/firmware/arm-ffa/arm-ffa-uclass.c +++ b/drivers/firmware/arm-ffa/arm-ffa-uclass.c @@ -5,7 +5,6 @@
- Authors:
- Abdellatif El Khlifi abdellatif.elkhlifi@arm.com
*/ -#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/arm-ffa.c b/drivers/firmware/arm-ffa/arm-ffa.c index ee0bf9a55b48..94e6105cb38e 100644 --- a/drivers/firmware/arm-ffa/arm-ffa.c +++ b/drivers/firmware/arm-ffa/arm-ffa.c @@ -6,7 +6,6 @@
- Abdellatif El Khlifi abdellatif.elkhlifi@arm.com
*/
-#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/ffa-emul-uclass.c b/drivers/firmware/arm-ffa/ffa-emul-uclass.c index 4bf9f6041fec..1521d9b66ac3 100644 --- a/drivers/firmware/arm-ffa/ffa-emul-uclass.c +++ b/drivers/firmware/arm-ffa/ffa-emul-uclass.c @@ -5,7 +5,6 @@
- Authors:
- Abdellatif El Khlifi abdellatif.elkhlifi@arm.com
*/ -#include <common.h> #include <dm.h> #include <mapmem.h> #include <string.h> diff --git a/drivers/firmware/arm-ffa/sandbox_ffa.c b/drivers/firmware/arm-ffa/sandbox_ffa.c index 11142429c09b..44b32a829ddf 100644 --- a/drivers/firmware/arm-ffa/sandbox_ffa.c +++ b/drivers/firmware/arm-ffa/sandbox_ffa.c @@ -5,7 +5,6 @@
- Authors:
- Abdellatif El Khlifi abdellatif.elkhlifi@arm.com
*/ -#include <common.h> #include <arm_ffa.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/firmware-sandbox.c b/drivers/firmware/firmware-sandbox.c index d970d75f781d..226b5cfc191e 100644 --- a/drivers/firmware/firmware-sandbox.c +++ b/drivers/firmware/firmware-sandbox.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Xilinx, Inc.
*/
-#include <common.h> #include <dm.h>
static const struct udevice_id generic_sandbox_firmware_ids[] = { diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c index e83a147a000b..84caf25548be 100644 --- a/drivers/firmware/firmware-uclass.c +++ b/drivers/firmware/firmware-uclass.c @@ -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 */ diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c index dfad798a2e7d..f99507d86c61 100644 --- a/drivers/firmware/firmware-zynqmp.c +++ b/drivers/firmware/firmware-zynqmp.c @@ -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> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 03544d76ed4a..c32c3f5c6a54 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -6,7 +6,6 @@
- Copyright (C) 2015 ARM Limited
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/firmware/scmi/base.c b/drivers/firmware/scmi/base.c index 1d41a8a98fc6..f4e3974ff5b4 100644 --- a/drivers/firmware/scmi/base.c +++ b/drivers/firmware/scmi/base.c @@ -6,7 +6,6 @@
author: AKASHI Takahiro <takahiro.akashi@linaro.org>
*/
-#include <common.h> #include <dm.h> #include <scmi_agent.h> #include <scmi_protocols.h> diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index 7ad3e8da9f08..6d4497f4b92a 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <mailbox.h> diff --git a/drivers/firmware/scmi/optee_agent.c b/drivers/firmware/scmi/optee_agent.c index 48dbb88a3fb5..631625d715bf 100644 --- a/drivers/firmware/scmi/optee_agent.c +++ b/drivers/firmware/scmi/optee_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_agent.c b/drivers/firmware/scmi/sandbox-scmi_agent.c index cc9011c7312f..19be280ec448 100644 --- a/drivers/firmware/scmi/sandbox-scmi_agent.c +++ b/drivers/firmware/scmi/sandbox-scmi_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <malloc.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_devices.c b/drivers/firmware/scmi/sandbox-scmi_devices.c index 603e2bb40aff..96c2922b067e 100644 --- a/drivers/firmware/scmi/sandbox-scmi_devices.c +++ b/drivers/firmware/scmi/sandbox-scmi_devices.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/scmi/scmi_agent-uclass.c b/drivers/firmware/scmi/scmi_agent-uclass.c index 0f1003e167e6..8c907c3b0328 100644 --- a/drivers/firmware/scmi/scmi_agent-uclass.c +++ b/drivers/firmware/scmi/scmi_agent-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index 972c6addde21..ac35d07ebaff 100644 --- a/drivers/firmware/scmi/smccc_agent.c +++ b/drivers/firmware/scmi/smccc_agent.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SCMI_AGENT
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index 509ed618a997..67d2f4500249 100644 --- a/drivers/firmware/scmi/smt.c +++ b/drivers/firmware/scmi/smt.c @@ -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> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 6c581b9df9c0..8ce0f46e70c8 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -7,7 +7,6 @@
Lokesh Vutla <lokeshvutla@ti.com>
*/
-#include <common.h> #include <dm.h> #include <errno.h>
#include <log.h>
2.34.1
Reviewed-by: Ilias Apalodimas ilias.apalodimas@linaro.org

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Michal Simek michal.simek@amd.com Cc: Tom Rini trini@konsulko.com --- 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(-)
diff --git a/drivers/fpga/ACEX1K.c b/drivers/fpga/ACEX1K.c index 4c00cdf0b57d..cb7877a8afe7 100644 --- a/drivers/fpga/ACEX1K.c +++ b/drivers/fpga/ACEX1K.c @@ -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 */ diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c index 6a4f0cb9bc06..ae06f0123a03 100644 --- a/drivers/fpga/altera.c +++ b/drivers/fpga/altera.c @@ -12,7 +12,6 @@ /* * Altera FPGA support */ -#include <common.h> #include <errno.h> #include <ACEX1K.h> #include <log.h> diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c index 6e8a313db35b..7e78d6e2d6ce 100644 --- a/drivers/fpga/cyclon2.c +++ b/drivers/fpga/cyclon2.c @@ -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> diff --git a/drivers/fpga/fpga.c b/drivers/fpga/fpga.c index 81e6d8ffc0bd..38ba6c21ea2b 100644 --- a/drivers/fpga/fpga.c +++ b/drivers/fpga/fpga.c @@ -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 */ diff --git a/drivers/fpga/intel_sdm_mb.c b/drivers/fpga/intel_sdm_mb.c index 903d143a361c..45caef4f5c10 100644 --- a/drivers/fpga/intel_sdm_mb.c +++ b/drivers/fpga/intel_sdm_mb.c @@ -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 diff --git a/drivers/fpga/ivm_core.c b/drivers/fpga/ivm_core.c index adc60919f3b0..b9cecdd8720a 100644 --- a/drivers/fpga/ivm_core.c +++ b/drivers/fpga/ivm_core.c @@ -29,7 +29,6 @@ * the ispVMLCOUNT function */
-#include <common.h> #include <log.h> #include <linux/string.h> #include <malloc.h> diff --git a/drivers/fpga/lattice.c b/drivers/fpga/lattice.c index e292d991cd18..036580cad70f 100644 --- a/drivers/fpga/lattice.c +++ b/drivers/fpga/lattice.c @@ -10,7 +10,6 @@ * Copyright 2009 Lattice Semiconductor Corp. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <fpga.h> diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index d73414d5ac54..bb98c0e2bcf7 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -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> diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c index 96b195063e08..e9822b2bb0ec 100644 --- a/drivers/fpga/socfpga_arria10.c +++ b/drivers/fpga/socfpga_arria10.c @@ -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> diff --git a/drivers/fpga/socfpga_gen5.c b/drivers/fpga/socfpga_gen5.c index d73474f29ee1..9473f0573289 100644 --- a/drivers/fpga/socfpga_gen5.c +++ b/drivers/fpga/socfpga_gen5.c @@ -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> diff --git a/drivers/fpga/spartan2.c b/drivers/fpga/spartan2.c index 6eef87b78e16..9cd6cb7f0fbd 100644 --- a/drivers/fpga/spartan2.c +++ b/drivers/fpga/spartan2.c @@ -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 */
diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/spartan3.c index e892fa571f19..b4d87d47d933 100644 --- a/drivers/fpga/spartan3.c +++ b/drivers/fpga/spartan3.c @@ -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 diff --git a/drivers/fpga/stratixII.c b/drivers/fpga/stratixII.c index b450a81072ed..73fecd9dca55 100644 --- a/drivers/fpga/stratixII.c +++ b/drivers/fpga/stratixII.c @@ -4,7 +4,6 @@ * Eran Liberty, Extricom , eran.liberty@gmail.com */
-#include <common.h> /* core U-Boot definitions */ #include <altera.h> #include <linux/delay.h>
diff --git a/drivers/fpga/stratixv.c b/drivers/fpga/stratixv.c index abae3b5b7511..372f16d92d1a 100644 --- a/drivers/fpga/stratixv.c +++ b/drivers/fpga/stratixv.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <altera.h> #include <log.h> #include <spi.h> diff --git a/drivers/fpga/versalpl.c b/drivers/fpga/versalpl.c index be58db54275c..1957e8dcacac 100644 --- a/drivers/fpga/versalpl.c +++ b/drivers/fpga/versalpl.c @@ -4,7 +4,6 @@ * Siva Durga Prasad Paladugu siva.durga.prasad.paladugu@amd.com> */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/fpga/virtex2.c b/drivers/fpga/virtex2.c index 3ded27f9b3ff..8e2c12bb58b1 100644 --- a/drivers/fpga/virtex2.c +++ b/drivers/fpga/virtex2.c @@ -14,7 +14,7 @@
#define LOG_CATEGORY UCLASS_FPGA
-#include <common.h> +#include <config.h> #include <console.h> #include <log.h> #include <virtex2.h> diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c index 8170c3368ef6..c46513226d9b 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -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); diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c index 2656f5fc5ecf..2b62bbbe3cf5 100644 --- a/drivers/fpga/zynqmppl.c +++ b/drivers/fpga/zynqmppl.c @@ -6,7 +6,6 @@ */
#include <console.h> -#include <common.h> #include <compiler.h> #include <cpu_func.h> #include <fpga.h> diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c index a2e3b305fa41..57467b4d975a 100644 --- a/drivers/fpga/zynqpl.c +++ b/drivers/fpga/zynqpl.c @@ -6,10 +6,11 @@ * Joe Hershberger joe.hershberger@ni.com */
-#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>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- drivers/fuzz/fuzzing_engine-uclass.c | 1 - drivers/fuzz/sandbox_fuzzing_engine.c | 1 - 2 files changed, 2 deletions(-)
diff --git a/drivers/fuzz/fuzzing_engine-uclass.c b/drivers/fuzz/fuzzing_engine-uclass.c index b16f1c4cfb71..08ce3ed2ec15 100644 --- a/drivers/fuzz/fuzzing_engine-uclass.c +++ b/drivers/fuzz/fuzzing_engine-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_FUZZING_ENGINE
-#include <common.h> #include <dm.h> #include <fuzzing_engine.h>
diff --git a/drivers/fuzz/sandbox_fuzzing_engine.c b/drivers/fuzz/sandbox_fuzzing_engine.c index ebb938e5ba86..677402470edc 100644 --- a/drivers/fuzz/sandbox_fuzzing_engine.c +++ b/drivers/fuzz/sandbox_fuzzing_engine.c @@ -4,7 +4,6 @@ * Written by Andrew Scull ascull@google.com */
-#include <common.h> #include <dm.h> #include <fuzzing_engine.h> #include <asm/fuzzing_engine.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Jassi Brar jaswinder.singh@linaro.org Cc: Etienne Carriere etienne.carriere@linaro.org --- drivers/fwu-mdata/fwu-mdata-uclass.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/fwu-mdata/fwu-mdata-uclass.c b/drivers/fwu-mdata/fwu-mdata-uclass.c index 0a8edaaa418f..bab7a7e80d1d 100644 --- a/drivers/fwu-mdata/fwu-mdata-uclass.c +++ b/drivers/fwu-mdata/fwu-mdata-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_FWU_MDATA
-#include <common.h> #include <dm.h> #include <efi_loader.h> #include <fwu.h>

On Wed, May 1, 2024 at 8:45 PM Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Jassi Brar jaswinder.singh@linaro.org Cc: Etienne Carriere etienne.carriere@linaro.org
Acked-by: Jassi Brar jassisinghbrar@gmail.com
Thanks

On Thu, 2 May 2024 at 04:32, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Jassi Brar jaswinder.singh@linaro.org Cc: Etienne Carriere etienne.carriere@linaro.org
drivers/fwu-mdata/fwu-mdata-uclass.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/fwu-mdata/fwu-mdata-uclass.c b/drivers/fwu-mdata/fwu-mdata-uclass.c index 0a8edaaa418f..bab7a7e80d1d 100644 --- a/drivers/fwu-mdata/fwu-mdata-uclass.c +++ b/drivers/fwu-mdata/fwu-mdata-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_FWU_MDATA
-#include <common.h> #include <dm.h> #include <efi_loader.h>
#include <fwu.h>
2.34.1
Reviewed-by: Ilias Apalodimas ilias.apalodimas@linaro.org

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Qu Wenruo wqu@suse.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Heiko Schocher hs@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Piotr Wojtaszczyk piotr.wojtaszczyk@timesys.com Cc: Jim Liu jim.t90615@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com --- 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(-)
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 7a7cfe86114b..331428ccdb9a 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -8,7 +8,6 @@ * */
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index edc5a8093b0c..7ba1595e4ae3 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -4,7 +4,6 @@ * Copyright (C) 2011 Missing Link Electronics * Joachim Foerster joachim@missinglinkelectronics.com */ -#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c index f80f4afd24ff..50a698159075 100644 --- a/drivers/gpio/at91_gpio.c +++ b/drivers/gpio/at91_gpio.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index be1dd752bf76..65d064b46dfb 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -5,7 +5,6 @@ * Copyright (C) 2015 Atmel Corporation * Wenyou.Yang wenyou.yang@atmel.com */ -#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c index af6631697f58..6e632c8fc730 100644 --- a/drivers/gpio/axp_gpio.c +++ b/drivers/gpio/axp_gpio.c @@ -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> diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index 704a6fa71210..ccf84fdae11f 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -4,7 +4,6 @@ * vikram186@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index e031f71a784d..e76c84e806ad 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -7,7 +7,6 @@ * Copyright (C) 2008-2011 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/gpio.h> diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index 72ef523be960..e0ea14cce696 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -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> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index b310f2dbf651..1ccb9e69f158 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -6,7 +6,6 @@ * Laurence Withers lwithers@guralp.com */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/gpio/ftgpio010.c b/drivers/gpio/ftgpio010.c index 6c091d4fd874..4cb550a540c6 100644 --- a/drivers/gpio/ftgpio010.c +++ b/drivers/gpio/ftgpio010.c @@ -3,7 +3,6 @@ * Faraday Technology's FTGPIO010 controller. */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 1c3d18796b3a..c5608f4a9dfc 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -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>
diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c index ca7aa14eeb23..c8d2dff5f7bf 100644 --- a/drivers/gpio/gpio-fxl6408.c +++ b/drivers/gpio/gpio-fxl6408.c @@ -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> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 707785012322..d1a399388095 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index f14be871e8d0..8c3fe61b25f6 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 4234cd912c9f..92ce68dd4a13 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 61c705b5ac56..033fb4b60ee6 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/gpio/gpio_slg7xl45106.c b/drivers/gpio/gpio_slg7xl45106.c index 4ad06c18b4bd..a7c9ff53af7d 100644 --- a/drivers/gpio/gpio_slg7xl45106.c +++ b/drivers/gpio/gpio_slg7xl45106.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Xilinx, Inc. */
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index e287c31b93fc..7ceb5f424c9d 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -4,7 +4,6 @@ * Peter Griffin peter.griffin@linaro.org */
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 66f8441840b5..734b31d3dc17 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -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> diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c index 3227a8d5b574..fc1d418315c5 100644 --- a/drivers/gpio/imx_rgpio2p.c +++ b/drivers/gpio/imx_rgpio2p.c @@ -5,7 +5,6 @@ * RGPIO2P driver for the Freescale i.MX7ULP. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 20af35de2cf5..53ed0a3eed06 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -3,7 +3,6 @@ * Copyright (c) 2012 The Chromium OS Authors. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c index 4a3ec6d63502..0ab6e8a90bcb 100644 --- a/drivers/gpio/intel_gpio.c +++ b/drivers/gpio/intel_gpio.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 2ed0d0bea9a5..096bc3b05bb7 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -28,7 +28,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 7187d3257b90..8688f12e43c7 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Broadcom */
-#include <common.h> #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c index a15769793f17..e183f5594b51 100644 --- a/drivers/gpio/kw_gpio.c +++ b/drivers/gpio/kw_gpio.c @@ -12,7 +12,6 @@ * Dieter Kiermaier dk-arm-linux@gmx.de */
-#include <common.h> #include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/gpio/lpc32xx_gpio.c b/drivers/gpio/lpc32xx_gpio.c index de66c765d11e..2b537e007ba9 100644 --- a/drivers/gpio/lpc32xx_gpio.c +++ b/drivers/gpio/lpc32xx_gpio.c @@ -6,7 +6,6 @@ * Written-by: Albert ARIBAUD albert.aribaud@3adev.fr */
-#include <common.h> #include <asm/io.h> #include <asm/arch-lpc32xx/cpu.h> #include <asm/arch-lpc32xx/gpio.h> diff --git a/drivers/gpio/max7320_gpio.c b/drivers/gpio/max7320_gpio.c index 647aed907b4c..f733cc924e56 100644 --- a/drivers/gpio/max7320_gpio.c +++ b/drivers/gpio/max7320_gpio.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/mcp230xx_gpio.c b/drivers/gpio/mcp230xx_gpio.c index df99fde56602..42e7fe9d474c 100644 --- a/drivers/gpio/mcp230xx_gpio.c +++ b/drivers/gpio/mcp230xx_gpio.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c index fd26a36a0f94..2be8c73ae3d7 100644 --- a/drivers/gpio/mpc83xx_spisel_boot.c +++ b/drivers/gpio/mpc83xx_spisel_boot.c @@ -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> diff --git a/drivers/gpio/mpc8xx_gpio.c b/drivers/gpio/mpc8xx_gpio.c index 2f6534653313..e2b12f8b56c7 100644 --- a/drivers/gpio/mpc8xx_gpio.c +++ b/drivers/gpio/mpc8xx_gpio.c @@ -10,7 +10,6 @@ * Copyright 2010 eXMeritus, A Boeing Company */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index f7ffd8926ade..e9bd38f162c1 100644 --- a/drivers/gpio/mpc8xxx_gpio.c +++ b/drivers/gpio/mpc8xxx_gpio.c @@ -9,7 +9,6 @@ * Copyright 2020-2021 NXP */
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index c97e44005ee1..5a40304f1f93 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -7,7 +7,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index f5d9ab54e817..2fb266f12854 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -5,7 +5,6 @@ * (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 43bb4df4da72..63a202310a5e 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -7,7 +7,6 @@ * Copyright (C) 2013 John Crispin blogic@openwrt.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index f706a6dfa4fe..0d82380dde4a 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 1dec4e35e0a7..cac6b32b2796 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -6,7 +6,6 @@ * Copyright (C) 2011 * Stefano Babic, DENX Software Engineering, sbabic@denx.de */ -#include <common.h> #include <errno.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 1356f89ac2f0..80910c9ec4c2 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -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> diff --git a/drivers/gpio/nmk_gpio.c b/drivers/gpio/nmk_gpio.c index e1bb41b196cc..c2716e717632 100644 --- a/drivers/gpio/nmk_gpio.c +++ b/drivers/gpio/nmk_gpio.c @@ -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> diff --git a/drivers/gpio/npcm_gpio.c b/drivers/gpio/npcm_gpio.c index 98e5dc79c1cc..da3b3ffbc92f 100644 --- a/drivers/gpio/npcm_gpio.c +++ b/drivers/gpio/npcm_gpio.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index e2565d709535..741b2ff7f177 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -4,7 +4,6 @@ * DeokJin, Lee truevirtue@nexell.co.kr */
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 50c4f75ddf5d..1aceafcdf581 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -17,7 +17,6 @@ * Copyright (C) 2003-2005 Nokia Corporation * Written by Juha Yrjölä juha.yrjola@nokia.com */ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index b5ed35256ee7..fc4dcf9f9861 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -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 diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index b0c66d18317e..80ebaadb3e43 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -18,7 +18,6 @@ * 2. Support Polarity Inversion */
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index f38e215c4d6e..10ae86ec5d45 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -17,7 +17,6 @@ * */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index 975a2af3ccb8..d8edfefb2d75 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -4,7 +4,6 @@ * Purna Chandra Mandal purna.mandal@microchip.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 0dd3434e9e04..80fee841ee3f 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -5,7 +5,6 @@ * (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/gpio/qe_gpio.c b/drivers/gpio/qe_gpio.c index 16e8d1eae6ed..ac6e68299e07 100644 --- a/drivers/gpio/qe_gpio.c +++ b/drivers/gpio/qe_gpio.c @@ -4,7 +4,6 @@ * Christophe Leroy christophe.leroy@csgroup.eu */
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 2e901ac5c734..24ba12dd820e 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -6,7 +6,6 @@ * Peter, Software Engineering, superpeter.cai@gmail.com. */
-#include <common.h> #include <dm.h> #include <syscon.h> #include <linux/errno.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 06ed585f3d64..83e65aa4aec4 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -4,7 +4,6 @@ * Minkyu Kang mk7.kang@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c index 305f9a6ff62f..f5be27814438 100644 --- a/drivers/gpio/sandbox.c +++ b/drivers/gpio/sandbox.c @@ -3,7 +3,6 @@ * Copyright (c) 2011 The Chromium OS Authors. */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/gpio/sandbox_test.c b/drivers/gpio/sandbox_test.c index c76e19974196..4699a976252c 100644 --- a/drivers/gpio/sandbox_test.c +++ b/drivers/gpio/sandbox_test.c @@ -5,7 +5,6 @@ * Copyright 2021 Google LLC */
-#include <common.h> #include <dm.h> #include <asm-generic/gpio.h>
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 2495d6c1c154..9f6051c1c4d3 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -9,7 +9,6 @@ * for more details. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/bitops.h> diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 151f484e8fd1..90f59120ecd0 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -5,7 +5,6 @@ * Copyright (C) 2019 SiFive, Inc. */
-#include <common.h> #include <dm.h> #include <asm/arch/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/sl28cpld-gpio.c b/drivers/gpio/sl28cpld-gpio.c index 700fc3df298c..e85f9260ec39 100644 --- a/drivers/gpio/sl28cpld-gpio.c +++ b/drivers/gpio/sl28cpld-gpio.c @@ -5,7 +5,6 @@ * Copyright (c) 2021 Michael Walle michael@walle.cc */
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <sl28cpld.h> diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 7a2ca91c7692..b8eb55465d3c 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index e4463a223f7b..5e86474d3dbb 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -9,7 +9,6 @@ * Tom Cubie tangliang@allwinnertech.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index b07496e6e49c..1d45b5007461 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -20,7 +20,7 @@ * MA 02111-1307 USA */
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> #include <tca642x.h> diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index 94a20d143e10..01b8245c8d5b 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -4,7 +4,6 @@ * (based on tegra_gpio.c) */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 55105f2802c3..0c40d36c41e2 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -10,7 +10,6 @@ * Tom Warren (twarren@nvidia.com) */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index 339392dcd35a..5b4bba96da70 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -4,7 +4,6 @@ * Bhuvanchandra DV, Toradex, Inc. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index fa8d630b4658..c0a92378b035 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 - 2018 Xilinx, Michal Simek */
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 71a56127c0aa..7db58c70663e 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -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> diff --git a/drivers/gpio/zynqmp_gpio_modepin.c b/drivers/gpio/zynqmp_gpio_modepin.c index e9565ff5430e..8aaffaf37b3d 100644 --- a/drivers/gpio/zynqmp_gpio_modepin.c +++ b/drivers/gpio/zynqmp_gpio_modepin.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Xilinx, Inc. */
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h>

On Thu, 2 May 2024 at 02:32, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Peter Robinson pbrobinson@gmail.com
Looks fine to me.
Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Qu Wenruo wqu@suse.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Heiko Schocher hs@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Piotr Wojtaszczyk piotr.wojtaszczyk@timesys.com Cc: Jim Liu jim.t90615@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com
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(-)
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 7a7cfe86114b..331428ccdb9a 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -8,7 +8,6 @@
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index edc5a8093b0c..7ba1595e4ae3 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -4,7 +4,6 @@
- Copyright (C) 2011 Missing Link Electronics
Joachim Foerster <joachim@missinglinkelectronics.com>
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c index f80f4afd24ff..50a698159075 100644 --- a/drivers/gpio/at91_gpio.c +++ b/drivers/gpio/at91_gpio.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index be1dd752bf76..65d064b46dfb 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -5,7 +5,6 @@
- Copyright (C) 2015 Atmel Corporation
Wenyou.Yang <wenyou.yang@atmel.com>
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c index af6631697f58..6e632c8fc730 100644 --- a/drivers/gpio/axp_gpio.c +++ b/drivers/gpio/axp_gpio.c @@ -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> diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index 704a6fa71210..ccf84fdae11f 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index e031f71a784d..e76c84e806ad 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -7,7 +7,6 @@
Copyright (C) 2008-2011 Florian Fainelli <florian@openwrt.org>
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/gpio.h> diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index 72ef523be960..e0ea14cce696 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -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> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index b310f2dbf651..1ccb9e69f158 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -6,7 +6,6 @@
- Laurence Withers lwithers@guralp.com
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/gpio/ftgpio010.c b/drivers/gpio/ftgpio010.c index 6c091d4fd874..4cb550a540c6 100644 --- a/drivers/gpio/ftgpio010.c +++ b/drivers/gpio/ftgpio010.c @@ -3,7 +3,6 @@
- Faraday Technology's FTGPIO010 controller.
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 1c3d18796b3a..c5608f4a9dfc 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -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>
diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c index ca7aa14eeb23..c8d2dff5f7bf 100644 --- a/drivers/gpio/gpio-fxl6408.c +++ b/drivers/gpio/gpio-fxl6408.c @@ -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> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 707785012322..d1a399388095 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index f14be871e8d0..8c3fe61b25f6 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 4234cd912c9f..92ce68dd4a13 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 61c705b5ac56..033fb4b60ee6 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/gpio/gpio_slg7xl45106.c b/drivers/gpio/gpio_slg7xl45106.c index 4ad06c18b4bd..a7c9ff53af7d 100644 --- a/drivers/gpio/gpio_slg7xl45106.c +++ b/drivers/gpio/gpio_slg7xl45106.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Xilinx, Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index e287c31b93fc..7ceb5f424c9d 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -4,7 +4,6 @@
- Peter Griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 66f8441840b5..734b31d3dc17 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -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> diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c index 3227a8d5b574..fc1d418315c5 100644 --- a/drivers/gpio/imx_rgpio2p.c +++ b/drivers/gpio/imx_rgpio2p.c @@ -5,7 +5,6 @@
- RGPIO2P driver for the Freescale i.MX7ULP.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 20af35de2cf5..53ed0a3eed06 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2012 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c index 4a3ec6d63502..0ab6e8a90bcb 100644 --- a/drivers/gpio/intel_gpio.c +++ b/drivers/gpio/intel_gpio.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 2ed0d0bea9a5..096bc3b05bb7 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -28,7 +28,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 7187d3257b90..8688f12e43c7 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Broadcom
*/
-#include <common.h> #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c index a15769793f17..e183f5594b51 100644 --- a/drivers/gpio/kw_gpio.c +++ b/drivers/gpio/kw_gpio.c @@ -12,7 +12,6 @@
- Dieter Kiermaier dk-arm-linux@gmx.de
*/
-#include <common.h> #include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/gpio/lpc32xx_gpio.c b/drivers/gpio/lpc32xx_gpio.c index de66c765d11e..2b537e007ba9 100644 --- a/drivers/gpio/lpc32xx_gpio.c +++ b/drivers/gpio/lpc32xx_gpio.c @@ -6,7 +6,6 @@
- Written-by: Albert ARIBAUD albert.aribaud@3adev.fr
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch-lpc32xx/cpu.h> #include <asm/arch-lpc32xx/gpio.h> diff --git a/drivers/gpio/max7320_gpio.c b/drivers/gpio/max7320_gpio.c index 647aed907b4c..f733cc924e56 100644 --- a/drivers/gpio/max7320_gpio.c +++ b/drivers/gpio/max7320_gpio.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/mcp230xx_gpio.c b/drivers/gpio/mcp230xx_gpio.c index df99fde56602..42e7fe9d474c 100644 --- a/drivers/gpio/mcp230xx_gpio.c +++ b/drivers/gpio/mcp230xx_gpio.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c index fd26a36a0f94..2be8c73ae3d7 100644 --- a/drivers/gpio/mpc83xx_spisel_boot.c +++ b/drivers/gpio/mpc83xx_spisel_boot.c @@ -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> diff --git a/drivers/gpio/mpc8xx_gpio.c b/drivers/gpio/mpc8xx_gpio.c index 2f6534653313..e2b12f8b56c7 100644 --- a/drivers/gpio/mpc8xx_gpio.c +++ b/drivers/gpio/mpc8xx_gpio.c @@ -10,7 +10,6 @@
- Copyright 2010 eXMeritus, A Boeing Company
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index f7ffd8926ade..e9bd38f162c1 100644 --- a/drivers/gpio/mpc8xxx_gpio.c +++ b/drivers/gpio/mpc8xxx_gpio.c @@ -9,7 +9,6 @@
- Copyright 2020-2021 NXP
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index c97e44005ee1..5a40304f1f93 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index f5d9ab54e817..2fb266f12854 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 43bb4df4da72..63a202310a5e 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -7,7 +7,6 @@
- Copyright (C) 2013 John Crispin blogic@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index f706a6dfa4fe..0d82380dde4a 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 1dec4e35e0a7..cac6b32b2796 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -6,7 +6,6 @@
- Copyright (C) 2011
- Stefano Babic, DENX Software Engineering, sbabic@denx.de
*/ -#include <common.h> #include <errno.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 1356f89ac2f0..80910c9ec4c2 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -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> diff --git a/drivers/gpio/nmk_gpio.c b/drivers/gpio/nmk_gpio.c index e1bb41b196cc..c2716e717632 100644 --- a/drivers/gpio/nmk_gpio.c +++ b/drivers/gpio/nmk_gpio.c @@ -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> diff --git a/drivers/gpio/npcm_gpio.c b/drivers/gpio/npcm_gpio.c index 98e5dc79c1cc..da3b3ffbc92f 100644 --- a/drivers/gpio/npcm_gpio.c +++ b/drivers/gpio/npcm_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index e2565d709535..741b2ff7f177 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -4,7 +4,6 @@
- DeokJin, Lee truevirtue@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 50c4f75ddf5d..1aceafcdf581 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -17,7 +17,6 @@
- Copyright (C) 2003-2005 Nokia Corporation
- Written by Juha Yrjölä juha.yrjola@nokia.com
*/ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index b5ed35256ee7..fc4dcf9f9861 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -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 diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index b0c66d18317e..80ebaadb3e43 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -18,7 +18,6 @@
- Support Polarity Inversion
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index f38e215c4d6e..10ae86ec5d45 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -17,7 +17,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index 975a2af3ccb8..d8edfefb2d75 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -4,7 +4,6 @@
- Purna Chandra Mandal purna.mandal@microchip.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 0dd3434e9e04..80fee841ee3f 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/gpio/qe_gpio.c b/drivers/gpio/qe_gpio.c index 16e8d1eae6ed..ac6e68299e07 100644 --- a/drivers/gpio/qe_gpio.c +++ b/drivers/gpio/qe_gpio.c @@ -4,7 +4,6 @@
- Christophe Leroy christophe.leroy@csgroup.eu
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 2e901ac5c734..24ba12dd820e 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -6,7 +6,6 @@
- Peter, Software Engineering, superpeter.cai@gmail.com.
*/
-#include <common.h> #include <dm.h> #include <syscon.h> #include <linux/errno.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 06ed585f3d64..83e65aa4aec4 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -4,7 +4,6 @@
- Minkyu Kang mk7.kang@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c index 305f9a6ff62f..f5be27814438 100644 --- a/drivers/gpio/sandbox.c +++ b/drivers/gpio/sandbox.c @@ -3,7 +3,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/gpio/sandbox_test.c b/drivers/gpio/sandbox_test.c index c76e19974196..4699a976252c 100644 --- a/drivers/gpio/sandbox_test.c +++ b/drivers/gpio/sandbox_test.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h> #include <asm-generic/gpio.h>
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 2495d6c1c154..9f6051c1c4d3 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -9,7 +9,6 @@
- for more details.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/bitops.h> diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 151f484e8fd1..90f59120ecd0 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 SiFive, Inc.
*/
-#include <common.h> #include <dm.h> #include <asm/arch/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/sl28cpld-gpio.c b/drivers/gpio/sl28cpld-gpio.c index 700fc3df298c..e85f9260ec39 100644 --- a/drivers/gpio/sl28cpld-gpio.c +++ b/drivers/gpio/sl28cpld-gpio.c @@ -5,7 +5,6 @@
- Copyright (c) 2021 Michael Walle michael@walle.cc
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <sl28cpld.h> diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 7a2ca91c7692..b8eb55465d3c 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index e4463a223f7b..5e86474d3dbb 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -9,7 +9,6 @@
- Tom Cubie tangliang@allwinnertech.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index b07496e6e49c..1d45b5007461 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -20,7 +20,7 @@
- MA 02111-1307 USA
*/
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> #include <tca642x.h> diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index 94a20d143e10..01b8245c8d5b 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -4,7 +4,6 @@
- (based on tegra_gpio.c)
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 55105f2802c3..0c40d36c41e2 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -10,7 +10,6 @@
- Tom Warren (twarren@nvidia.com)
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index 339392dcd35a..5b4bba96da70 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -4,7 +4,6 @@
- Bhuvanchandra DV, Toradex, Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index fa8d630b4658..c0a92378b035 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 - 2018 Xilinx, Michal Simek
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 71a56127c0aa..7db58c70663e 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -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> diff --git a/drivers/gpio/zynqmp_gpio_modepin.c b/drivers/gpio/zynqmp_gpio_modepin.c index e9565ff5430e..8aaffaf37b3d 100644 --- a/drivers/gpio/zynqmp_gpio_modepin.c +++ b/drivers/gpio/zynqmp_gpio_modepin.c @@ -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

Hello Tom,
On 02.05.24 03:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Qu Wenruo wqu@suse.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Heiko Schocher hs@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Piotr Wojtaszczyk piotr.wojtaszczyk@timesys.com Cc: Jim Liu jim.t90615@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com
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(-)
Thanks for this cleanup!
Reviewed-by: Heiko Schocher hs@denx.de
bye, Heiko

On 02.05.24 03:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Qu Wenruo wqu@suse.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Heiko Schocher hs@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Piotr Wojtaszczyk piotr.wojtaszczyk@timesys.com Cc: Jim Liu jim.t90615@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com
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(-)
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 7a7cfe86114b..331428ccdb9a 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -8,7 +8,6 @@
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index edc5a8093b0c..7ba1595e4ae3 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -4,7 +4,6 @@
- Copyright (C) 2011 Missing Link Electronics
Joachim Foerster <joachim@missinglinkelectronics.com>
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c index f80f4afd24ff..50a698159075 100644 --- a/drivers/gpio/at91_gpio.c +++ b/drivers/gpio/at91_gpio.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index be1dd752bf76..65d064b46dfb 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -5,7 +5,6 @@
- Copyright (C) 2015 Atmel Corporation
Wenyou.Yang <wenyou.yang@atmel.com>
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c index af6631697f58..6e632c8fc730 100644 --- a/drivers/gpio/axp_gpio.c +++ b/drivers/gpio/axp_gpio.c @@ -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> diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index 704a6fa71210..ccf84fdae11f 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index e031f71a784d..e76c84e806ad 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -7,7 +7,6 @@
- Copyright (C) 2008-2011 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/gpio.h> diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index 72ef523be960..e0ea14cce696 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -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> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index b310f2dbf651..1ccb9e69f158 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -6,7 +6,6 @@
- Laurence Withers lwithers@guralp.com
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/gpio/ftgpio010.c b/drivers/gpio/ftgpio010.c index 6c091d4fd874..4cb550a540c6 100644 --- a/drivers/gpio/ftgpio010.c +++ b/drivers/gpio/ftgpio010.c @@ -3,7 +3,6 @@
- Faraday Technology's FTGPIO010 controller.
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 1c3d18796b3a..c5608f4a9dfc 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -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>
diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c index ca7aa14eeb23..c8d2dff5f7bf 100644 --- a/drivers/gpio/gpio-fxl6408.c +++ b/drivers/gpio/gpio-fxl6408.c @@ -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> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 707785012322..d1a399388095 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index f14be871e8d0..8c3fe61b25f6 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 4234cd912c9f..92ce68dd4a13 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 61c705b5ac56..033fb4b60ee6 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/gpio/gpio_slg7xl45106.c b/drivers/gpio/gpio_slg7xl45106.c index 4ad06c18b4bd..a7c9ff53af7d 100644 --- a/drivers/gpio/gpio_slg7xl45106.c +++ b/drivers/gpio/gpio_slg7xl45106.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Xilinx, Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index e287c31b93fc..7ceb5f424c9d 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -4,7 +4,6 @@
- Peter Griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 66f8441840b5..734b31d3dc17 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -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> diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c index 3227a8d5b574..fc1d418315c5 100644 --- a/drivers/gpio/imx_rgpio2p.c +++ b/drivers/gpio/imx_rgpio2p.c @@ -5,7 +5,6 @@
- RGPIO2P driver for the Freescale i.MX7ULP.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 20af35de2cf5..53ed0a3eed06 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2012 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c index 4a3ec6d63502..0ab6e8a90bcb 100644 --- a/drivers/gpio/intel_gpio.c +++ b/drivers/gpio/intel_gpio.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 2ed0d0bea9a5..096bc3b05bb7 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -28,7 +28,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 7187d3257b90..8688f12e43c7 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Broadcom
*/
-#include <common.h> #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c index a15769793f17..e183f5594b51 100644 --- a/drivers/gpio/kw_gpio.c +++ b/drivers/gpio/kw_gpio.c @@ -12,7 +12,6 @@
- Dieter Kiermaier dk-arm-linux@gmx.de
*/
-#include <common.h> #include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/gpio/lpc32xx_gpio.c b/drivers/gpio/lpc32xx_gpio.c index de66c765d11e..2b537e007ba9 100644 --- a/drivers/gpio/lpc32xx_gpio.c +++ b/drivers/gpio/lpc32xx_gpio.c @@ -6,7 +6,6 @@
- Written-by: Albert ARIBAUD albert.aribaud@3adev.fr
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch-lpc32xx/cpu.h> #include <asm/arch-lpc32xx/gpio.h> diff --git a/drivers/gpio/max7320_gpio.c b/drivers/gpio/max7320_gpio.c index 647aed907b4c..f733cc924e56 100644 --- a/drivers/gpio/max7320_gpio.c +++ b/drivers/gpio/max7320_gpio.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/mcp230xx_gpio.c b/drivers/gpio/mcp230xx_gpio.c index df99fde56602..42e7fe9d474c 100644 --- a/drivers/gpio/mcp230xx_gpio.c +++ b/drivers/gpio/mcp230xx_gpio.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c index fd26a36a0f94..2be8c73ae3d7 100644 --- a/drivers/gpio/mpc83xx_spisel_boot.c +++ b/drivers/gpio/mpc83xx_spisel_boot.c @@ -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> diff --git a/drivers/gpio/mpc8xx_gpio.c b/drivers/gpio/mpc8xx_gpio.c index 2f6534653313..e2b12f8b56c7 100644 --- a/drivers/gpio/mpc8xx_gpio.c +++ b/drivers/gpio/mpc8xx_gpio.c @@ -10,7 +10,6 @@
- Copyright 2010 eXMeritus, A Boeing Company
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index f7ffd8926ade..e9bd38f162c1 100644 --- a/drivers/gpio/mpc8xxx_gpio.c +++ b/drivers/gpio/mpc8xxx_gpio.c @@ -9,7 +9,6 @@
- Copyright 2020-2021 NXP
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index c97e44005ee1..5a40304f1f93 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index f5d9ab54e817..2fb266f12854 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 43bb4df4da72..63a202310a5e 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -7,7 +7,6 @@
- Copyright (C) 2013 John Crispin blogic@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index f706a6dfa4fe..0d82380dde4a 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 1dec4e35e0a7..cac6b32b2796 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -6,7 +6,6 @@
- Copyright (C) 2011
- Stefano Babic, DENX Software Engineering, sbabic@denx.de
*/ -#include <common.h> #include <errno.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 1356f89ac2f0..80910c9ec4c2 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -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> diff --git a/drivers/gpio/nmk_gpio.c b/drivers/gpio/nmk_gpio.c index e1bb41b196cc..c2716e717632 100644 --- a/drivers/gpio/nmk_gpio.c +++ b/drivers/gpio/nmk_gpio.c @@ -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> diff --git a/drivers/gpio/npcm_gpio.c b/drivers/gpio/npcm_gpio.c index 98e5dc79c1cc..da3b3ffbc92f 100644 --- a/drivers/gpio/npcm_gpio.c +++ b/drivers/gpio/npcm_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index e2565d709535..741b2ff7f177 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -4,7 +4,6 @@
- DeokJin, Lee truevirtue@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 50c4f75ddf5d..1aceafcdf581 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -17,7 +17,6 @@
- Copyright (C) 2003-2005 Nokia Corporation
- Written by Juha Yrjölä juha.yrjola@nokia.com
*/ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index b5ed35256ee7..fc4dcf9f9861 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -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 diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index b0c66d18317e..80ebaadb3e43 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -18,7 +18,6 @@
- Support Polarity Inversion
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index f38e215c4d6e..10ae86ec5d45 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -17,7 +17,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index 975a2af3ccb8..d8edfefb2d75 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -4,7 +4,6 @@
- Purna Chandra Mandal purna.mandal@microchip.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 0dd3434e9e04..80fee841ee3f 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/gpio/qe_gpio.c b/drivers/gpio/qe_gpio.c index 16e8d1eae6ed..ac6e68299e07 100644 --- a/drivers/gpio/qe_gpio.c +++ b/drivers/gpio/qe_gpio.c @@ -4,7 +4,6 @@
- Christophe Leroy christophe.leroy@csgroup.eu
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 2e901ac5c734..24ba12dd820e 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -6,7 +6,6 @@
- Peter, Software Engineering, superpeter.cai@gmail.com.
*/
-#include <common.h> #include <dm.h> #include <syscon.h> #include <linux/errno.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 06ed585f3d64..83e65aa4aec4 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -4,7 +4,6 @@
- Minkyu Kang mk7.kang@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c index 305f9a6ff62f..f5be27814438 100644 --- a/drivers/gpio/sandbox.c +++ b/drivers/gpio/sandbox.c @@ -3,7 +3,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/gpio/sandbox_test.c b/drivers/gpio/sandbox_test.c index c76e19974196..4699a976252c 100644 --- a/drivers/gpio/sandbox_test.c +++ b/drivers/gpio/sandbox_test.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h> #include <asm-generic/gpio.h>
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 2495d6c1c154..9f6051c1c4d3 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -9,7 +9,6 @@
- for more details.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/bitops.h> diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 151f484e8fd1..90f59120ecd0 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 SiFive, Inc.
*/
-#include <common.h> #include <dm.h> #include <asm/arch/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/sl28cpld-gpio.c b/drivers/gpio/sl28cpld-gpio.c index 700fc3df298c..e85f9260ec39 100644 --- a/drivers/gpio/sl28cpld-gpio.c +++ b/drivers/gpio/sl28cpld-gpio.c @@ -5,7 +5,6 @@
- Copyright (c) 2021 Michael Walle michael@walle.cc
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <sl28cpld.h> diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 7a2ca91c7692..b8eb55465d3c 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index e4463a223f7b..5e86474d3dbb 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -9,7 +9,6 @@
- Tom Cubie tangliang@allwinnertech.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index b07496e6e49c..1d45b5007461 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -20,7 +20,7 @@
- MA 02111-1307 USA
*/
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> #include <tca642x.h> diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index 94a20d143e10..01b8245c8d5b 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -4,7 +4,6 @@
- (based on tegra_gpio.c)
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 55105f2802c3..0c40d36c41e2 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -10,7 +10,6 @@
- Tom Warren (twarren@nvidia.com)
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index 339392dcd35a..5b4bba96da70 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -4,7 +4,6 @@
- Bhuvanchandra DV, Toradex, Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index fa8d630b4658..c0a92378b035 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 - 2018 Xilinx, Michal Simek
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 71a56127c0aa..7db58c70663e 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -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> diff --git a/drivers/gpio/zynqmp_gpio_modepin.c b/drivers/gpio/zynqmp_gpio_modepin.c index e9565ff5430e..8aaffaf37b3d 100644 --- a/drivers/gpio/zynqmp_gpio_modepin.c +++ b/drivers/gpio/zynqmp_gpio_modepin.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Xilinx, Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h>

On 2024/5/2 09:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Andre Przywara andre.przywara@arm.com Cc: Qu Wenruo wqu@suse.com Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Heiko Schocher hs@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Piotr Wojtaszczyk piotr.wojtaszczyk@timesys.com Cc: Jim Liu jim.t90615@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Samuel Holland samuel@sholland.org Cc: Sam Edwards CFSworks@gmail.com
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(-)
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 7a7cfe86114b..331428ccdb9a 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -8,7 +8,6 @@
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index edc5a8093b0c..7ba1595e4ae3 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -4,7 +4,6 @@
- Copyright (C) 2011 Missing Link Electronics
Joachim Foerster <joachim@missinglinkelectronics.com>
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c index f80f4afd24ff..50a698159075 100644 --- a/drivers/gpio/at91_gpio.c +++ b/drivers/gpio/at91_gpio.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index be1dd752bf76..65d064b46dfb 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -5,7 +5,6 @@
- Copyright (C) 2015 Atmel Corporation
Wenyou.Yang <wenyou.yang@atmel.com>
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c index af6631697f58..6e632c8fc730 100644 --- a/drivers/gpio/axp_gpio.c +++ b/drivers/gpio/axp_gpio.c @@ -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> diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index 704a6fa71210..ccf84fdae11f 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index e031f71a784d..e76c84e806ad 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -7,7 +7,6 @@
- Copyright (C) 2008-2011 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/gpio.h> diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index 72ef523be960..e0ea14cce696 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -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> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index b310f2dbf651..1ccb9e69f158 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -6,7 +6,6 @@
- Laurence Withers lwithers@guralp.com
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/gpio/ftgpio010.c b/drivers/gpio/ftgpio010.c index 6c091d4fd874..4cb550a540c6 100644 --- a/drivers/gpio/ftgpio010.c +++ b/drivers/gpio/ftgpio010.c @@ -3,7 +3,6 @@
- Faraday Technology's FTGPIO010 controller.
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 1c3d18796b3a..c5608f4a9dfc 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -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>
diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c index ca7aa14eeb23..c8d2dff5f7bf 100644 --- a/drivers/gpio/gpio-fxl6408.c +++ b/drivers/gpio/gpio-fxl6408.c @@ -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> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 707785012322..d1a399388095 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index f14be871e8d0..8c3fe61b25f6 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 4234cd912c9f..92ce68dd4a13 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 61c705b5ac56..033fb4b60ee6 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/gpio/gpio_slg7xl45106.c b/drivers/gpio/gpio_slg7xl45106.c index 4ad06c18b4bd..a7c9ff53af7d 100644 --- a/drivers/gpio/gpio_slg7xl45106.c +++ b/drivers/gpio/gpio_slg7xl45106.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Xilinx, Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index e287c31b93fc..7ceb5f424c9d 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -4,7 +4,6 @@
- Peter Griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 66f8441840b5..734b31d3dc17 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -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> diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c index 3227a8d5b574..fc1d418315c5 100644 --- a/drivers/gpio/imx_rgpio2p.c +++ b/drivers/gpio/imx_rgpio2p.c @@ -5,7 +5,6 @@
- RGPIO2P driver for the Freescale i.MX7ULP.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 20af35de2cf5..53ed0a3eed06 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2012 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c index 4a3ec6d63502..0ab6e8a90bcb 100644 --- a/drivers/gpio/intel_gpio.c +++ b/drivers/gpio/intel_gpio.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 2ed0d0bea9a5..096bc3b05bb7 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -28,7 +28,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 7187d3257b90..8688f12e43c7 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Broadcom
*/
-#include <common.h> #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c index a15769793f17..e183f5594b51 100644 --- a/drivers/gpio/kw_gpio.c +++ b/drivers/gpio/kw_gpio.c @@ -12,7 +12,6 @@
- Dieter Kiermaier dk-arm-linux@gmx.de
*/
-#include <common.h> #include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/gpio/lpc32xx_gpio.c b/drivers/gpio/lpc32xx_gpio.c index de66c765d11e..2b537e007ba9 100644 --- a/drivers/gpio/lpc32xx_gpio.c +++ b/drivers/gpio/lpc32xx_gpio.c @@ -6,7 +6,6 @@
- Written-by: Albert ARIBAUD albert.aribaud@3adev.fr
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch-lpc32xx/cpu.h> #include <asm/arch-lpc32xx/gpio.h> diff --git a/drivers/gpio/max7320_gpio.c b/drivers/gpio/max7320_gpio.c index 647aed907b4c..f733cc924e56 100644 --- a/drivers/gpio/max7320_gpio.c +++ b/drivers/gpio/max7320_gpio.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/mcp230xx_gpio.c b/drivers/gpio/mcp230xx_gpio.c index df99fde56602..42e7fe9d474c 100644 --- a/drivers/gpio/mcp230xx_gpio.c +++ b/drivers/gpio/mcp230xx_gpio.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c index fd26a36a0f94..2be8c73ae3d7 100644 --- a/drivers/gpio/mpc83xx_spisel_boot.c +++ b/drivers/gpio/mpc83xx_spisel_boot.c @@ -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> diff --git a/drivers/gpio/mpc8xx_gpio.c b/drivers/gpio/mpc8xx_gpio.c index 2f6534653313..e2b12f8b56c7 100644 --- a/drivers/gpio/mpc8xx_gpio.c +++ b/drivers/gpio/mpc8xx_gpio.c @@ -10,7 +10,6 @@
- Copyright 2010 eXMeritus, A Boeing Company
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index f7ffd8926ade..e9bd38f162c1 100644 --- a/drivers/gpio/mpc8xxx_gpio.c +++ b/drivers/gpio/mpc8xxx_gpio.c @@ -9,7 +9,6 @@
- Copyright 2020-2021 NXP
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index c97e44005ee1..5a40304f1f93 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index f5d9ab54e817..2fb266f12854 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 43bb4df4da72..63a202310a5e 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -7,7 +7,6 @@
- Copyright (C) 2013 John Crispin blogic@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index f706a6dfa4fe..0d82380dde4a 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 1dec4e35e0a7..cac6b32b2796 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -6,7 +6,6 @@
- Copyright (C) 2011
- Stefano Babic, DENX Software Engineering, sbabic@denx.de
*/ -#include <common.h> #include <errno.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 1356f89ac2f0..80910c9ec4c2 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -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> diff --git a/drivers/gpio/nmk_gpio.c b/drivers/gpio/nmk_gpio.c index e1bb41b196cc..c2716e717632 100644 --- a/drivers/gpio/nmk_gpio.c +++ b/drivers/gpio/nmk_gpio.c @@ -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> diff --git a/drivers/gpio/npcm_gpio.c b/drivers/gpio/npcm_gpio.c index 98e5dc79c1cc..da3b3ffbc92f 100644 --- a/drivers/gpio/npcm_gpio.c +++ b/drivers/gpio/npcm_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index e2565d709535..741b2ff7f177 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -4,7 +4,6 @@
- DeokJin, Lee truevirtue@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 50c4f75ddf5d..1aceafcdf581 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -17,7 +17,6 @@
- Copyright (C) 2003-2005 Nokia Corporation
- Written by Juha Yrjölä juha.yrjola@nokia.com
*/ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index b5ed35256ee7..fc4dcf9f9861 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -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 diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index b0c66d18317e..80ebaadb3e43 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -18,7 +18,6 @@
- Support Polarity Inversion
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index f38e215c4d6e..10ae86ec5d45 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -17,7 +17,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index 975a2af3ccb8..d8edfefb2d75 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -4,7 +4,6 @@
- Purna Chandra Mandal purna.mandal@microchip.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 0dd3434e9e04..80fee841ee3f 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/gpio/qe_gpio.c b/drivers/gpio/qe_gpio.c index 16e8d1eae6ed..ac6e68299e07 100644 --- a/drivers/gpio/qe_gpio.c +++ b/drivers/gpio/qe_gpio.c @@ -4,7 +4,6 @@
- Christophe Leroy christophe.leroy@csgroup.eu
*/
-#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 2e901ac5c734..24ba12dd820e 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -6,7 +6,6 @@
- Peter, Software Engineering, superpeter.cai@gmail.com.
*/
-#include <common.h> #include <dm.h> #include <syscon.h> #include <linux/errno.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 06ed585f3d64..83e65aa4aec4 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -4,7 +4,6 @@
- Minkyu Kang mk7.kang@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c index 305f9a6ff62f..f5be27814438 100644 --- a/drivers/gpio/sandbox.c +++ b/drivers/gpio/sandbox.c @@ -3,7 +3,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/gpio/sandbox_test.c b/drivers/gpio/sandbox_test.c index c76e19974196..4699a976252c 100644 --- a/drivers/gpio/sandbox_test.c +++ b/drivers/gpio/sandbox_test.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h> #include <asm-generic/gpio.h>
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 2495d6c1c154..9f6051c1c4d3 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -9,7 +9,6 @@
- for more details.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/bitops.h> diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 151f484e8fd1..90f59120ecd0 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 SiFive, Inc.
*/
-#include <common.h> #include <dm.h> #include <asm/arch/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/sl28cpld-gpio.c b/drivers/gpio/sl28cpld-gpio.c index 700fc3df298c..e85f9260ec39 100644 --- a/drivers/gpio/sl28cpld-gpio.c +++ b/drivers/gpio/sl28cpld-gpio.c @@ -5,7 +5,6 @@
- Copyright (c) 2021 Michael Walle michael@walle.cc
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <sl28cpld.h> diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 7a2ca91c7692..b8eb55465d3c 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index e4463a223f7b..5e86474d3dbb 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -9,7 +9,6 @@
- Tom Cubie tangliang@allwinnertech.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index b07496e6e49c..1d45b5007461 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -20,7 +20,7 @@
- MA 02111-1307 USA
*/
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> #include <tca642x.h> diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index 94a20d143e10..01b8245c8d5b 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -4,7 +4,6 @@
- (based on tegra_gpio.c)
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 55105f2802c3..0c40d36c41e2 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -10,7 +10,6 @@
- Tom Warren (twarren@nvidia.com)
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index 339392dcd35a..5b4bba96da70 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -4,7 +4,6 @@
- Bhuvanchandra DV, Toradex, Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index fa8d630b4658..c0a92378b035 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 - 2018 Xilinx, Michal Simek
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 71a56127c0aa..7db58c70663e 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -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> diff --git a/drivers/gpio/zynqmp_gpio_modepin.c b/drivers/gpio/zynqmp_gpio_modepin.c index e9565ff5430e..8aaffaf37b3d 100644 --- a/drivers/gpio/zynqmp_gpio_modepin.c +++ b/drivers/gpio/zynqmp_gpio_modepin.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Xilinx, Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org --- drivers/hwspinlock/hwspinlock-uclass.c | 1 - drivers/hwspinlock/sandbox_hwspinlock.c | 1 - drivers/hwspinlock/stm32_hwspinlock.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/hwspinlock/hwspinlock-uclass.c b/drivers/hwspinlock/hwspinlock-uclass.c index e9a4d7f9fbbd..ea93efc97df7 100644 --- a/drivers/hwspinlock/hwspinlock-uclass.c +++ b/drivers/hwspinlock/hwspinlock-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_HWSPINLOCK
-#include <common.h> #include <dm.h> #include <errno.h> #include <hwspinlock.h> diff --git a/drivers/hwspinlock/sandbox_hwspinlock.c b/drivers/hwspinlock/sandbox_hwspinlock.c index be920f5f99df..fcda55517e1e 100644 --- a/drivers/hwspinlock/sandbox_hwspinlock.c +++ b/drivers/hwspinlock/sandbox_hwspinlock.c @@ -3,7 +3,6 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */
-#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <asm/state.h> diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c index 346b138e98f0..5273b9bfed89 100644 --- a/drivers/hwspinlock/stm32_hwspinlock.c +++ b/drivers/hwspinlock/stm32_hwspinlock.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_HWSPINLOCK
-#include <common.h> #include <clk.h> #include <dm.h> #include <hwspinlock.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Heiko Schocher hs@denx.de Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com --- drivers/i2c/acpi_i2c.c | 1 - drivers/i2c/ast2600_i2c.c | 1 - drivers/i2c/ast_i2c.c | 1 - drivers/i2c/at91_i2c.c | 1 - drivers/i2c/cros_ec_ldo.c | 1 - drivers/i2c/cros_ec_tunnel.c | 1 - drivers/i2c/davinci_i2c.c | 2 +- drivers/i2c/designware_i2c.c | 1 - drivers/i2c/designware_i2c_pci.c | 1 - drivers/i2c/exynos_hs_i2c.c | 1 - drivers/i2c/fsl_i2c.c | 2 +- drivers/i2c/i2c-cdns.c | 1 - drivers/i2c/i2c-cortina.c | 2 +- drivers/i2c/i2c-emul-uclass.c | 1 - drivers/i2c/i2c-gpio.c | 1 - drivers/i2c/i2c-microchip.c | 1 - drivers/i2c/i2c-uclass.c | 1 - drivers/i2c/i2c-versatile.c | 1 - drivers/i2c/i2c_core.c | 2 +- drivers/i2c/ihs_i2c.c | 1 - drivers/i2c/imx_lpi2c.c | 1 - drivers/i2c/intel_i2c.c | 2 +- drivers/i2c/iproc_i2c.c | 1 - drivers/i2c/lpc32xx_i2c.c | 2 +- drivers/i2c/meson_i2c.c | 1 - drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +- drivers/i2c/muxes/i2c-mux-gpio.c | 1 - drivers/i2c/muxes/i2c-mux-uclass.c | 1 - drivers/i2c/muxes/pca954x.c | 1 - drivers/i2c/mv_i2c.c | 1 - drivers/i2c/mvtwsi.c | 2 +- drivers/i2c/mxc_i2c.c | 2 +- drivers/i2c/nx_i2c.c | 2 +- drivers/i2c/ocores_i2c.c | 1 - drivers/i2c/omap24xx_i2c.c | 1 - drivers/i2c/qup_i2c.c | 1 - drivers/i2c/rcar_i2c.c | 1 - drivers/i2c/rcar_iic.c | 1 - drivers/i2c/rk_i2c.c | 1 - drivers/i2c/s3c24x0_i2c.c | 2 +- drivers/i2c/sandbox_i2c.c | 1 - drivers/i2c/sh_i2c.c | 1 - drivers/i2c/soft_i2c.c | 2 +- drivers/i2c/stm32f7_i2c.c | 1 - drivers/i2c/sun6i_p2wi.c | 1 - drivers/i2c/sun8i_rsb.c | 1 - drivers/i2c/tegra186_bpmp_i2c.c | 1 - drivers/i2c/tegra_i2c.c | 1 - drivers/i2c/xilinx_xiic.c | 1 - 49 files changed, 12 insertions(+), 49 deletions(-)
diff --git a/drivers/i2c/acpi_i2c.c b/drivers/i2c/acpi_i2c.c index 142f41178c10..82cb5db5cc8b 100644 --- a/drivers/i2c/acpi_i2c.c +++ b/drivers/i2c/acpi_i2c.c @@ -3,7 +3,6 @@ * Copyright 2019 Google LLC */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/ast2600_i2c.c b/drivers/i2c/ast2600_i2c.c index e566b01feacf..9d1d70670b95 100644 --- a/drivers/i2c/ast2600_i2c.c +++ b/drivers/i2c/ast2600_i2c.c @@ -2,7 +2,6 @@ /* * Copyright ASPEED Technology Inc. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 1c1d5566dad4..02ee406bbd7d 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -5,7 +5,6 @@ * Copyright 2017 Google, Inc. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index b7a25885e666..cfae36c74d19 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -8,7 +8,6 @@ #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_ldo.c b/drivers/i2c/cros_ec_ldo.c index c593540ac138..dfe823c142c5 100644 --- a/drivers/i2c/cros_ec_ldo.c +++ b/drivers/i2c/cros_ec_ldo.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_tunnel.c b/drivers/i2c/cros_ec_tunnel.c index 75828b6e7c27..2d610e0a2aa9 100644 --- a/drivers/i2c/cros_ec_tunnel.c +++ b/drivers/i2c/cros_ec_tunnel.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c index 25ef937dc0b3..391327472087 100644 --- a/drivers/i2c/davinci_i2c.c +++ b/drivers/i2c/davinci_i2c.c @@ -11,7 +11,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */
-#include <common.h> +#include <config.h> #include <i2c.h> #include <dm.h> #include <log.h> diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 29cf63375c7f..e8c1623d41fd 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,7 +4,6 @@ * Vipin Kumar, STMicroelectronics, vipin.kumar@st.com. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index 28495a3f4285..11c986722650 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -5,7 +5,6 @@ * Copyright 2019 Google Inc */
-#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index a7349e06cfd3..9a364fdae375 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -6,7 +6,6 @@ * David Mueller, ELSOFT AG, d.mueller@elsoft.ch */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index d9d8ee81d2ed..bac14fb2f422 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -6,7 +6,7 @@ * Changes for multibus/multiadapter I2C support. */
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> /* Functional interface */ #include <log.h> diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 935b2ac63772..3f7cf8533ec7 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers/i2c/i2c-cdns.c @@ -7,7 +7,6 @@ * with added driver-model support and code cleanup. */
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c index 960ae8c700f9..96f957164c19 100644 --- a/drivers/i2c/i2c-cortina.c +++ b/drivers/i2c/i2c-cortina.c @@ -4,12 +4,12 @@ * Arthur Li, Cortina Access, arthur.li@cortina-access.com. */
-#include <common.h> #include <i2c.h> #include <log.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> +#include <time.h> #include "i2c-cortina.h"
static void set_speed(struct i2c_regs *regs, int i2c_spd) diff --git a/drivers/i2c/i2c-emul-uclass.c b/drivers/i2c/i2c-emul-uclass.c index d421ddfcbe29..0954d53847e6 100644 --- a/drivers/i2c/i2c-emul-uclass.c +++ b/drivers/i2c/i2c-emul-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C_EMUL
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 5fc3cfe42ef7..e0a575fb4a48 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c @@ -5,7 +5,6 @@ * This file is based on: drivers/i2c/soft-i2c.c, * with added driver-model support and code cleanup. */ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-microchip.c b/drivers/i2c/i2c-microchip.c index d453e243d6f2..788747879a25 100644 --- a/drivers/i2c/i2c-microchip.c +++ b/drivers/i2c/i2c-microchip.c @@ -6,7 +6,6 @@ * Padmarao Begari padmarao.begari@microchip.com * Conor Dooley conor.dooley@microchip.com */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 98f95859f3bc..380a9f8f3add 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c index 0a1a85dfc288..a8f0a170f799 100644 --- a/drivers/i2c/i2c-versatile.c +++ b/drivers/i2c/i2c-versatile.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c index fe0cd75d94a1..7c43a5546d3d 100644 --- a/drivers/i2c/i2c_core.c +++ b/drivers/i2c/i2c_core.c @@ -7,7 +7,7 @@ * * Multibus/multiadapter I2C core functions (wrappers) */ -#include <common.h> +#include <config.h> #include <i2c.h> #include <linker_lists.h> #include <asm/global_data.h> diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index d715714638ff..dc88cd19167e 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -4,7 +4,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc */
-#include <common.h> #include <i2c.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index ad9293c92e1a..6c0d8eb5f4f5 100644 --- a/drivers/i2c/imx_lpi2c.c +++ b/drivers/i2c/imx_lpi2c.c @@ -3,7 +3,6 @@ * Copyright 2016 Freescale Semiconductors, Inc. */
-#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c index 4fc6f1a11a75..d8ceea10cda7 100644 --- a/drivers/i2c/intel_i2c.c +++ b/drivers/i2c/intel_i2c.c @@ -7,11 +7,11 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> #include <pci.h> +#include <time.h> #include <asm/io.h>
/* PCI Configuration Space (D31:F3): SMBus */ diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index 39af49c4ec54..6570f64fe774 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -6,7 +6,6 @@
#include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <config.h> #include <dm.h> #include <linux/printk.h> diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index 496f4feec566..a4e42e64a9b8 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -6,7 +6,7 @@ * Written-by: Albert ARIBAUD - 3ADEV albert.aribaud@3adev.fr */
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/io.h> #include <i2c.h> diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 434e3461b1dd..19f1b6b08196 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -2,7 +2,6 @@ /* * (C) Copyright 2017 - Beniamino Galvani b.galvani@gmail.com */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c index ad730e0e79ff..a83d7cb0829d 100644 --- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c +++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c @@ -4,12 +4,12 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> #include <log.h> #include <malloc.h> +#include <time.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 4ca206115f85..f212bd1f9836 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -10,7 +10,6 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/i2c/muxes/i2c-mux-uclass.c b/drivers/i2c/muxes/i2c-mux-uclass.c index a5d1bb0576db..d1999d21feb7 100644 --- a/drivers/i2c/muxes/i2c-mux-uclass.c +++ b/drivers/i2c/muxes/i2c-mux-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2C_MUX
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 0034dfbf6daf..b4e3e16a9764 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -5,7 +5,6 @@ * Written by Michal Simek */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 5bc9cd7b295a..949cc45d308d 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -16,7 +16,6 @@ * Murray.Jensen@cmst.csiro.au, 27-Jan-01. */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index c38330f758a9..44e8e191b039 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -7,7 +7,7 @@ * Copyright (c) 2010 Albert Aribaud. */
-#include <common.h> +#include <config.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index d501133a0c8f..0acdaf7e7431 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -14,7 +14,7 @@ * */
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c index 07cda0fa6793..8562dd82bd63 100644 --- a/drivers/i2c/nx_i2c.c +++ b/drivers/i2c/nx_i2c.c @@ -1,8 +1,8 @@ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> #include <log.h> +#include <time.h> #include <asm/arch/nexell.h> #include <asm/arch/reset.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c index fff85118d0de..cf714d22ee46 100644 --- a/drivers/i2c/ocores_i2c.c +++ b/drivers/i2c/ocores_i2c.c @@ -12,7 +12,6 @@ * Andreas Larsson andreas@gaisler.com */
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index 6fc9d1eba9d1..ebe472e20cdb 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -38,7 +38,6 @@ * */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/qup_i2c.c b/drivers/i2c/qup_i2c.c index 5ae3cccd4acd..26707d63980e 100644 --- a/drivers/i2c/qup_i2c.c +++ b/drivers/i2c/qup_i2c.c @@ -9,7 +9,6 @@
#include <init.h> #include <env.h> -#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/delay.h> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index ff9a2d80dda1..f0f9b2afacfb 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -11,7 +11,6 @@ * Kuninori Morimoto kuninori.morimoto.gx@renesas.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index f0e50914c68d..2aa0f5fbfae4 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -9,7 +9,6 @@ * Copyright (C) 2011, 2013 Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 9927af94a80b..fa167268ae71 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -6,7 +6,6 @@ * Peter, Software Engineering, superpeter.cai@gmail.com. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 505e20bc61c8..72d2ab0f73d8 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -4,10 +4,10 @@ * David Mueller, ELSOFT AG, d.mueller@elsoft.ch */
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> +#include <time.h> #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) #include <log.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index c99e6de93327..74bb5e933973 100644 --- a/drivers/i2c/sandbox_i2c.c +++ b/drivers/i2c/sandbox_i2c.c @@ -5,7 +5,6 @@ * Copyright (c) 2014 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index 3335d9482a29..ab816101dea0 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -7,7 +7,6 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */
-#include <common.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index ed8ba47de450..1f2afc65e8b3 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -15,7 +15,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */
-#include <common.h> +#include <config.h> #if defined(CONFIG_AT91FAMILY) #include <asm/io.h> #include <asm/arch/hardware.h> diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index f42e08a64180..3f51b1dd1db4 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/sun6i_p2wi.c b/drivers/i2c/sun6i_p2wi.c index b8e07a533ca9..c927c0edf250 100644 --- a/drivers/i2c/sun6i_p2wi.c +++ b/drivers/i2c/sun6i_p2wi.c @@ -15,7 +15,6 @@
#include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sun8i_rsb.c b/drivers/i2c/sun8i_rsb.c index f36f2c7afacf..2197f1805663 100644 --- a/drivers/i2c/sun8i_rsb.c +++ b/drivers/i2c/sun8i_rsb.c @@ -10,7 +10,6 @@
#include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index 588f6bdcc4b4..d30eb5231229 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 57d77d56ea55..3c324bd26635 100644 --- a/drivers/i2c/tegra_i2c.c +++ b/drivers/i2c/tegra_i2c.c @@ -5,7 +5,6 @@ * NVIDIA Corporation <www.nvidia.com> */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/xilinx_xiic.c b/drivers/i2c/xilinx_xiic.c index 72199a62b2d7..056024e350fb 100644 --- a/drivers/i2c/xilinx_xiic.c +++ b/drivers/i2c/xilinx_xiic.c @@ -9,7 +9,6 @@ * Copyright (c) 2009-2010 Intel Corporation */
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h>

Hello Tom,
On 02.05.24 03:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Heiko Schocher hs@denx.de Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com
drivers/i2c/acpi_i2c.c | 1 - drivers/i2c/ast2600_i2c.c | 1 - drivers/i2c/ast_i2c.c | 1 - drivers/i2c/at91_i2c.c | 1 - drivers/i2c/cros_ec_ldo.c | 1 - drivers/i2c/cros_ec_tunnel.c | 1 - drivers/i2c/davinci_i2c.c | 2 +- drivers/i2c/designware_i2c.c | 1 - drivers/i2c/designware_i2c_pci.c | 1 - drivers/i2c/exynos_hs_i2c.c | 1 - drivers/i2c/fsl_i2c.c | 2 +- drivers/i2c/i2c-cdns.c | 1 - drivers/i2c/i2c-cortina.c | 2 +- drivers/i2c/i2c-emul-uclass.c | 1 - drivers/i2c/i2c-gpio.c | 1 - drivers/i2c/i2c-microchip.c | 1 - drivers/i2c/i2c-uclass.c | 1 - drivers/i2c/i2c-versatile.c | 1 - drivers/i2c/i2c_core.c | 2 +- drivers/i2c/ihs_i2c.c | 1 - drivers/i2c/imx_lpi2c.c | 1 - drivers/i2c/intel_i2c.c | 2 +- drivers/i2c/iproc_i2c.c | 1 - drivers/i2c/lpc32xx_i2c.c | 2 +- drivers/i2c/meson_i2c.c | 1 - drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +- drivers/i2c/muxes/i2c-mux-gpio.c | 1 - drivers/i2c/muxes/i2c-mux-uclass.c | 1 - drivers/i2c/muxes/pca954x.c | 1 - drivers/i2c/mv_i2c.c | 1 - drivers/i2c/mvtwsi.c | 2 +- drivers/i2c/mxc_i2c.c | 2 +- drivers/i2c/nx_i2c.c | 2 +- drivers/i2c/ocores_i2c.c | 1 - drivers/i2c/omap24xx_i2c.c | 1 - drivers/i2c/qup_i2c.c | 1 - drivers/i2c/rcar_i2c.c | 1 - drivers/i2c/rcar_iic.c | 1 - drivers/i2c/rk_i2c.c | 1 - drivers/i2c/s3c24x0_i2c.c | 2 +- drivers/i2c/sandbox_i2c.c | 1 - drivers/i2c/sh_i2c.c | 1 - drivers/i2c/soft_i2c.c | 2 +- drivers/i2c/stm32f7_i2c.c | 1 - drivers/i2c/sun6i_p2wi.c | 1 - drivers/i2c/sun8i_rsb.c | 1 - drivers/i2c/tegra186_bpmp_i2c.c | 1 - drivers/i2c/tegra_i2c.c | 1 - drivers/i2c/xilinx_xiic.c | 1 - 49 files changed, 12 insertions(+), 49 deletions(-)
Reviewed-by: Heiko Schocher hs@denx.de
bye, Heiko

On 02.05.24 03:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Heiko Schocher hs@denx.de Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com
drivers/i2c/acpi_i2c.c | 1 - drivers/i2c/ast2600_i2c.c | 1 - drivers/i2c/ast_i2c.c | 1 - drivers/i2c/at91_i2c.c | 1 - drivers/i2c/cros_ec_ldo.c | 1 - drivers/i2c/cros_ec_tunnel.c | 1 - drivers/i2c/davinci_i2c.c | 2 +- drivers/i2c/designware_i2c.c | 1 - drivers/i2c/designware_i2c_pci.c | 1 - drivers/i2c/exynos_hs_i2c.c | 1 - drivers/i2c/fsl_i2c.c | 2 +- drivers/i2c/i2c-cdns.c | 1 - drivers/i2c/i2c-cortina.c | 2 +- drivers/i2c/i2c-emul-uclass.c | 1 - drivers/i2c/i2c-gpio.c | 1 - drivers/i2c/i2c-microchip.c | 1 - drivers/i2c/i2c-uclass.c | 1 - drivers/i2c/i2c-versatile.c | 1 - drivers/i2c/i2c_core.c | 2 +- drivers/i2c/ihs_i2c.c | 1 - drivers/i2c/imx_lpi2c.c | 1 - drivers/i2c/intel_i2c.c | 2 +- drivers/i2c/iproc_i2c.c | 1 - drivers/i2c/lpc32xx_i2c.c | 2 +- drivers/i2c/meson_i2c.c | 1 - drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +- drivers/i2c/muxes/i2c-mux-gpio.c | 1 - drivers/i2c/muxes/i2c-mux-uclass.c | 1 - drivers/i2c/muxes/pca954x.c | 1 - drivers/i2c/mv_i2c.c | 1 - drivers/i2c/mvtwsi.c | 2 +- drivers/i2c/mxc_i2c.c | 2 +- drivers/i2c/nx_i2c.c | 2 +- drivers/i2c/ocores_i2c.c | 1 - drivers/i2c/omap24xx_i2c.c | 1 - drivers/i2c/qup_i2c.c | 1 - drivers/i2c/rcar_i2c.c | 1 - drivers/i2c/rcar_iic.c | 1 - drivers/i2c/rk_i2c.c | 1 - drivers/i2c/s3c24x0_i2c.c | 2 +- drivers/i2c/sandbox_i2c.c | 1 - drivers/i2c/sh_i2c.c | 1 - drivers/i2c/soft_i2c.c | 2 +- drivers/i2c/stm32f7_i2c.c | 1 - drivers/i2c/sun6i_p2wi.c | 1 - drivers/i2c/sun8i_rsb.c | 1 - drivers/i2c/tegra186_bpmp_i2c.c | 1 - drivers/i2c/tegra_i2c.c | 1 - drivers/i2c/xilinx_xiic.c | 1 - 49 files changed, 12 insertions(+), 49 deletions(-)
diff --git a/drivers/i2c/acpi_i2c.c b/drivers/i2c/acpi_i2c.c index 142f41178c10..82cb5db5cc8b 100644 --- a/drivers/i2c/acpi_i2c.c +++ b/drivers/i2c/acpi_i2c.c @@ -3,7 +3,6 @@
- Copyright 2019 Google LLC
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/ast2600_i2c.c b/drivers/i2c/ast2600_i2c.c index e566b01feacf..9d1d70670b95 100644 --- a/drivers/i2c/ast2600_i2c.c +++ b/drivers/i2c/ast2600_i2c.c @@ -2,7 +2,6 @@ /*
- Copyright ASPEED Technology Inc.
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 1c1d5566dad4..02ee406bbd7d 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -5,7 +5,6 @@
- Copyright 2017 Google, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index b7a25885e666..cfae36c74d19 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -8,7 +8,6 @@ #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_ldo.c b/drivers/i2c/cros_ec_ldo.c index c593540ac138..dfe823c142c5 100644 --- a/drivers/i2c/cros_ec_ldo.c +++ b/drivers/i2c/cros_ec_ldo.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_tunnel.c b/drivers/i2c/cros_ec_tunnel.c index 75828b6e7c27..2d610e0a2aa9 100644 --- a/drivers/i2c/cros_ec_tunnel.c +++ b/drivers/i2c/cros_ec_tunnel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c index 25ef937dc0b3..391327472087 100644 --- a/drivers/i2c/davinci_i2c.c +++ b/drivers/i2c/davinci_i2c.c @@ -11,7 +11,7 @@
- Please see doc/driver-model/i2c-howto.rst for instructions.
*/
-#include <common.h> +#include <config.h> #include <i2c.h> #include <dm.h> #include <log.h> diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 29cf63375c7f..e8c1623d41fd 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,7 +4,6 @@
- Vipin Kumar, STMicroelectronics, vipin.kumar@st.com.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index 28495a3f4285..11c986722650 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -5,7 +5,6 @@
- Copyright 2019 Google Inc
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index a7349e06cfd3..9a364fdae375 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -6,7 +6,6 @@
- David Mueller, ELSOFT AG, d.mueller@elsoft.ch
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index d9d8ee81d2ed..bac14fb2f422 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -6,7 +6,7 @@
- Changes for multibus/multiadapter I2C support.
*/
-#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> /* Functional interface */ #include <log.h> diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 935b2ac63772..3f7cf8533ec7 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers/i2c/i2c-cdns.c @@ -7,7 +7,6 @@
- with added driver-model support and code cleanup.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c index 960ae8c700f9..96f957164c19 100644 --- a/drivers/i2c/i2c-cortina.c +++ b/drivers/i2c/i2c-cortina.c @@ -4,12 +4,12 @@
- Arthur Li, Cortina Access, arthur.li@cortina-access.com.
*/
-#include <common.h> #include <i2c.h> #include <log.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> +#include <time.h> #include "i2c-cortina.h"
static void set_speed(struct i2c_regs *regs, int i2c_spd) diff --git a/drivers/i2c/i2c-emul-uclass.c b/drivers/i2c/i2c-emul-uclass.c index d421ddfcbe29..0954d53847e6 100644 --- a/drivers/i2c/i2c-emul-uclass.c +++ b/drivers/i2c/i2c-emul-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C_EMUL
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 5fc3cfe42ef7..e0a575fb4a48 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c @@ -5,7 +5,6 @@
- This file is based on: drivers/i2c/soft-i2c.c,
- with added driver-model support and code cleanup.
*/ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-microchip.c b/drivers/i2c/i2c-microchip.c index d453e243d6f2..788747879a25 100644 --- a/drivers/i2c/i2c-microchip.c +++ b/drivers/i2c/i2c-microchip.c @@ -6,7 +6,6 @@
- Padmarao Begari padmarao.begari@microchip.com
- Conor Dooley conor.dooley@microchip.com
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 98f95859f3bc..380a9f8f3add 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c index 0a1a85dfc288..a8f0a170f799 100644 --- a/drivers/i2c/i2c-versatile.c +++ b/drivers/i2c/i2c-versatile.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c index fe0cd75d94a1..7c43a5546d3d 100644 --- a/drivers/i2c/i2c_core.c +++ b/drivers/i2c/i2c_core.c @@ -7,7 +7,7 @@
- Multibus/multiadapter I2C core functions (wrappers)
*/ -#include <common.h> +#include <config.h> #include <i2c.h> #include <linker_lists.h> #include <asm/global_data.h> diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index d715714638ff..dc88cd19167e 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -4,7 +4,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
-#include <common.h> #include <i2c.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index ad9293c92e1a..6c0d8eb5f4f5 100644 --- a/drivers/i2c/imx_lpi2c.c +++ b/drivers/i2c/imx_lpi2c.c @@ -3,7 +3,6 @@
- Copyright 2016 Freescale Semiconductors, Inc.
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c index 4fc6f1a11a75..d8ceea10cda7 100644 --- a/drivers/i2c/intel_i2c.c +++ b/drivers/i2c/intel_i2c.c @@ -7,11 +7,11 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> #include <pci.h> +#include <time.h> #include <asm/io.h>
/* PCI Configuration Space (D31:F3): SMBus */ diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index 39af49c4ec54..6570f64fe774 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -6,7 +6,6 @@
#include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <config.h> #include <dm.h> #include <linux/printk.h> diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index 496f4feec566..a4e42e64a9b8 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -6,7 +6,7 @@
- Written-by: Albert ARIBAUD - 3ADEV albert.aribaud@3adev.fr
*/
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/io.h> #include <i2c.h> diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 434e3461b1dd..19f1b6b08196 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -2,7 +2,6 @@ /*
- (C) Copyright 2017 - Beniamino Galvani b.galvani@gmail.com
*/ -#include <common.h> #include <log.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c index ad730e0e79ff..a83d7cb0829d 100644 --- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c +++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c @@ -4,12 +4,12 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> #include <log.h> #include <malloc.h> +#include <time.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 4ca206115f85..f212bd1f9836 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -10,7 +10,6 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/i2c/muxes/i2c-mux-uclass.c b/drivers/i2c/muxes/i2c-mux-uclass.c index a5d1bb0576db..d1999d21feb7 100644 --- a/drivers/i2c/muxes/i2c-mux-uclass.c +++ b/drivers/i2c/muxes/i2c-mux-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2C_MUX
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 0034dfbf6daf..b4e3e16a9764 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -5,7 +5,6 @@
- Written by Michal Simek
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 5bc9cd7b295a..949cc45d308d 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -16,7 +16,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index c38330f758a9..44e8e191b039 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -7,7 +7,7 @@
- Copyright (c) 2010 Albert Aribaud.
*/
-#include <common.h> +#include <config.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index d501133a0c8f..0acdaf7e7431 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -14,7 +14,7 @@
*/
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c index 07cda0fa6793..8562dd82bd63 100644 --- a/drivers/i2c/nx_i2c.c +++ b/drivers/i2c/nx_i2c.c @@ -1,8 +1,8 @@ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> #include <log.h> +#include <time.h> #include <asm/arch/nexell.h> #include <asm/arch/reset.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c index fff85118d0de..cf714d22ee46 100644 --- a/drivers/i2c/ocores_i2c.c +++ b/drivers/i2c/ocores_i2c.c @@ -12,7 +12,6 @@
- Andreas Larsson andreas@gaisler.com
*/
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index 6fc9d1eba9d1..ebe472e20cdb 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -38,7 +38,6 @@
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/qup_i2c.c b/drivers/i2c/qup_i2c.c index 5ae3cccd4acd..26707d63980e 100644 --- a/drivers/i2c/qup_i2c.c +++ b/drivers/i2c/qup_i2c.c @@ -9,7 +9,6 @@
#include <init.h> #include <env.h> -#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/delay.h> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index ff9a2d80dda1..f0f9b2afacfb 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -11,7 +11,6 @@
- Kuninori Morimoto kuninori.morimoto.gx@renesas.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index f0e50914c68d..2aa0f5fbfae4 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -9,7 +9,6 @@
- Copyright (C) 2011, 2013 Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 9927af94a80b..fa167268ae71 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -6,7 +6,6 @@
- Peter, Software Engineering, superpeter.cai@gmail.com.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 505e20bc61c8..72d2ab0f73d8 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -4,10 +4,10 @@
- David Mueller, ELSOFT AG, d.mueller@elsoft.ch
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> +#include <time.h> #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) #include <log.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index c99e6de93327..74bb5e933973 100644 --- a/drivers/i2c/sandbox_i2c.c +++ b/drivers/i2c/sandbox_i2c.c @@ -5,7 +5,6 @@
- Copyright (c) 2014 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index 3335d9482a29..ab816101dea0 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -7,7 +7,6 @@
- Please see doc/driver-model/i2c-howto.rst for instructions.
*/
-#include <common.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index ed8ba47de450..1f2afc65e8b3 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -15,7 +15,7 @@
- Please see doc/driver-model/i2c-howto.rst for instructions.
*/
-#include <common.h> +#include <config.h> #if defined(CONFIG_AT91FAMILY) #include <asm/io.h> #include <asm/arch/hardware.h> diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index f42e08a64180..3f51b1dd1db4 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/sun6i_p2wi.c b/drivers/i2c/sun6i_p2wi.c index b8e07a533ca9..c927c0edf250 100644 --- a/drivers/i2c/sun6i_p2wi.c +++ b/drivers/i2c/sun6i_p2wi.c @@ -15,7 +15,6 @@
#include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sun8i_rsb.c b/drivers/i2c/sun8i_rsb.c index f36f2c7afacf..2197f1805663 100644 --- a/drivers/i2c/sun8i_rsb.c +++ b/drivers/i2c/sun8i_rsb.c @@ -10,7 +10,6 @@
#include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index 588f6bdcc4b4..d30eb5231229 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 57d77d56ea55..3c324bd26635 100644 --- a/drivers/i2c/tegra_i2c.c +++ b/drivers/i2c/tegra_i2c.c @@ -5,7 +5,6 @@
- NVIDIA Corporation <www.nvidia.com>
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/xilinx_xiic.c b/drivers/i2c/xilinx_xiic.c index 72199a62b2d7..056024e350fb 100644 --- a/drivers/i2c/xilinx_xiic.c +++ b/drivers/i2c/xilinx_xiic.c @@ -9,7 +9,6 @@
- Copyright (c) 2009-2010 Intel Corporation
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Bin Meng bmeng.cn@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de --- drivers/input/apple_spi_kbd.c | 1 - drivers/input/button_kbd.c | 1 - drivers/input/cros_ec_keyb.c | 1 - drivers/input/i8042.c | 1 - drivers/input/input.c | 2 +- drivers/input/key_matrix.c | 1 - drivers/input/keyboard-uclass.c | 1 - drivers/input/tegra-kbc.c | 2 +- 8 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/input/apple_spi_kbd.c b/drivers/input/apple_spi_kbd.c index 7cf12f453a30..5b30cec2dcb9 100644 --- a/drivers/input/apple_spi_kbd.c +++ b/drivers/input/apple_spi_kbd.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <keyboard.h> #include <spi.h> diff --git a/drivers/input/button_kbd.c b/drivers/input/button_kbd.c index c73d3b18be9c..0a917ac8b995 100644 --- a/drivers/input/button_kbd.c +++ b/drivers/input/button_kbd.c @@ -4,7 +4,6 @@ */
#include <stdlib.h> -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <input.h> diff --git a/drivers/input/cros_ec_keyb.c b/drivers/input/cros_ec_keyb.c index c4853463739b..0917ee20fedc 100644 --- a/drivers/input/cros_ec_keyb.c +++ b/drivers/input/cros_ec_keyb.c @@ -5,7 +5,6 @@ * Copyright (c) 2012 The Chromium OS Authors. */
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index e6070ca01529..9bf21053cf06 100644 --- a/drivers/input/i8042.c +++ b/drivers/input/i8042.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_KEYBOARD
-#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/input/input.c b/drivers/input/input.c index 8a6506e7c6f9..3f146fb07e6d 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -6,13 +6,13 @@ * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, wd@denx.de */
-#include <common.h> #include <console.h> #include <dm.h> #include <env.h> #include <errno.h> #include <log.h> #include <stdio_dev.h> +#include <time.h> #include <input.h> #ifdef CONFIG_DM_KEYBOARD #include <keyboard.h> diff --git a/drivers/input/key_matrix.c b/drivers/input/key_matrix.c index e2fb2e170787..2e631660c880 100644 --- a/drivers/input/key_matrix.c +++ b/drivers/input/key_matrix.c @@ -6,7 +6,6 @@ * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, wd@denx.de */
-#include <common.h> #include <dm.h> #include <key_matrix.h> #include <log.h> diff --git a/drivers/input/keyboard-uclass.c b/drivers/input/keyboard-uclass.c index aefc8e825e20..df9ee8f7d659 100644 --- a/drivers/input/keyboard-uclass.c +++ b/drivers/input/keyboard-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_KEYBOARD
-#include <common.h> #include <dm.h> #include <keyboard.h> #include <log.h> diff --git a/drivers/input/tegra-kbc.c b/drivers/input/tegra-kbc.c index d4741a76663e..fc13975d4f0f 100644 --- a/drivers/input/tegra-kbc.c +++ b/drivers/input/tegra-kbc.c @@ -4,7 +4,6 @@ * NVIDIA Corporation <www.nvidia.com> */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <input.h> @@ -13,6 +12,7 @@ #include <log.h> #include <stdio_dev.h> #include <tegra-kbc.h> +#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Mark Kettenis kettenis@openbsd.org Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Caleb Connolly caleb.connolly@linaro.org --- drivers/iommu/apple_dart.c | 1 - drivers/iommu/iommu-uclass.c | 1 - drivers/iommu/sandbox_iommu.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/iommu/apple_dart.c b/drivers/iommu/apple_dart.c index 6ecd84303bc2..9327dea1e3bb 100644 --- a/drivers/iommu/apple_dart.c +++ b/drivers/iommu/apple_dart.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <iommu.h> diff --git a/drivers/iommu/iommu-uclass.c b/drivers/iommu/iommu-uclass.c index dff3239cccb1..bb31cd519d25 100644 --- a/drivers/iommu/iommu-uclass.c +++ b/drivers/iommu/iommu-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_IOMMU
-#include <common.h> #include <dm.h> #include <iommu.h> #include <malloc.h> diff --git a/drivers/iommu/sandbox_iommu.c b/drivers/iommu/sandbox_iommu.c index 6ceb7fd5ec37..e37976f86f02 100644 --- a/drivers/iommu/sandbox_iommu.c +++ b/drivers/iommu/sandbox_iommu.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <iommu.h> #include <lmb.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Ivan Vozvakhov i.vozvakhov@vk.team Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: Marek Vasut marex@denx.de Cc: Christian Gmeiner christian.gmeiner@gmail.com --- drivers/led/led-uclass.c | 1 - drivers/led/led_bcm6328.c | 1 - drivers/led/led_bcm6358.c | 1 - drivers/led/led_bcm6753.c | 1 - drivers/led/led_bcm6858.c | 1 - drivers/led/led_cortina.c | 1 - drivers/led/led_gpio.c | 1 - drivers/led/led_pwm.c | 1 - 8 files changed, 8 deletions(-)
diff --git a/drivers/led/led-uclass.c b/drivers/led/led-uclass.c index a4be56fc2584..f37bf6a1550c 100644 --- a/drivers/led/led-uclass.c +++ b/drivers/led/led-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_LED
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c index f59a92fb1fda..dcc5741195cd 100644 --- a/drivers/led/led_bcm6328.c +++ b/drivers/led/led_bcm6328.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c index 25aa3994d0e4..b1373ab74267 100644 --- a/drivers/led/led_bcm6358.c +++ b/drivers/led/led_bcm6358.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6753.c b/drivers/led/led_bcm6753.c index 2466d9301166..170caf7bdca7 100644 --- a/drivers/led/led_bcm6753.c +++ b/drivers/led/led_bcm6753.c @@ -6,7 +6,6 @@ * drivers/led/led_bcm6858.c */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index 397dc0d8693d..a6efdcf64053 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -7,7 +7,6 @@ * drivers/led/led_bcm6358.c */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_cortina.c b/drivers/led/led_cortina.c index bcbe78d632ac..2d3ad323d33b 100644 --- a/drivers/led/led_cortina.c +++ b/drivers/led/led_cortina.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index 71421de628c9..ce22fb49f2a9 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_pwm.c b/drivers/led/led_pwm.c index ae6de3087ab7..15dd836509b8 100644 --- a/drivers/led/led_pwm.c +++ b/drivers/led/led_pwm.c @@ -4,7 +4,6 @@ * Author: Ivan Vozvakhov i.vozvakhov@vk.team */
-#include <common.h> #include <dm.h> #include <errno.h> #include <led.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Michal Simek michal.simek@amd.com Cc: Nishanth Menon nm@ti.com Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com --- drivers/mailbox/apple-mbox.c | 1 - drivers/mailbox/k3-sec-proxy.c | 1 - drivers/mailbox/mailbox-uclass.c | 1 - drivers/mailbox/sandbox-mbox-test.c | 1 - drivers/mailbox/sandbox-mbox.c | 1 - drivers/mailbox/stm32-ipcc.c | 1 - drivers/mailbox/tegra-hsp.c | 1 - drivers/mailbox/zynqmp-ipi.c | 1 - 8 files changed, 8 deletions(-)
diff --git a/drivers/mailbox/apple-mbox.c b/drivers/mailbox/apple-mbox.c index 30c8e2f03fa8..2ee49734f406 100644 --- a/drivers/mailbox/apple-mbox.c +++ b/drivers/mailbox/apple-mbox.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <mailbox-uclass.h> #include <asm/io.h> diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 05f6b1795d64..5eafe46fd4d0 100644 --- a/drivers/mailbox/k3-sec-proxy.c +++ b/drivers/mailbox/k3-sec-proxy.c @@ -6,7 +6,6 @@ * Lokesh Vutla lokeshvutla@ti.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/mailbox/mailbox-uclass.c b/drivers/mailbox/mailbox-uclass.c index 85ba8c5fd99d..4bf4987ce0a1 100644 --- a/drivers/mailbox/mailbox-uclass.c +++ b/drivers/mailbox/mailbox-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MAILBOX
-#include <common.h> #include <dm.h> #include <log.h> #include <mailbox.h> diff --git a/drivers/mailbox/sandbox-mbox-test.c b/drivers/mailbox/sandbox-mbox-test.c index ffd4674d1ef7..a2cfde2f62d6 100644 --- a/drivers/mailbox/sandbox-mbox-test.c +++ b/drivers/mailbox/sandbox-mbox-test.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <mailbox.h> #include <malloc.h> diff --git a/drivers/mailbox/sandbox-mbox.c b/drivers/mailbox/sandbox-mbox.c index 87d38de0cb61..87e06e492fe7 100644 --- a/drivers/mailbox/sandbox-mbox.c +++ b/drivers/mailbox/sandbox-mbox.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <mailbox-uclass.h> diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c index 046e1a8aca6e..dda108735fce 100644 --- a/drivers/mailbox/stm32-ipcc.c +++ b/drivers/mailbox/stm32-ipcc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MAILBOX
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index 08c51c40f141..bfd4d7cdf2e4 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c index eb86847bbe23..4df69734ed95 100644 --- a/drivers/mailbox/zynqmp-ipi.c +++ b/drivers/mailbox/zynqmp-ipi.c @@ -5,7 +5,6 @@ * Copyright (C) 2018-2019 Xilinx, Inc. */
-#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/system.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Tom Rini trini@konsulko.com Cc: Christophe Kerello christophe.kerello@foss.st.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Igor Prusov ivprusov@salutedevices.com Cc: Dario Binacchi dario.binacchi@amarulasolutions.com Cc: Roger Quadros rogerq@kernel.org Cc: Nishanth Menon nm@ti.com --- drivers/memory/stm32-fmc2-ebi.c | 1 - drivers/memory/ti-aemif.c | 1 - drivers/memory/ti-gpmc.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/memory/stm32-fmc2-ebi.c b/drivers/memory/stm32-fmc2-ebi.c index 1ce960778586..713dead5c572 100644 --- a/drivers/memory/stm32-fmc2-ebi.c +++ b/drivers/memory/stm32-fmc2-ebi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_NOP
-#include <common.h> #include <clk.h> #include <dm.h> #include <reset.h> diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c index 41325eb0f941..29131f536a66 100644 --- a/drivers/memory/ti-aemif.c +++ b/drivers/memory/ti-aemif.c @@ -6,7 +6,6 @@ * Texas Instruments Incorporated, <www.ti.com> */
-#include <common.h> #include <asm/arch/hardware.h> #include <asm/ti-common/ti-aemif.h>
diff --git a/drivers/memory/ti-gpmc.c b/drivers/memory/ti-gpmc.c index 8877b8f4385b..8af48e199a74 100644 --- a/drivers/memory/ti-gpmc.c +++ b/drivers/memory/ti-gpmc.c @@ -7,7 +7,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Sean Anderson sean.anderson@seco.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Mario Six mario.six@gdsys.cc Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: "Michał Barnaś" barnas@google.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: "Milan P. Stanić" mps@arvanta.net Cc: Neha Malcom Francis n-francis@ti.com Cc: Nishanth Menon nm@ti.com Cc: Marek Vasut marex@denx.de Cc: Michel Alex Alex.Michel@wiedemann-group.com Cc: Stefano Babic sbabic@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Igor Opaniuk igor.opaniuk@foundries.io Cc: Clement Faure clement.faure@nxp.com Cc: Mathieu Othacehe othacehe@gnu.org Cc: Ye Li ye.li@nxp.com Cc: Jim Liu jim.t90615@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Tim Lunn tim@feathertop.org Cc: "Marek Behún" kabel@kernel.org Cc: Stefan Roese sr@denx.de --- drivers/misc/altera_sysid.c | 1 - drivers/misc/atsha204a-i2c.c | 1 - drivers/misc/cbmem_console.c | 2 +- drivers/misc/cros_ec.c | 2 +- drivers/misc/cros_ec_i2c.c | 1 - drivers/misc/cros_ec_lpc.c | 2 +- drivers/misc/cros_ec_sandbox.c | 2 +- drivers/misc/cros_ec_spi.c | 2 +- drivers/misc/ds4510.c | 1 - drivers/misc/esm_pmic.c | 1 - drivers/misc/fs_loader.c | 1 - drivers/misc/fsl_devdis.c | 2 +- drivers/misc/fsl_ifc.c | 2 +- drivers/misc/fsl_iim.c | 1 - drivers/misc/fsl_portals.c | 2 +- drivers/misc/fsl_sec_mon.c | 2 +- drivers/misc/gdsys_ioep.c | 1 - drivers/misc/gdsys_rxaui_ctrl.c | 1 - drivers/misc/gdsys_soc.c | 1 - drivers/misc/gpio_led.c | 1 - drivers/misc/i2c_eeprom.c | 1 - drivers/misc/i2c_eeprom_emul.c | 1 - drivers/misc/ihs_fpga.c | 1 - drivers/misc/imx8/fuse.c | 1 - drivers/misc/imx8/scu.c | 1 - drivers/misc/imx8/scu_api.c | 1 - drivers/misc/imx_ele/ele_api.c | 1 - drivers/misc/imx_ele/ele_mu.c | 1 - drivers/misc/imx_ele/fuse.c | 1 - drivers/misc/irq-uclass.c | 1 - drivers/misc/irq_sandbox.c | 1 - drivers/misc/irq_sandbox_test.c | 1 - drivers/misc/jz4780_efuse.c | 1 - drivers/misc/k3_avs.c | 1 - drivers/misc/k3_esm.c | 1 - drivers/misc/ls2_sfp.c | 1 - drivers/misc/microchip_flexcom.c | 1 - drivers/misc/misc-uclass.c | 1 - drivers/misc/misc_sandbox.c | 1 - drivers/misc/mpc83xx_serdes.c | 1 - drivers/misc/mxc_ocotp.c | 1 - drivers/misc/mxs_ocotp.c | 1 - drivers/misc/npcm_host_intf.c | 1 - drivers/misc/npcm_otp.c | 1 - drivers/misc/nuvoton_nct6102d.c | 1 - drivers/misc/nvmem.c | 1 - drivers/misc/p2sb-uclass.c | 1 - drivers/misc/p2sb_emul.c | 1 - drivers/misc/p2sb_sandbox.c | 1 - drivers/misc/pca9551_led.c | 1 - drivers/misc/pwrseq-uclass.c | 1 - drivers/misc/qfw.c | 1 - drivers/misc/rockchip-efuse.c | 1 - drivers/misc/rockchip-otp.c | 1 - drivers/misc/sandbox_adder.c | 1 - drivers/misc/sifive-otp.c | 1 - drivers/misc/sl28cpld.c | 1 - drivers/misc/smsc_lpc47m.c | 1 - drivers/misc/smsc_sio1007.c | 1 - drivers/misc/spltest_sandbox.c | 1 - drivers/misc/status_led.c | 2 +- drivers/misc/stm32_rcc.c | 1 - drivers/misc/stm32mp_fuse.c | 1 - drivers/misc/swap_case.c | 1 - drivers/misc/syscon_sandbox.c | 1 - drivers/misc/tegra186_bpmp.c | 1 - drivers/misc/tegra_car.c | 1 - drivers/misc/test_drv.c | 1 - drivers/misc/turris_omnia_mcu.c | 1 - drivers/misc/usb251xb.c | 1 - drivers/misc/vexpress_config.c | 1 - drivers/misc/winbond_w83627.c | 1 - 72 files changed, 10 insertions(+), 72 deletions(-)
diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c index 878df12771c8..21e64fa3e6fe 100644 --- a/drivers/misc/altera_sysid.c +++ b/drivers/misc/altera_sysid.c @@ -4,7 +4,6 @@ * Scott McNutt smcnutt@psyent.com */
-#include <common.h> #include <command.h> #include <dm.h> #include <errno.h> diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 707daa90bdba..3b9046da880c 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -10,7 +10,6 @@ * published by the Free Software Foundation. */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <errno.h> diff --git a/drivers/misc/cbmem_console.c b/drivers/misc/cbmem_console.c index ba3a599c4a51..8220addd579b 100644 --- a/drivers/misc/cbmem_console.c +++ b/drivers/misc/cbmem_console.c @@ -3,8 +3,8 @@ * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. */
-#include <common.h> #include <console.h> +#include <linux/string.h> #include <asm/cb_sysinfo.h>
void cbmemc_putc(struct stdio_dev *dev, char data) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 9c1e6a5e3e70..fabe4964a334 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -15,7 +15,6 @@
#define LOG_CATEGORY UCLASS_CROS_EC
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> @@ -24,6 +23,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <time.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c index a1b78a3045dd..5516aa8b3ffd 100644 --- a/drivers/misc/cros_ec_i2c.c +++ b/drivers/misc/cros_ec_i2c.c @@ -12,7 +12,6 @@ * KBC. */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <cros_ec.h> diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c index 1a8a81349c3a..e2a3226362a9 100644 --- a/drivers/misc/cros_ec_lpc.c +++ b/drivers/misc/cros_ec_lpc.c @@ -12,11 +12,11 @@ * KBC. */
-#include <common.h> #include <dm.h> #include <command.h> #include <cros_ec.h> #include <log.h> +#include <time.h> #include <asm/io.h>
#ifdef DEBUG_TRACE diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c index 1201535f4af4..1cad51d474de 100644 --- a/drivers/misc/cros_ec_sandbox.c +++ b/drivers/misc/cros_ec_sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_CROS_EC
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <ec_commands.h> @@ -17,6 +16,7 @@ #include <os.h> #include <u-boot/sha256.h> #include <spi.h> +#include <time.h> #include <asm/malloc.h> #include <asm/state.h> #include <asm/sdl.h> diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index 591ff30df89b..e86791c03a73 100644 --- a/drivers/misc/cros_ec_spi.c +++ b/drivers/misc/cros_ec_spi.c @@ -12,12 +12,12 @@ * KBC. */
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> #include <log.h> #include <spi.h> +#include <time.h>
int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) { diff --git a/drivers/misc/ds4510.c b/drivers/misc/ds4510.c index 9340596f2c63..302015e27938 100644 --- a/drivers/misc/ds4510.c +++ b/drivers/misc/ds4510.c @@ -8,7 +8,6 @@ * and 4 programmable non-volatile GPIO pins. */
-#include <common.h> #include <i2c.h> #include <command.h> #include <linux/delay.h> diff --git a/drivers/misc/esm_pmic.c b/drivers/misc/esm_pmic.c index a518f750611a..1963c8664a54 100644 --- a/drivers/misc/esm_pmic.c +++ b/drivers/misc/esm_pmic.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <power/pmic.h> diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 1ffc199ba1e4..66803f4b9975 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER
-#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/misc/fsl_devdis.c b/drivers/misc/fsl_devdis.c index 179053a298af..2c3d23480762 100644 --- a/drivers/misc/fsl_devdis.c +++ b/drivers/misc/fsl_devdis.c @@ -3,7 +3,7 @@ * Copyright 2015 Freescale Semiconductor, Inc. * Author: Zhuoyu Zhang Zhuoyu.Zhang@freescale.com */ -#include <common.h> +#include <config.h> #include <asm/io.h> #include <asm/arch-ls102xa/immap_ls102xa.h> #include <asm/arch-ls102xa/config.h> diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c index f165b8c36ba4..93f41da0f974 100644 --- a/drivers/misc/fsl_ifc.c +++ b/drivers/misc/fsl_ifc.c @@ -4,7 +4,7 @@ * Author: Dipen Dudhat dipen.dudhat@freescale.com */
-#include <common.h> +#include <config.h> #include <fsl_ifc.h> #include <part.h>
diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c index 85cc3c26b2ef..65468a68dbdf 100644 --- a/drivers/misc/fsl_iim.c +++ b/drivers/misc/fsl_iim.c @@ -8,7 +8,6 @@ * Martha Marx mmarx@silicontkx.com */
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c index 6b831281e96f..e7c0df78b6b6 100644 --- a/drivers/misc/fsl_portals.c +++ b/drivers/misc/fsl_portals.c @@ -4,7 +4,7 @@ * Copyright 2017 NXP */
-#include <common.h> +#include <config.h> #include <log.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/drivers/misc/fsl_sec_mon.c b/drivers/misc/fsl_sec_mon.c index 3597ee22242c..7518089e1e3e 100644 --- a/drivers/misc/fsl_sec_mon.c +++ b/drivers/misc/fsl_sec_mon.c @@ -3,7 +3,7 @@ * Copyright 2015 Freescale Semiconductor, Inc. */
-#include <common.h> +#include <config.h> #include <fsl_sec_mon.h> #include <linux/delay.h>
diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c index 145cfa23c6c5..d4916a277b84 100644 --- a/drivers/misc/gdsys_ioep.c +++ b/drivers/misc/gdsys_ioep.c @@ -11,7 +11,6 @@ * SPDX-License-Identifier: GPL-2.0+ */
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c index 8f5cbe420f87..d4cd63ca9f89 100644 --- a/drivers/misc/gdsys_rxaui_ctrl.c +++ b/drivers/misc/gdsys_rxaui_ctrl.c @@ -7,7 +7,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <misc.h> diff --git a/drivers/misc/gdsys_soc.c b/drivers/misc/gdsys_soc.c index 27e7dc483276..0adbb8df3c2c 100644 --- a/drivers/misc/gdsys_soc.c +++ b/drivers/misc/gdsys_soc.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/gpio_led.c b/drivers/misc/gpio_led.c index 30679f80cf15..e63689967a7a 100644 --- a/drivers/misc/gpio_led.c +++ b/drivers/misc/gpio_led.c @@ -5,7 +5,6 @@ * Licensed under the GPL-2 or later. */
-#include <common.h> #include <status_led.h> #include <asm/gpio.h>
diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index 9cb375a99ab8..10f0173d8050 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C_EEPROM
-#include <common.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c index 6f32087ede56..3ad2e047ee3e 100644 --- a/drivers/misc/i2c_eeprom_emul.c +++ b/drivers/misc/i2c_eeprom_emul.c @@ -5,7 +5,6 @@ * Copyright (c) 2014 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c index a0fece985d85..fe196b608198 100644 --- a/drivers/misc/ihs_fpga.c +++ b/drivers/misc/ihs_fpga.c @@ -9,7 +9,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de */
-#include <common.h> #include <dm.h> #include <log.h> #include <regmap.h> diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index b81f73f283f4..90d251a44058 100644 --- a/drivers/misc/imx8/fuse.c +++ b/drivers/misc/imx8/fuse.c @@ -3,7 +3,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 798800aa7583..bbd7e24200bd 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c index 6e2c678e614f..591d71b096a8 100644 --- a/drivers/misc/imx8/scu_api.c +++ b/drivers/misc/imx8/scu_api.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/misc/imx_ele/ele_api.c b/drivers/misc/imx_ele/ele_api.c index e0ec22c7abf9..3745504637b3 100644 --- a/drivers/misc/imx_ele/ele_api.c +++ b/drivers/misc/imx_ele/ele_api.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/misc/imx_ele/ele_mu.c b/drivers/misc/imx_ele/ele_mu.c index 053cdcf0fe07..0cf81f33ba5e 100644 --- a/drivers/misc/imx_ele/ele_mu.c +++ b/drivers/misc/imx_ele/ele_mu.c @@ -3,7 +3,6 @@ * Copyright 2020-2022 NXP */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/imx_ele/fuse.c b/drivers/misc/imx_ele/fuse.c index 4e4dcb42cdd9..d12539c8aac0 100644 --- a/drivers/misc/imx_ele/fuse.c +++ b/drivers/misc/imx_ele/fuse.c @@ -3,7 +3,6 @@ * Copyright 2020 NXP */
-#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c index 7b79ed2df466..79eb7c200dc2 100644 --- a/drivers/misc/irq-uclass.c +++ b/drivers/misc/irq-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_IRQ
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <irq.h> diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c index 8b5573fcaddd..5d176f63b5cf 100644 --- a/drivers/misc/irq_sandbox.c +++ b/drivers/misc/irq_sandbox.c @@ -5,7 +5,6 @@ * Copyright 2019 Google LLC */
-#include <common.h> #include <dm.h> #include <irq.h> #include <acpi/acpi_device.h> diff --git a/drivers/misc/irq_sandbox_test.c b/drivers/misc/irq_sandbox_test.c index 95c45c24edb8..3669b863bec1 100644 --- a/drivers/misc/irq_sandbox_test.c +++ b/drivers/misc/irq_sandbox_test.c @@ -5,7 +5,6 @@ * Copyright 2021 Google LLC */
-#include <common.h> #include <dm.h> #include <irq.h> #include <asm/irq.h> diff --git a/drivers/misc/jz4780_efuse.c b/drivers/misc/jz4780_efuse.c index 1fba3271db61..5c92de26ec5f 100644 --- a/drivers/misc/jz4780_efuse.c +++ b/drivers/misc/jz4780_efuse.c @@ -6,7 +6,6 @@ * Author: Alex Smith alex.smith@imgtec.com */
-#include <common.h> #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index 0d29eff1ac08..87471cc3b16a 100644 --- a/drivers/misc/k3_avs.c +++ b/drivers/misc/k3_avs.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c index f6ac18bdc757..fa3d65656220 100644 --- a/drivers/misc/k3_esm.c +++ b/drivers/misc/k3_esm.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/ls2_sfp.c b/drivers/misc/ls2_sfp.c index 5351c7ed34fd..8cb6e999bed1 100644 --- a/drivers/misc/ls2_sfp.c +++ b/drivers/misc/ls2_sfp.c @@ -12,7 +12,6 @@ */
#define LOG_CATEGORY UCLASS_MISC -#include <common.h> #include <clk.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/microchip_flexcom.c b/drivers/misc/microchip_flexcom.c index e0a6f2d38801..c5ddecac7551 100644 --- a/drivers/misc/microchip_flexcom.c +++ b/drivers/misc/microchip_flexcom.c @@ -4,7 +4,6 @@ * Author: Eugen Hristev eugen.hristev@microchip.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c index cfe9d562fa0d..1389e146b612 100644 --- a/drivers/misc/misc-uclass.c +++ b/drivers/misc/misc-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <dm.h> #include <errno.h> #include <misc.h> diff --git a/drivers/misc/misc_sandbox.c b/drivers/misc/misc_sandbox.c index 31cde2dbac07..2473419df2a3 100644 --- a/drivers/misc/misc_sandbox.c +++ b/drivers/misc/misc_sandbox.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <misc.h>
diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c index 93c87e998c4f..cf9aa9b35b33 100644 --- a/drivers/misc/mpc83xx_serdes.c +++ b/drivers/misc/mpc83xx_serdes.c @@ -9,7 +9,6 @@ * Copyright (C) 2008 MontaVista Software, Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 8ee18f29d9be..d1674caa138c 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -11,7 +11,6 @@ * Copyright (C) 2011 Freescale Semiconductor, Inc. */
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c index facc720c8ef2..6432c62dac34 100644 --- a/drivers/misc/mxs_ocotp.c +++ b/drivers/misc/mxs_ocotp.c @@ -11,7 +11,6 @@ * etc.) which would make common driver an ifdef nightmare :-( */
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/npcm_host_intf.c b/drivers/misc/npcm_host_intf.c index 79f57f57d89c..58bab888c3c8 100644 --- a/drivers/misc/npcm_host_intf.c +++ b/drivers/misc/npcm_host_intf.c @@ -4,7 +4,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/misc/npcm_otp.c b/drivers/misc/npcm_otp.c index 08029724c040..adb6135291dc 100644 --- a/drivers/misc/npcm_otp.c +++ b/drivers/misc/npcm_otp.c @@ -4,7 +4,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/nuvoton_nct6102d.c b/drivers/misc/nuvoton_nct6102d.c index daf5019d0170..a3ca037d25f7 100644 --- a/drivers/misc/nuvoton_nct6102d.c +++ b/drivers/misc/nuvoton_nct6102d.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <nuvoton_nct6102d.h> #include <asm/io.h> #include <asm/pnp_def.h> diff --git a/drivers/misc/nvmem.c b/drivers/misc/nvmem.c index 5a2bd1f9f72c..d0cb0a35b816 100644 --- a/drivers/misc/nvmem.c +++ b/drivers/misc/nvmem.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Sean Anderson sean.anderson@seco.com */
-#include <common.h> #include <i2c_eeprom.h> #include <linker_lists.h> #include <misc.h> diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c index f24857a1515e..016c80733782 100644 --- a/drivers/misc/p2sb-uclass.c +++ b/drivers/misc/p2sb-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_P2SB
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c index 51f87161d5b7..3dac6bd82e30 100644 --- a/drivers/misc/p2sb_emul.c +++ b/drivers/misc/p2sb_emul.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/misc/p2sb_sandbox.c b/drivers/misc/p2sb_sandbox.c index d80bca22a6b2..9f3cd14958b8 100644 --- a/drivers/misc/p2sb_sandbox.c +++ b/drivers/misc/p2sb_sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_P2SB
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <p2sb.h> diff --git a/drivers/misc/pca9551_led.c b/drivers/misc/pca9551_led.c index cdc4390f8155..040d0d5cf48c 100644 --- a/drivers/misc/pca9551_led.c +++ b/drivers/misc/pca9551_led.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Stefan Roese sr@denx.de */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <status_led.h> diff --git a/drivers/misc/pwrseq-uclass.c b/drivers/misc/pwrseq-uclass.c index a0f24e1bf3a9..bddc3c336857 100644 --- a/drivers/misc/pwrseq-uclass.c +++ b/drivers/misc/pwrseq-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PWRSEQ
-#include <common.h> #include <dm.h> #include <pwrseq.h>
diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index db98619fdf53..0e002ac25f48 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_QFW
-#include <common.h> #include <acpi/acpi_table.h> #include <bootdev.h> #include <bootflow.h> diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 2f96b79ea407..c7430147718a 100644 --- a/drivers/misc/rockchip-efuse.c +++ b/drivers/misc/rockchip-efuse.c @@ -6,7 +6,6 @@ * Written by Philipp Tomsich philipp.tomsich@theobroma-systems.com */
-#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c index 4f757083a1b6..2123c31038fc 100644 --- a/drivers/misc/rockchip-otp.c +++ b/drivers/misc/rockchip-otp.c @@ -3,7 +3,6 @@ * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd */
-#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/sandbox_adder.c b/drivers/misc/sandbox_adder.c index 3ea33e46e9f2..de1c63575820 100644 --- a/drivers/misc/sandbox_adder.c +++ b/drivers/misc/sandbox_adder.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <axi.h> #include <dm.h> #include <misc.h> diff --git a/drivers/misc/sifive-otp.c b/drivers/misc/sifive-otp.c index a624a358802c..7fbcd3799e52 100644 --- a/drivers/misc/sifive-otp.c +++ b/drivers/misc/sifive-otp.c @@ -17,7 +17,6 @@ * Right now first 1KiB is used to store only serial number. */
-#include <common.h> #include <dm/device.h> #include <dm/read.h> #include <linux/bitops.h> diff --git a/drivers/misc/sl28cpld.c b/drivers/misc/sl28cpld.c index 01ef1c6178fc..1c61b005af3a 100644 --- a/drivers/misc/sl28cpld.c +++ b/drivers/misc/sl28cpld.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Michael Walle michael@walle.cc */
-#include <common.h> #include <dm.h> #include <i2c.h>
diff --git a/drivers/misc/smsc_lpc47m.c b/drivers/misc/smsc_lpc47m.c index bda064f1365b..1b15907b0933 100644 --- a/drivers/misc/smsc_lpc47m.c +++ b/drivers/misc/smsc_lpc47m.c @@ -3,7 +3,6 @@ * Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h>
diff --git a/drivers/misc/smsc_sio1007.c b/drivers/misc/smsc_sio1007.c index 3b7b1c8bcf2a..6d99aa61d91d 100644 --- a/drivers/misc/smsc_sio1007.c +++ b/drivers/misc/smsc_sio1007.c @@ -3,7 +3,6 @@ * Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <asm/io.h> #include <errno.h> #include <smsc_sio1007.h> diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c index 6b9701a06aee..3011a2292713 100644 --- a/drivers/misc/spltest_sandbox.c +++ b/drivers/misc/spltest_sandbox.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <dt-structs.h>
diff --git a/drivers/misc/status_led.c b/drivers/misc/status_led.c index a6e9c03a02ec..3b1baa4f840b 100644 --- a/drivers/misc/status_led.c +++ b/drivers/misc/status_led.c @@ -4,8 +4,8 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <status_led.h> +#include <linux/types.h>
/* * The purpose of this code is to signal the operational status of a diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index c1e5428a6b81..0dd827e1dd0e 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_NOP
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/stm32mp_fuse.c b/drivers/misc/stm32mp_fuse.c index 9fd6c367dc61..34be6c28c192 100644 --- a/drivers/misc/stm32mp_fuse.c +++ b/drivers/misc/stm32mp_fuse.c @@ -3,7 +3,6 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */
-#include <common.h> #include <command.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index ee5c12bd0a42..d4a5620c62c1 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -6,7 +6,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/syscon_sandbox.c b/drivers/misc/syscon_sandbox.c index d5cef188d742..6adb4154c25b 100644 --- a/drivers/misc/syscon_sandbox.c +++ b/drivers/misc/syscon_sandbox.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <syscon.h> diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index fecac9c4d902..a1585b818677 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/tegra_car.c b/drivers/misc/tegra_car.c index 0ddbb3c619b2..497ec18564cc 100644 --- a/drivers/misc/tegra_car.c +++ b/drivers/misc/tegra_car.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index 927618256f0a..9b1e357a1397 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -3,7 +3,6 @@ * Copyright (c) 2014 Google, Inc */
-#include <common.h> #include <dm.h> #include <dm/test.h> #include <asm/global_data.h> diff --git a/drivers/misc/turris_omnia_mcu.c b/drivers/misc/turris_omnia_mcu.c index 6b2f17c0002d..be77acbd1652 100644 --- a/drivers/misc/turris_omnia_mcu.c +++ b/drivers/misc/turris_omnia_mcu.c @@ -4,7 +4,6 @@ * Copyright (C) 2024 Marek Behún kabel@kernel.org */
-#include <common.h> #include <console.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c index 92e92ba5e624..daba2c2d6835 100644 --- a/drivers/misc/usb251xb.c +++ b/drivers/misc/usb251xb.c @@ -10,7 +10,6 @@ * https://patchwork.kernel.org/patch/9257715/ */
-#include <common.h> #include <asm/gpio.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c index 99aad1412ae7..e7655ceff74c 100644 --- a/drivers/misc/vexpress_config.c +++ b/drivers/misc/vexpress_config.c @@ -4,7 +4,6 @@ * Author: Liviu Dudau liviu.dudau@foss.arm.com * */ -#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/read.h> diff --git a/drivers/misc/winbond_w83627.c b/drivers/misc/winbond_w83627.c index 3838b3f74f40..87b9043e65c4 100644 --- a/drivers/misc/winbond_w83627.c +++ b/drivers/misc/winbond_w83627.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h>

On 2024/5/2 09:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Sean Anderson sean.anderson@seco.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Mario Six mario.six@gdsys.cc Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: "Michał Barnaś" barnas@google.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: "Milan P. Stanić" mps@arvanta.net Cc: Neha Malcom Francis n-francis@ti.com Cc: Nishanth Menon nm@ti.com Cc: Marek Vasut marex@denx.de Cc: Michel Alex Alex.Michel@wiedemann-group.com Cc: Stefano Babic sbabic@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Igor Opaniuk igor.opaniuk@foundries.io Cc: Clement Faure clement.faure@nxp.com Cc: Mathieu Othacehe othacehe@gnu.org Cc: Ye Li ye.li@nxp.com Cc: Jim Liu jim.t90615@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Tim Lunn tim@feathertop.org Cc: "Marek Behún" kabel@kernel.org Cc: Stefan Roese sr@denx.de
drivers/misc/altera_sysid.c | 1 - drivers/misc/atsha204a-i2c.c | 1 - drivers/misc/cbmem_console.c | 2 +- drivers/misc/cros_ec.c | 2 +- drivers/misc/cros_ec_i2c.c | 1 - drivers/misc/cros_ec_lpc.c | 2 +- drivers/misc/cros_ec_sandbox.c | 2 +- drivers/misc/cros_ec_spi.c | 2 +- drivers/misc/ds4510.c | 1 - drivers/misc/esm_pmic.c | 1 - drivers/misc/fs_loader.c | 1 - drivers/misc/fsl_devdis.c | 2 +- drivers/misc/fsl_ifc.c | 2 +- drivers/misc/fsl_iim.c | 1 - drivers/misc/fsl_portals.c | 2 +- drivers/misc/fsl_sec_mon.c | 2 +- drivers/misc/gdsys_ioep.c | 1 - drivers/misc/gdsys_rxaui_ctrl.c | 1 - drivers/misc/gdsys_soc.c | 1 - drivers/misc/gpio_led.c | 1 - drivers/misc/i2c_eeprom.c | 1 - drivers/misc/i2c_eeprom_emul.c | 1 - drivers/misc/ihs_fpga.c | 1 - drivers/misc/imx8/fuse.c | 1 - drivers/misc/imx8/scu.c | 1 - drivers/misc/imx8/scu_api.c | 1 - drivers/misc/imx_ele/ele_api.c | 1 - drivers/misc/imx_ele/ele_mu.c | 1 - drivers/misc/imx_ele/fuse.c | 1 - drivers/misc/irq-uclass.c | 1 - drivers/misc/irq_sandbox.c | 1 - drivers/misc/irq_sandbox_test.c | 1 - drivers/misc/jz4780_efuse.c | 1 - drivers/misc/k3_avs.c | 1 - drivers/misc/k3_esm.c | 1 - drivers/misc/ls2_sfp.c | 1 - drivers/misc/microchip_flexcom.c | 1 - drivers/misc/misc-uclass.c | 1 - drivers/misc/misc_sandbox.c | 1 - drivers/misc/mpc83xx_serdes.c | 1 - drivers/misc/mxc_ocotp.c | 1 - drivers/misc/mxs_ocotp.c | 1 - drivers/misc/npcm_host_intf.c | 1 - drivers/misc/npcm_otp.c | 1 - drivers/misc/nuvoton_nct6102d.c | 1 - drivers/misc/nvmem.c | 1 - drivers/misc/p2sb-uclass.c | 1 - drivers/misc/p2sb_emul.c | 1 - drivers/misc/p2sb_sandbox.c | 1 - drivers/misc/pca9551_led.c | 1 - drivers/misc/pwrseq-uclass.c | 1 - drivers/misc/qfw.c | 1 - drivers/misc/rockchip-efuse.c | 1 - drivers/misc/rockchip-otp.c | 1 - drivers/misc/sandbox_adder.c | 1 - drivers/misc/sifive-otp.c | 1 - drivers/misc/sl28cpld.c | 1 - drivers/misc/smsc_lpc47m.c | 1 - drivers/misc/smsc_sio1007.c | 1 - drivers/misc/spltest_sandbox.c | 1 - drivers/misc/status_led.c | 2 +- drivers/misc/stm32_rcc.c | 1 - drivers/misc/stm32mp_fuse.c | 1 - drivers/misc/swap_case.c | 1 - drivers/misc/syscon_sandbox.c | 1 - drivers/misc/tegra186_bpmp.c | 1 - drivers/misc/tegra_car.c | 1 - drivers/misc/test_drv.c | 1 - drivers/misc/turris_omnia_mcu.c | 1 - drivers/misc/usb251xb.c | 1 - drivers/misc/vexpress_config.c | 1 - drivers/misc/winbond_w83627.c | 1 - 72 files changed, 10 insertions(+), 72 deletions(-)
diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c index 878df12771c8..21e64fa3e6fe 100644 --- a/drivers/misc/altera_sysid.c +++ b/drivers/misc/altera_sysid.c @@ -4,7 +4,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <errno.h> diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 707daa90bdba..3b9046da880c 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -10,7 +10,6 @@
- published by the Free Software Foundation.
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <errno.h> diff --git a/drivers/misc/cbmem_console.c b/drivers/misc/cbmem_console.c index ba3a599c4a51..8220addd579b 100644 --- a/drivers/misc/cbmem_console.c +++ b/drivers/misc/cbmem_console.c @@ -3,8 +3,8 @@
- Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
*/
-#include <common.h> #include <console.h> +#include <linux/string.h> #include <asm/cb_sysinfo.h>
void cbmemc_putc(struct stdio_dev *dev, char data) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 9c1e6a5e3e70..fabe4964a334 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -15,7 +15,6 @@
#define LOG_CATEGORY UCLASS_CROS_EC
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> @@ -24,6 +23,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <time.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c index a1b78a3045dd..5516aa8b3ffd 100644 --- a/drivers/misc/cros_ec_i2c.c +++ b/drivers/misc/cros_ec_i2c.c @@ -12,7 +12,6 @@
- KBC.
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <cros_ec.h> diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c index 1a8a81349c3a..e2a3226362a9 100644 --- a/drivers/misc/cros_ec_lpc.c +++ b/drivers/misc/cros_ec_lpc.c @@ -12,11 +12,11 @@
- KBC.
*/
-#include <common.h> #include <dm.h> #include <command.h> #include <cros_ec.h> #include <log.h> +#include <time.h> #include <asm/io.h>
#ifdef DEBUG_TRACE diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c index 1201535f4af4..1cad51d474de 100644 --- a/drivers/misc/cros_ec_sandbox.c +++ b/drivers/misc/cros_ec_sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_CROS_EC
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <ec_commands.h> @@ -17,6 +16,7 @@ #include <os.h> #include <u-boot/sha256.h> #include <spi.h> +#include <time.h> #include <asm/malloc.h> #include <asm/state.h> #include <asm/sdl.h> diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index 591ff30df89b..e86791c03a73 100644 --- a/drivers/misc/cros_ec_spi.c +++ b/drivers/misc/cros_ec_spi.c @@ -12,12 +12,12 @@
- KBC.
*/
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> #include <log.h> #include <spi.h> +#include <time.h>
int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) { diff --git a/drivers/misc/ds4510.c b/drivers/misc/ds4510.c index 9340596f2c63..302015e27938 100644 --- a/drivers/misc/ds4510.c +++ b/drivers/misc/ds4510.c @@ -8,7 +8,6 @@
- and 4 programmable non-volatile GPIO pins.
*/
-#include <common.h> #include <i2c.h> #include <command.h> #include <linux/delay.h> diff --git a/drivers/misc/esm_pmic.c b/drivers/misc/esm_pmic.c index a518f750611a..1963c8664a54 100644 --- a/drivers/misc/esm_pmic.c +++ b/drivers/misc/esm_pmic.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <power/pmic.h> diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 1ffc199ba1e4..66803f4b9975 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER
-#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/misc/fsl_devdis.c b/drivers/misc/fsl_devdis.c index 179053a298af..2c3d23480762 100644 --- a/drivers/misc/fsl_devdis.c +++ b/drivers/misc/fsl_devdis.c @@ -3,7 +3,7 @@
- Copyright 2015 Freescale Semiconductor, Inc.
- Author: Zhuoyu Zhang Zhuoyu.Zhang@freescale.com
*/ -#include <common.h> +#include <config.h> #include <asm/io.h> #include <asm/arch-ls102xa/immap_ls102xa.h> #include <asm/arch-ls102xa/config.h> diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c index f165b8c36ba4..93f41da0f974 100644 --- a/drivers/misc/fsl_ifc.c +++ b/drivers/misc/fsl_ifc.c @@ -4,7 +4,7 @@
- Author: Dipen Dudhat dipen.dudhat@freescale.com
*/
-#include <common.h> +#include <config.h> #include <fsl_ifc.h> #include <part.h>
diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c index 85cc3c26b2ef..65468a68dbdf 100644 --- a/drivers/misc/fsl_iim.c +++ b/drivers/misc/fsl_iim.c @@ -8,7 +8,6 @@
- Martha Marx mmarx@silicontkx.com
*/
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c index 6b831281e96f..e7c0df78b6b6 100644 --- a/drivers/misc/fsl_portals.c +++ b/drivers/misc/fsl_portals.c @@ -4,7 +4,7 @@
- Copyright 2017 NXP
*/
-#include <common.h> +#include <config.h> #include <log.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/drivers/misc/fsl_sec_mon.c b/drivers/misc/fsl_sec_mon.c index 3597ee22242c..7518089e1e3e 100644 --- a/drivers/misc/fsl_sec_mon.c +++ b/drivers/misc/fsl_sec_mon.c @@ -3,7 +3,7 @@
- Copyright 2015 Freescale Semiconductor, Inc.
*/
-#include <common.h> +#include <config.h> #include <fsl_sec_mon.h> #include <linux/delay.h>
diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c index 145cfa23c6c5..d4916a277b84 100644 --- a/drivers/misc/gdsys_ioep.c +++ b/drivers/misc/gdsys_ioep.c @@ -11,7 +11,6 @@
- SPDX-License-Identifier: GPL-2.0+
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c index 8f5cbe420f87..d4cd63ca9f89 100644 --- a/drivers/misc/gdsys_rxaui_ctrl.c +++ b/drivers/misc/gdsys_rxaui_ctrl.c @@ -7,7 +7,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <dm.h> #include <regmap.h> #include <misc.h> diff --git a/drivers/misc/gdsys_soc.c b/drivers/misc/gdsys_soc.c index 27e7dc483276..0adbb8df3c2c 100644 --- a/drivers/misc/gdsys_soc.c +++ b/drivers/misc/gdsys_soc.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/gpio_led.c b/drivers/misc/gpio_led.c index 30679f80cf15..e63689967a7a 100644 --- a/drivers/misc/gpio_led.c +++ b/drivers/misc/gpio_led.c @@ -5,7 +5,6 @@
- Licensed under the GPL-2 or later.
*/
-#include <common.h> #include <status_led.h> #include <asm/gpio.h>
diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index 9cb375a99ab8..10f0173d8050 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_I2C_EEPROM
-#include <common.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c index 6f32087ede56..3ad2e047ee3e 100644 --- a/drivers/misc/i2c_eeprom_emul.c +++ b/drivers/misc/i2c_eeprom_emul.c @@ -5,7 +5,6 @@
- Copyright (c) 2014 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c index a0fece985d85..fe196b608198 100644 --- a/drivers/misc/ihs_fpga.c +++ b/drivers/misc/ihs_fpga.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <regmap.h> diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index b81f73f283f4..90d251a44058 100644 --- a/drivers/misc/imx8/fuse.c +++ b/drivers/misc/imx8/fuse.c @@ -3,7 +3,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 798800aa7583..bbd7e24200bd 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c index 6e2c678e614f..591d71b096a8 100644 --- a/drivers/misc/imx8/scu_api.c +++ b/drivers/misc/imx8/scu_api.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/misc/imx_ele/ele_api.c b/drivers/misc/imx_ele/ele_api.c index e0ec22c7abf9..3745504637b3 100644 --- a/drivers/misc/imx_ele/ele_api.c +++ b/drivers/misc/imx_ele/ele_api.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/misc/imx_ele/ele_mu.c b/drivers/misc/imx_ele/ele_mu.c index 053cdcf0fe07..0cf81f33ba5e 100644 --- a/drivers/misc/imx_ele/ele_mu.c +++ b/drivers/misc/imx_ele/ele_mu.c @@ -3,7 +3,6 @@
- Copyright 2020-2022 NXP
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/imx_ele/fuse.c b/drivers/misc/imx_ele/fuse.c index 4e4dcb42cdd9..d12539c8aac0 100644 --- a/drivers/misc/imx_ele/fuse.c +++ b/drivers/misc/imx_ele/fuse.c @@ -3,7 +3,6 @@
- Copyright 2020 NXP
*/
-#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c index 7b79ed2df466..79eb7c200dc2 100644 --- a/drivers/misc/irq-uclass.c +++ b/drivers/misc/irq-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_IRQ
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <irq.h> diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c index 8b5573fcaddd..5d176f63b5cf 100644 --- a/drivers/misc/irq_sandbox.c +++ b/drivers/misc/irq_sandbox.c @@ -5,7 +5,6 @@
- Copyright 2019 Google LLC
*/
-#include <common.h> #include <dm.h> #include <irq.h> #include <acpi/acpi_device.h> diff --git a/drivers/misc/irq_sandbox_test.c b/drivers/misc/irq_sandbox_test.c index 95c45c24edb8..3669b863bec1 100644 --- a/drivers/misc/irq_sandbox_test.c +++ b/drivers/misc/irq_sandbox_test.c @@ -5,7 +5,6 @@
- Copyright 2021 Google LLC
*/
-#include <common.h> #include <dm.h> #include <irq.h> #include <asm/irq.h> diff --git a/drivers/misc/jz4780_efuse.c b/drivers/misc/jz4780_efuse.c index 1fba3271db61..5c92de26ec5f 100644 --- a/drivers/misc/jz4780_efuse.c +++ b/drivers/misc/jz4780_efuse.c @@ -6,7 +6,6 @@
- Author: Alex Smith alex.smith@imgtec.com
*/
-#include <common.h> #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index 0d29eff1ac08..87471cc3b16a 100644 --- a/drivers/misc/k3_avs.c +++ b/drivers/misc/k3_avs.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c index f6ac18bdc757..fa3d65656220 100644 --- a/drivers/misc/k3_esm.c +++ b/drivers/misc/k3_esm.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/ls2_sfp.c b/drivers/misc/ls2_sfp.c index 5351c7ed34fd..8cb6e999bed1 100644 --- a/drivers/misc/ls2_sfp.c +++ b/drivers/misc/ls2_sfp.c @@ -12,7 +12,6 @@ */
#define LOG_CATEGORY UCLASS_MISC -#include <common.h> #include <clk.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/microchip_flexcom.c b/drivers/misc/microchip_flexcom.c index e0a6f2d38801..c5ddecac7551 100644 --- a/drivers/misc/microchip_flexcom.c +++ b/drivers/misc/microchip_flexcom.c @@ -4,7 +4,6 @@
- Author: Eugen Hristev eugen.hristev@microchip.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c index cfe9d562fa0d..1389e146b612 100644 --- a/drivers/misc/misc-uclass.c +++ b/drivers/misc/misc-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <dm.h> #include <errno.h> #include <misc.h> diff --git a/drivers/misc/misc_sandbox.c b/drivers/misc/misc_sandbox.c index 31cde2dbac07..2473419df2a3 100644 --- a/drivers/misc/misc_sandbox.c +++ b/drivers/misc/misc_sandbox.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <dm.h> #include <misc.h>
diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c index 93c87e998c4f..cf9aa9b35b33 100644 --- a/drivers/misc/mpc83xx_serdes.c +++ b/drivers/misc/mpc83xx_serdes.c @@ -9,7 +9,6 @@
- Copyright (C) 2008 MontaVista Software, Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 8ee18f29d9be..d1674caa138c 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -11,7 +11,6 @@
- Copyright (C) 2011 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c index facc720c8ef2..6432c62dac34 100644 --- a/drivers/misc/mxs_ocotp.c +++ b/drivers/misc/mxs_ocotp.c @@ -11,7 +11,6 @@
etc.) which would make common driver an ifdef nightmare :-(
*/
-#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/npcm_host_intf.c b/drivers/misc/npcm_host_intf.c index 79f57f57d89c..58bab888c3c8 100644 --- a/drivers/misc/npcm_host_intf.c +++ b/drivers/misc/npcm_host_intf.c @@ -4,7 +4,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/misc/npcm_otp.c b/drivers/misc/npcm_otp.c index 08029724c040..adb6135291dc 100644 --- a/drivers/misc/npcm_otp.c +++ b/drivers/misc/npcm_otp.c @@ -4,7 +4,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/nuvoton_nct6102d.c b/drivers/misc/nuvoton_nct6102d.c index daf5019d0170..a3ca037d25f7 100644 --- a/drivers/misc/nuvoton_nct6102d.c +++ b/drivers/misc/nuvoton_nct6102d.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <nuvoton_nct6102d.h> #include <asm/io.h> #include <asm/pnp_def.h> diff --git a/drivers/misc/nvmem.c b/drivers/misc/nvmem.c index 5a2bd1f9f72c..d0cb0a35b816 100644 --- a/drivers/misc/nvmem.c +++ b/drivers/misc/nvmem.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Sean Anderson sean.anderson@seco.com
*/
-#include <common.h> #include <i2c_eeprom.h> #include <linker_lists.h> #include <misc.h> diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c index f24857a1515e..016c80733782 100644 --- a/drivers/misc/p2sb-uclass.c +++ b/drivers/misc/p2sb-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_P2SB
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c index 51f87161d5b7..3dac6bd82e30 100644 --- a/drivers/misc/p2sb_emul.c +++ b/drivers/misc/p2sb_emul.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/misc/p2sb_sandbox.c b/drivers/misc/p2sb_sandbox.c index d80bca22a6b2..9f3cd14958b8 100644 --- a/drivers/misc/p2sb_sandbox.c +++ b/drivers/misc/p2sb_sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_P2SB
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <p2sb.h> diff --git a/drivers/misc/pca9551_led.c b/drivers/misc/pca9551_led.c index cdc4390f8155..040d0d5cf48c 100644 --- a/drivers/misc/pca9551_led.c +++ b/drivers/misc/pca9551_led.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <status_led.h> diff --git a/drivers/misc/pwrseq-uclass.c b/drivers/misc/pwrseq-uclass.c index a0f24e1bf3a9..bddc3c336857 100644 --- a/drivers/misc/pwrseq-uclass.c +++ b/drivers/misc/pwrseq-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PWRSEQ
-#include <common.h> #include <dm.h> #include <pwrseq.h>
diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index db98619fdf53..0e002ac25f48 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_QFW
-#include <common.h> #include <acpi/acpi_table.h> #include <bootdev.h> #include <bootflow.h> diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 2f96b79ea407..c7430147718a 100644 --- a/drivers/misc/rockchip-efuse.c +++ b/drivers/misc/rockchip-efuse.c @@ -6,7 +6,6 @@
- Written by Philipp Tomsich philipp.tomsich@theobroma-systems.com
*/
-#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c index 4f757083a1b6..2123c31038fc 100644 --- a/drivers/misc/rockchip-otp.c +++ b/drivers/misc/rockchip-otp.c @@ -3,7 +3,6 @@
- Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/sandbox_adder.c b/drivers/misc/sandbox_adder.c index 3ea33e46e9f2..de1c63575820 100644 --- a/drivers/misc/sandbox_adder.c +++ b/drivers/misc/sandbox_adder.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <axi.h> #include <dm.h> #include <misc.h> diff --git a/drivers/misc/sifive-otp.c b/drivers/misc/sifive-otp.c index a624a358802c..7fbcd3799e52 100644 --- a/drivers/misc/sifive-otp.c +++ b/drivers/misc/sifive-otp.c @@ -17,7 +17,6 @@
- Right now first 1KiB is used to store only serial number.
*/
-#include <common.h> #include <dm/device.h> #include <dm/read.h> #include <linux/bitops.h> diff --git a/drivers/misc/sl28cpld.c b/drivers/misc/sl28cpld.c index 01ef1c6178fc..1c61b005af3a 100644 --- a/drivers/misc/sl28cpld.c +++ b/drivers/misc/sl28cpld.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Michael Walle michael@walle.cc
*/
-#include <common.h> #include <dm.h> #include <i2c.h>
diff --git a/drivers/misc/smsc_lpc47m.c b/drivers/misc/smsc_lpc47m.c index bda064f1365b..1b15907b0933 100644 --- a/drivers/misc/smsc_lpc47m.c +++ b/drivers/misc/smsc_lpc47m.c @@ -3,7 +3,6 @@
- Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h>
diff --git a/drivers/misc/smsc_sio1007.c b/drivers/misc/smsc_sio1007.c index 3b7b1c8bcf2a..6d99aa61d91d 100644 --- a/drivers/misc/smsc_sio1007.c +++ b/drivers/misc/smsc_sio1007.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <asm/io.h> #include <errno.h> #include <smsc_sio1007.h> diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c index 6b9701a06aee..3011a2292713 100644 --- a/drivers/misc/spltest_sandbox.c +++ b/drivers/misc/spltest_sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <dt-structs.h>
diff --git a/drivers/misc/status_led.c b/drivers/misc/status_led.c index a6e9c03a02ec..3b1baa4f840b 100644 --- a/drivers/misc/status_led.c +++ b/drivers/misc/status_led.c @@ -4,8 +4,8 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <status_led.h> +#include <linux/types.h>
/*
- The purpose of this code is to signal the operational status of a
diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index c1e5428a6b81..0dd827e1dd0e 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_NOP
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/stm32mp_fuse.c b/drivers/misc/stm32mp_fuse.c index 9fd6c367dc61..34be6c28c192 100644 --- a/drivers/misc/stm32mp_fuse.c +++ b/drivers/misc/stm32mp_fuse.c @@ -3,7 +3,6 @@
- Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
-#include <common.h> #include <command.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index ee5c12bd0a42..d4a5620c62c1 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/syscon_sandbox.c b/drivers/misc/syscon_sandbox.c index d5cef188d742..6adb4154c25b 100644 --- a/drivers/misc/syscon_sandbox.c +++ b/drivers/misc/syscon_sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <syscon.h> diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index fecac9c4d902..a1585b818677 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/tegra_car.c b/drivers/misc/tegra_car.c index 0ddbb3c619b2..497ec18564cc 100644 --- a/drivers/misc/tegra_car.c +++ b/drivers/misc/tegra_car.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index 927618256f0a..9b1e357a1397 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -3,7 +3,6 @@
- Copyright (c) 2014 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <dm/test.h> #include <asm/global_data.h> diff --git a/drivers/misc/turris_omnia_mcu.c b/drivers/misc/turris_omnia_mcu.c index 6b2f17c0002d..be77acbd1652 100644 --- a/drivers/misc/turris_omnia_mcu.c +++ b/drivers/misc/turris_omnia_mcu.c @@ -4,7 +4,6 @@
- Copyright (C) 2024 Marek Behún kabel@kernel.org
*/
-#include <common.h> #include <console.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c index 92e92ba5e624..daba2c2d6835 100644 --- a/drivers/misc/usb251xb.c +++ b/drivers/misc/usb251xb.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <asm/gpio.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c index 99aad1412ae7..e7655ceff74c 100644 --- a/drivers/misc/vexpress_config.c +++ b/drivers/misc/vexpress_config.c @@ -4,7 +4,6 @@
- Author: Liviu Dudau liviu.dudau@foss.arm.com
*/ -#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/read.h> diff --git a/drivers/misc/winbond_w83627.c b/drivers/misc/winbond_w83627.c index 3838b3f74f40..87b9043e65c4 100644 --- a/drivers/misc/winbond_w83627.c +++ b/drivers/misc/winbond_w83627.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Thomas Fitzsimmons fitzsim@fitzsim.org Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Tianrui Wei tianrui-wei@outlook.com Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Stefan Roese sr@denx.de Cc: Michal Simek michal.simek@amd.com --- drivers/mmc/am654_sdhci.c | 1 - drivers/mmc/arm_pl180_mmci.c | 1 - drivers/mmc/aspeed_sdhci.c | 1 - drivers/mmc/atmel_sdhci.c | 1 - drivers/mmc/bcm2835_sdhci.c | 1 - drivers/mmc/bcm2835_sdhost.c | 1 - drivers/mmc/bcmstb_sdhci.c | 1 - drivers/mmc/ca_dw_mmc.c | 1 - drivers/mmc/davinci_mmc.c | 1 - drivers/mmc/dw_mmc.c | 1 - drivers/mmc/exynos_dw_mmc.c | 1 - drivers/mmc/f_sdh30.c | 1 - drivers/mmc/fsl_esdhc.c | 1 - drivers/mmc/fsl_esdhc_imx.c | 1 - drivers/mmc/fsl_esdhc_spl.c | 2 +- drivers/mmc/ftsdc010_mci.c | 1 - drivers/mmc/gen_atmel_mci.c | 2 +- drivers/mmc/hi6220_dw_mmc.c | 1 - drivers/mmc/iproc_sdhci.c | 1 - drivers/mmc/jz_mmc.c | 1 - drivers/mmc/kona_sdhci.c | 1 - drivers/mmc/meson_gx_mmc.c | 1 - drivers/mmc/mmc-pwrseq.c | 1 - drivers/mmc/mmc-uclass.c | 1 - drivers/mmc/mmc.c | 3 ++- drivers/mmc/mmc_boot.c | 1 - drivers/mmc/mmc_bootdev.c | 1 - drivers/mmc/mmc_legacy.c | 1 - drivers/mmc/mmc_spi.c | 1 - drivers/mmc/mmc_write.c | 1 - drivers/mmc/msm_sdhci.c | 1 - drivers/mmc/mtk-sd.c | 1 - drivers/mmc/mv_sdhci.c | 1 - drivers/mmc/mvebu_mmc.c | 1 - drivers/mmc/mxcmmc.c | 1 - drivers/mmc/mxsmmc.c | 1 - drivers/mmc/nexell_dw_mmc.c | 1 - drivers/mmc/npcm_sdhci.c | 1 - drivers/mmc/omap_hsmmc.c | 1 - drivers/mmc/owl_mmc.c | 1 - drivers/mmc/pci_mmc.c | 1 - drivers/mmc/piton_mmc.c | 1 - drivers/mmc/rockchip_dw_mmc.c | 1 - drivers/mmc/rockchip_sdhci.c | 1 - drivers/mmc/rpmb.c | 1 - drivers/mmc/s5p_sdhci.c | 1 - drivers/mmc/sandbox_mmc.c | 1 - drivers/mmc/sdhci-adma.c | 1 - drivers/mmc/sdhci-cadence.c | 1 - drivers/mmc/sdhci.c | 2 +- drivers/mmc/sh_mmcif.c | 1 - drivers/mmc/snps_dw_mmc.c | 1 - drivers/mmc/socfpga_dw_mmc.c | 1 - drivers/mmc/sti_sdhci.c | 1 - drivers/mmc/stm32_sdmmc2.c | 1 - drivers/mmc/sunxi_mmc.c | 1 - drivers/mmc/tangier_sdhci.c | 1 - drivers/mmc/tegra_mmc.c | 1 - drivers/mmc/tmio-common.c | 1 - drivers/mmc/uniphier-sd.c | 1 - drivers/mmc/xenon_sdhci.c | 1 - drivers/mmc/zynq_sdhci.c | 1 - 62 files changed, 5 insertions(+), 62 deletions(-)
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ffb461c2f6c1..48fac7a11b48 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index cecc7ad783d0..f00b0ff0dc95 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -11,7 +11,6 @@
/* #define DEBUG */
-#include "common.h" #include <clk.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index c9626c6beb8f..87a6f66ebb37 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -4,7 +4,6 @@ * Eddie James eajames@linux.ibm.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index d92bad97b71e..0b265196f025 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -4,7 +4,6 @@ * Wenyou.Yang wenyou.yang@atmel.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index 5e48394fd0fb..598a51d914a9 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -36,7 +36,6 @@ * Inspired by sdhci-pci.c, by Pierre Ossman */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 5c23c03d10d7..720127468d37 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -30,7 +30,6 @@ * sdhci.c and sdhci-pci.c by Pierre Ossman */ #include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <asm/arch/msg.h> diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c index 49846adcf547..7bddbebb1622 100644 --- a/drivers/mmc/bcmstb_sdhci.c +++ b/drivers/mmc/bcmstb_sdhci.c @@ -6,7 +6,6 @@ * Author: Thomas Fitzsimmons fitzsim@fitzsim.org */
-#include <common.h> #include <dm.h> #include <mach/sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index a17ed8c11cbe..54a2ba4795e3 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -4,7 +4,6 @@ * Arthur Li arthur.li@cortina-access.com */
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c index 3a3d23aec00a..5107fcd83625 100644 --- a/drivers/mmc/davinci_mmc.c +++ b/drivers/mmc/davinci_mmc.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <mmc.h> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e1036641452a..e6107c770fe3 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -6,7 +6,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 2f849c43b129..a51f762988da 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/f_sdh30.c b/drivers/mmc/f_sdh30.c index 3d587a464d50..f47cf8485216 100644 --- a/drivers/mmc/f_sdh30.c +++ b/drivers/mmc/f_sdh30.c @@ -5,7 +5,6 @@ * Copyright 2021 Socionext, Inc. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5ac1c6a0e9e1..0c66980b6218 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -10,7 +10,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <cpu_func.h> #include <errno.h> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8b2ef9391f3e..a9b8d7dd67f3 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -11,7 +11,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <clk.h> #include <cpu_func.h> diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 6d7c0cff22a5..1a11258be4de 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -3,7 +3,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <mmc.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index cabb747fbbdb..11e44264e47d 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -9,7 +9,6 @@ * Author: Rick Chen (rick@andestech.com) */
-#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 3ee99558f6f9..6a531fa09615 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -8,7 +8,7 @@ * Copyright (C) 2004-2006 Atmel Corporation */
-#include <common.h> +#include <config.h> #include <clk.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index dc0210402bd2..c68a9157bfcc 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -4,7 +4,6 @@ * peter.griffin peter.griffin@linaro.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 11d86ad658f9..7ab74ff117a6 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 61e48ee0f62d..fc10bb256a4d 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -6,7 +6,6 @@ * Author: Paul Burton paul.burton@imgtec.com */
-#include <common.h> #include <malloc.h> #include <mmc.h> #include <asm/global_data.h> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 2bbe673b9129..83f141226325 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -3,7 +3,6 @@ * Copyright 2013 Broadcom Corporation. */
-#include <common.h> #include <malloc.h> #include <sdhci.h> #include <linux/delay.h> diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 0825c0a2a838..5852b24c6d2a 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 Carlo Caione carlo@caione.org */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/mmc-pwrseq.c b/drivers/mmc/mmc-pwrseq.c index 2539f61323d1..a1c9624a2225 100644 --- a/drivers/mmc/mmc-pwrseq.c +++ b/drivers/mmc/mmc-pwrseq.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <dm.h> #include <mmc.h> #include <pwrseq.h> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 0685b86af464..da6a39b7d990 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <bootdev.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4543d94c7205..b18dc331f785 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h> @@ -17,6 +16,7 @@ #include <errno.h> #include <mmc.h> #include <part.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> @@ -24,6 +24,7 @@ #include <malloc.h> #include <memalign.h> #include <linux/list.h> +#include <linux/printk.h> #include <div64.h> #include "mmc_private.h"
diff --git a/drivers/mmc/mmc_boot.c b/drivers/mmc/mmc_boot.c index 0a74b1fb776a..367c957b5181 100644 --- a/drivers/mmc/mmc_boot.c +++ b/drivers/mmc/mmc_boot.c @@ -4,7 +4,6 @@ * Written by Amar amarendra.xt@samsung.com */
-#include <common.h> #include <log.h> #include <mmc.h> #include "mmc_private.h" diff --git a/drivers/mmc/mmc_bootdev.c b/drivers/mmc/mmc_bootdev.c index 55ecead2ddf9..5a1688b75d09 100644 --- a/drivers/mmc/mmc_bootdev.c +++ b/drivers/mmc/mmc_bootdev.c @@ -6,7 +6,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c index a101ee43fde5..a87d2276c1b8 100644 --- a/drivers/mmc/mmc_legacy.c +++ b/drivers/mmc/mmc_legacy.c @@ -5,7 +5,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index bcea800e5f61..675e642efd08 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -6,7 +6,6 @@ * * Licensed under the GPL-2 or later. */ -#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index a6f93380dd09..c023d15e52a8 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 5e9d66526a83..4ce0de6c47d8 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -7,7 +7,6 @@ * Based on Linux driver */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 4bd66ecf93ad..3a9258255a78 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <errno.h> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index dbdd671c88bc..2da5334c21f1 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -3,7 +3,6 @@ * Marvell SD Host Controller Interface */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index fea55c61ed7d..5af1953cd148 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -7,7 +7,6 @@ * Written-by: Maen Suleiman, Gerald Kerma */
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 0057273a2a76..1acea6f820b4 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -17,7 +17,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <mmc.h> #include <part.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35a8e21058ed..95390a5be7e5 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -20,7 +20,6 @@ * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net */
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c index 2723e4887cf7..2e1ce54c7d50 100644 --- a/drivers/mmc/nexell_dw_mmc.c +++ b/drivers/mmc/nexell_dw_mmc.c @@ -6,7 +6,6 @@ * (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net */
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <dwmmc.h> diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index d63521d6855f..dff4732ea06f 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <sdhci.h> #include <clk.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 118d9cd16fdb..2b7f9fc9a205 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -23,7 +23,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c index e84171a661a7..bd4906f58e74 100644 --- a/drivers/mmc/owl_mmc.c +++ b/drivers/mmc/owl_mmc.c @@ -11,7 +11,6 @@ * channel, and those special bits used in this driver is picked from vendor * source exclusively for MMC/SD. */ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 4d163ccba041..d446c55f72b2 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -4,7 +4,6 @@ * Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/piton_mmc.c b/drivers/mmc/piton_mmc.c index a330bbf8cbe2..fed1f8416088 100644 --- a/drivers/mmc/piton_mmc.c +++ b/drivers/mmc/piton_mmc.c @@ -11,7 +11,6 @@
#include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index ad4529d6afa8..1a10b7057a47 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 Google, Inc */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index c889c7bc9855..35667b86b50b 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -5,7 +5,6 @@ * Rockchip SD Host Controller Interface */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index b68d98573c9a..0658ce22cf13 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <memalign.h> #include <mmc.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 3b74feae68c7..80dbb38c9b36 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c index 0ba7940a4dbf..a24520f2e78c 100644 --- a/drivers/mmc/sandbox_mmc.c +++ b/drivers/mmc/sandbox_mmc.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/mmc/sdhci-adma.c b/drivers/mmc/sdhci-adma.c index 283ba956deb9..fdb189d71a64 100644 --- a/drivers/mmc/sdhci-adma.c +++ b/drivers/mmc/sdhci-adma.c @@ -3,7 +3,6 @@ * SDHCI ADMA2 helper functions. */
-#include <common.h> #include <cpu_func.h> #include <sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 0570dbca00d7..07ec35a04635 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d06f2c02bb7b..560b7e889c77 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -7,7 +7,6 @@ * Murray.Jensen@cmst.csiro.au, 27-Jan-01. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -15,6 +14,7 @@ #include <malloc.h> #include <mmc.h> #include <sdhci.h> +#include <time.h> #include <asm/cache.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 76dc1c68b821..06a30d5efb81 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <watchdog.h> #include <command.h> diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c index 0134399e3934..9bdbe5070b1d 100644 --- a/drivers/mmc/snps_dw_mmc.c +++ b/drivers/mmc/snps_dw_mmc.c @@ -7,7 +7,6 @@ * Author: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 387cb8b6b50a..f738019b8357 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -3,7 +3,6 @@ * (C) Copyright 2013 Altera Corporation <www.altera.com> */
-#include <common.h> #include <log.h> #include <asm/arch/clock_manager.h> #include <asm/arch/secure_reg_helper.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 23a1dd43c9b2..91018b7e21af 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -4,7 +4,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <dm.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 39ae79ba1293..9483fb57daf8 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 714706d2411b..0b56d1405bee 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -13,7 +13,6 @@ * proper DM_MMC implementation at the end. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c index 115642733243..ae65c310b685 100644 --- a/drivers/mmc/tangier_sdhci.c +++ b/drivers/mmc/tangier_sdhci.c @@ -2,7 +2,6 @@ /* * Copyright (c) 2017 Intel Corporation */ -#include <common.h> #include <dm.h> #include <dm/device.h> #include <linux/io.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index c01fb3d01657..5ed7f01d3f36 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -7,7 +7,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 719c4830bc30..0b396122b464 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <fdtdec.h> diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 8cde4308aaed..5b3650d52eea 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <clk.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 27dbe0404e04..0e4902fab77c 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -14,7 +14,6 @@ * Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 935540d17194..898be5a0913a 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <linux/delay.h>

On Thu, 2 May 2024 at 02:32, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Peter Robinson pbrobinson@gmail.com
Looks good.
Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Thomas Fitzsimmons fitzsim@fitzsim.org Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Tianrui Wei tianrui-wei@outlook.com Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Stefan Roese sr@denx.de Cc: Michal Simek michal.simek@amd.com
drivers/mmc/am654_sdhci.c | 1 - drivers/mmc/arm_pl180_mmci.c | 1 - drivers/mmc/aspeed_sdhci.c | 1 - drivers/mmc/atmel_sdhci.c | 1 - drivers/mmc/bcm2835_sdhci.c | 1 - drivers/mmc/bcm2835_sdhost.c | 1 - drivers/mmc/bcmstb_sdhci.c | 1 - drivers/mmc/ca_dw_mmc.c | 1 - drivers/mmc/davinci_mmc.c | 1 - drivers/mmc/dw_mmc.c | 1 - drivers/mmc/exynos_dw_mmc.c | 1 - drivers/mmc/f_sdh30.c | 1 - drivers/mmc/fsl_esdhc.c | 1 - drivers/mmc/fsl_esdhc_imx.c | 1 - drivers/mmc/fsl_esdhc_spl.c | 2 +- drivers/mmc/ftsdc010_mci.c | 1 - drivers/mmc/gen_atmel_mci.c | 2 +- drivers/mmc/hi6220_dw_mmc.c | 1 - drivers/mmc/iproc_sdhci.c | 1 - drivers/mmc/jz_mmc.c | 1 - drivers/mmc/kona_sdhci.c | 1 - drivers/mmc/meson_gx_mmc.c | 1 - drivers/mmc/mmc-pwrseq.c | 1 - drivers/mmc/mmc-uclass.c | 1 - drivers/mmc/mmc.c | 3 ++- drivers/mmc/mmc_boot.c | 1 - drivers/mmc/mmc_bootdev.c | 1 - drivers/mmc/mmc_legacy.c | 1 - drivers/mmc/mmc_spi.c | 1 - drivers/mmc/mmc_write.c | 1 - drivers/mmc/msm_sdhci.c | 1 - drivers/mmc/mtk-sd.c | 1 - drivers/mmc/mv_sdhci.c | 1 - drivers/mmc/mvebu_mmc.c | 1 - drivers/mmc/mxcmmc.c | 1 - drivers/mmc/mxsmmc.c | 1 - drivers/mmc/nexell_dw_mmc.c | 1 - drivers/mmc/npcm_sdhci.c | 1 - drivers/mmc/omap_hsmmc.c | 1 - drivers/mmc/owl_mmc.c | 1 - drivers/mmc/pci_mmc.c | 1 - drivers/mmc/piton_mmc.c | 1 - drivers/mmc/rockchip_dw_mmc.c | 1 - drivers/mmc/rockchip_sdhci.c | 1 - drivers/mmc/rpmb.c | 1 - drivers/mmc/s5p_sdhci.c | 1 - drivers/mmc/sandbox_mmc.c | 1 - drivers/mmc/sdhci-adma.c | 1 - drivers/mmc/sdhci-cadence.c | 1 - drivers/mmc/sdhci.c | 2 +- drivers/mmc/sh_mmcif.c | 1 - drivers/mmc/snps_dw_mmc.c | 1 - drivers/mmc/socfpga_dw_mmc.c | 1 - drivers/mmc/sti_sdhci.c | 1 - drivers/mmc/stm32_sdmmc2.c | 1 - drivers/mmc/sunxi_mmc.c | 1 - drivers/mmc/tangier_sdhci.c | 1 - drivers/mmc/tegra_mmc.c | 1 - drivers/mmc/tmio-common.c | 1 - drivers/mmc/uniphier-sd.c | 1 - drivers/mmc/xenon_sdhci.c | 1 - drivers/mmc/zynq_sdhci.c | 1 - 62 files changed, 5 insertions(+), 62 deletions(-)
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ffb461c2f6c1..48fac7a11b48 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index cecc7ad783d0..f00b0ff0dc95 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -11,7 +11,6 @@
/* #define DEBUG */
-#include "common.h" #include <clk.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index c9626c6beb8f..87a6f66ebb37 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -4,7 +4,6 @@
- Eddie James eajames@linux.ibm.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index d92bad97b71e..0b265196f025 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index 5e48394fd0fb..598a51d914a9 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -36,7 +36,6 @@
- Inspired by sdhci-pci.c, by Pierre Ossman
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 5c23c03d10d7..720127468d37 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -30,7 +30,6 @@
- sdhci.c and sdhci-pci.c by Pierre Ossman
*/ #include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <asm/arch/msg.h> diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c index 49846adcf547..7bddbebb1622 100644 --- a/drivers/mmc/bcmstb_sdhci.c +++ b/drivers/mmc/bcmstb_sdhci.c @@ -6,7 +6,6 @@
- Author: Thomas Fitzsimmons fitzsim@fitzsim.org
*/
-#include <common.h> #include <dm.h> #include <mach/sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index a17ed8c11cbe..54a2ba4795e3 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -4,7 +4,6 @@
- Arthur Li arthur.li@cortina-access.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c index 3a3d23aec00a..5107fcd83625 100644 --- a/drivers/mmc/davinci_mmc.c +++ b/drivers/mmc/davinci_mmc.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <mmc.h> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e1036641452a..e6107c770fe3 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -6,7 +6,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 2f849c43b129..a51f762988da 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/f_sdh30.c b/drivers/mmc/f_sdh30.c index 3d587a464d50..f47cf8485216 100644 --- a/drivers/mmc/f_sdh30.c +++ b/drivers/mmc/f_sdh30.c @@ -5,7 +5,6 @@
- Copyright 2021 Socionext, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5ac1c6a0e9e1..0c66980b6218 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -10,7 +10,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <cpu_func.h> #include <errno.h> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8b2ef9391f3e..a9b8d7dd67f3 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -11,7 +11,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <clk.h> #include <cpu_func.h> diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 6d7c0cff22a5..1a11258be4de 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -3,7 +3,7 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <mmc.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index cabb747fbbdb..11e44264e47d 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -9,7 +9,6 @@
- Author: Rick Chen (rick@andestech.com)
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 3ee99558f6f9..6a531fa09615 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -8,7 +8,7 @@
- Copyright (C) 2004-2006 Atmel Corporation
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index dc0210402bd2..c68a9157bfcc 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -4,7 +4,6 @@
- peter.griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 11d86ad658f9..7ab74ff117a6 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 61e48ee0f62d..fc10bb256a4d 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -6,7 +6,6 @@
- Author: Paul Burton paul.burton@imgtec.com
*/
-#include <common.h> #include <malloc.h> #include <mmc.h> #include <asm/global_data.h> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 2bbe673b9129..83f141226325 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -3,7 +3,6 @@
- Copyright 2013 Broadcom Corporation.
*/
-#include <common.h> #include <malloc.h> #include <sdhci.h> #include <linux/delay.h> diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 0825c0a2a838..5852b24c6d2a 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Carlo Caione carlo@caione.org
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/mmc-pwrseq.c b/drivers/mmc/mmc-pwrseq.c index 2539f61323d1..a1c9624a2225 100644 --- a/drivers/mmc/mmc-pwrseq.c +++ b/drivers/mmc/mmc-pwrseq.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <mmc.h> #include <pwrseq.h> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 0685b86af464..da6a39b7d990 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <bootdev.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4543d94c7205..b18dc331f785 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h> @@ -17,6 +16,7 @@ #include <errno.h> #include <mmc.h> #include <part.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> @@ -24,6 +24,7 @@ #include <malloc.h> #include <memalign.h> #include <linux/list.h> +#include <linux/printk.h> #include <div64.h> #include "mmc_private.h"
diff --git a/drivers/mmc/mmc_boot.c b/drivers/mmc/mmc_boot.c index 0a74b1fb776a..367c957b5181 100644 --- a/drivers/mmc/mmc_boot.c +++ b/drivers/mmc/mmc_boot.c @@ -4,7 +4,6 @@
- Written by Amar amarendra.xt@samsung.com
*/
-#include <common.h> #include <log.h> #include <mmc.h> #include "mmc_private.h" diff --git a/drivers/mmc/mmc_bootdev.c b/drivers/mmc/mmc_bootdev.c index 55ecead2ddf9..5a1688b75d09 100644 --- a/drivers/mmc/mmc_bootdev.c +++ b/drivers/mmc/mmc_bootdev.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c index a101ee43fde5..a87d2276c1b8 100644 --- a/drivers/mmc/mmc_legacy.c +++ b/drivers/mmc/mmc_legacy.c @@ -5,7 +5,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index bcea800e5f61..675e642efd08 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -6,7 +6,6 @@
- Licensed under the GPL-2 or later.
*/ -#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index a6f93380dd09..c023d15e52a8 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 5e9d66526a83..4ce0de6c47d8 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -7,7 +7,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 4bd66ecf93ad..3a9258255a78 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <errno.h> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index dbdd671c88bc..2da5334c21f1 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -3,7 +3,6 @@
- Marvell SD Host Controller Interface
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index fea55c61ed7d..5af1953cd148 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -7,7 +7,6 @@
- Written-by: Maen Suleiman, Gerald Kerma
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 0057273a2a76..1acea6f820b4 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -17,7 +17,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <mmc.h> #include <part.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35a8e21058ed..95390a5be7e5 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -20,7 +20,6 @@
- Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c index 2723e4887cf7..2e1ce54c7d50 100644 --- a/drivers/mmc/nexell_dw_mmc.c +++ b/drivers/mmc/nexell_dw_mmc.c @@ -6,7 +6,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <dwmmc.h> diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index d63521d6855f..dff4732ea06f 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <sdhci.h> #include <clk.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 118d9cd16fdb..2b7f9fc9a205 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -23,7 +23,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c index e84171a661a7..bd4906f58e74 100644 --- a/drivers/mmc/owl_mmc.c +++ b/drivers/mmc/owl_mmc.c @@ -11,7 +11,6 @@
- channel, and those special bits used in this driver is picked from vendor
- source exclusively for MMC/SD.
*/ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 4d163ccba041..d446c55f72b2 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -4,7 +4,6 @@
- Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/piton_mmc.c b/drivers/mmc/piton_mmc.c index a330bbf8cbe2..fed1f8416088 100644 --- a/drivers/mmc/piton_mmc.c +++ b/drivers/mmc/piton_mmc.c @@ -11,7 +11,6 @@
#include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index ad4529d6afa8..1a10b7057a47 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index c889c7bc9855..35667b86b50b 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -5,7 +5,6 @@
- Rockchip SD Host Controller Interface
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index b68d98573c9a..0658ce22cf13 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <memalign.h> #include <mmc.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 3b74feae68c7..80dbb38c9b36 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c index 0ba7940a4dbf..a24520f2e78c 100644 --- a/drivers/mmc/sandbox_mmc.c +++ b/drivers/mmc/sandbox_mmc.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/mmc/sdhci-adma.c b/drivers/mmc/sdhci-adma.c index 283ba956deb9..fdb189d71a64 100644 --- a/drivers/mmc/sdhci-adma.c +++ b/drivers/mmc/sdhci-adma.c @@ -3,7 +3,6 @@
- SDHCI ADMA2 helper functions.
*/
-#include <common.h> #include <cpu_func.h> #include <sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 0570dbca00d7..07ec35a04635 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d06f2c02bb7b..560b7e889c77 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -7,7 +7,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -15,6 +14,7 @@ #include <malloc.h> #include <mmc.h> #include <sdhci.h> +#include <time.h> #include <asm/cache.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 76dc1c68b821..06a30d5efb81 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <watchdog.h> #include <command.h> diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c index 0134399e3934..9bdbe5070b1d 100644 --- a/drivers/mmc/snps_dw_mmc.c +++ b/drivers/mmc/snps_dw_mmc.c @@ -7,7 +7,6 @@
- Author: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 387cb8b6b50a..f738019b8357 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2013 Altera Corporation <www.altera.com>
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock_manager.h> #include <asm/arch/secure_reg_helper.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 23a1dd43c9b2..91018b7e21af 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 39ae79ba1293..9483fb57daf8 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 714706d2411b..0b56d1405bee 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -13,7 +13,6 @@
- proper DM_MMC implementation at the end.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c index 115642733243..ae65c310b685 100644 --- a/drivers/mmc/tangier_sdhci.c +++ b/drivers/mmc/tangier_sdhci.c @@ -2,7 +2,6 @@ /*
- Copyright (c) 2017 Intel Corporation
*/ -#include <common.h> #include <dm.h> #include <dm/device.h> #include <linux/io.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index c01fb3d01657..5ed7f01d3f36 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -7,7 +7,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 719c4830bc30..0b396122b464 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <fdtdec.h> diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 8cde4308aaed..5b3650d52eea 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 27dbe0404e04..0e4902fab77c 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -14,7 +14,6 @@
- Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 935540d17194..898be5a0913a 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <fdtdec.h>
#include <linux/delay.h>
2.34.1

-----Original Message----- From: Tom Rini trini@konsulko.com Sent: Thursday, May 2, 2024 10:31 AM To: u-boot@lists.denx.de Cc: Peng Fan peng.fan@nxp.com; Jaehoon Chung jh80.chung@samsung.com; Ryan Chen ryan_chen@aspeedtech.com; Chia-Wei Wang chiawei_wang@aspeedtech.com; Aspeed BMC SW team <BMC- SW@aspeedtech.com>; Joel Stanley joel@jms.id.au; Matthias Brugger mbrugger@suse.com; Peter Robinson pbrobinson@gmail.com; Thomas Fitzsimmons fitzsim@fitzsim.org; Alex Nemirovsky alex.nemirovsky@cortina-access.com; Masahisa Kojima kojima.masahisa@socionext.com; Neil Armstrong neil.armstrong@linaro.org; Simon Glass sjg@chromium.org; Caleb Connolly caleb.connolly@linaro.org; Sumit Garg sumit.garg@linaro.org; Ryder Lee ryder.lee@mediatek.com; Weijie Gao weijie.gao@mediatek.com; Chunfeng Yun chunfeng.yun@mediatek.com; GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com; Tianrui Wei tianrui-wei@outlook.com; Philipp Tomsich philipp.tomsich@vrull.eu; Kever Yang kever.yang@rock-chips.com; Nobuhiro Iwamatsu iwamatsu@nigauri.org; Marek Vasut marek.vasut+renesas@mailbox.org; Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com; Patrice Chotard patrice.chotard@foss.st.com; Patrick Delaunay patrick.delaunay@foss.st.com; Thierry Reding treding@nvidia.com; Svyatoslav Ryhel clamor95@gmail.com; Kunihiko Hayashi hayashi.kunihiko@socionext.com; Dai Okamura okamura.dai@socionext.com; Stefan Roese sr@denx.de; Michal Simek michal.simek@amd.com Subject: [PATCH 42/81] mmc: Remove <common.h> and add needed includes
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Jaehoon Chung jh80.chung@samsung.com
Best Regards, Jaehoon Chung
Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Thomas Fitzsimmons fitzsim@fitzsim.org Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Tianrui Wei tianrui-wei@outlook.com Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Stefan Roese sr@denx.de Cc: Michal Simek michal.simek@amd.com
drivers/mmc/am654_sdhci.c | 1 - drivers/mmc/arm_pl180_mmci.c | 1 - drivers/mmc/aspeed_sdhci.c | 1 - drivers/mmc/atmel_sdhci.c | 1 - drivers/mmc/bcm2835_sdhci.c | 1 - drivers/mmc/bcm2835_sdhost.c | 1 - drivers/mmc/bcmstb_sdhci.c | 1 - drivers/mmc/ca_dw_mmc.c | 1 - drivers/mmc/davinci_mmc.c | 1 - drivers/mmc/dw_mmc.c | 1 - drivers/mmc/exynos_dw_mmc.c | 1 - drivers/mmc/f_sdh30.c | 1 - drivers/mmc/fsl_esdhc.c | 1 - drivers/mmc/fsl_esdhc_imx.c | 1 - drivers/mmc/fsl_esdhc_spl.c | 2 +- drivers/mmc/ftsdc010_mci.c | 1 - drivers/mmc/gen_atmel_mci.c | 2 +- drivers/mmc/hi6220_dw_mmc.c | 1 - drivers/mmc/iproc_sdhci.c | 1 - drivers/mmc/jz_mmc.c | 1 - drivers/mmc/kona_sdhci.c | 1 - drivers/mmc/meson_gx_mmc.c | 1 - drivers/mmc/mmc-pwrseq.c | 1 - drivers/mmc/mmc-uclass.c | 1 - drivers/mmc/mmc.c | 3 ++- drivers/mmc/mmc_boot.c | 1 - drivers/mmc/mmc_bootdev.c | 1 - drivers/mmc/mmc_legacy.c | 1 - drivers/mmc/mmc_spi.c | 1 - drivers/mmc/mmc_write.c | 1 - drivers/mmc/msm_sdhci.c | 1 - drivers/mmc/mtk-sd.c | 1 - drivers/mmc/mv_sdhci.c | 1 - drivers/mmc/mvebu_mmc.c | 1 - drivers/mmc/mxcmmc.c | 1 - drivers/mmc/mxsmmc.c | 1 - drivers/mmc/nexell_dw_mmc.c | 1 - drivers/mmc/npcm_sdhci.c | 1 - drivers/mmc/omap_hsmmc.c | 1 - drivers/mmc/owl_mmc.c | 1 - drivers/mmc/pci_mmc.c | 1 - drivers/mmc/piton_mmc.c | 1 - drivers/mmc/rockchip_dw_mmc.c | 1 - drivers/mmc/rockchip_sdhci.c | 1 - drivers/mmc/rpmb.c | 1 - drivers/mmc/s5p_sdhci.c | 1 - drivers/mmc/sandbox_mmc.c | 1 - drivers/mmc/sdhci-adma.c | 1 - drivers/mmc/sdhci-cadence.c | 1 - drivers/mmc/sdhci.c | 2 +- drivers/mmc/sh_mmcif.c | 1 - drivers/mmc/snps_dw_mmc.c | 1 - drivers/mmc/socfpga_dw_mmc.c | 1 - drivers/mmc/sti_sdhci.c | 1 - drivers/mmc/stm32_sdmmc2.c | 1 - drivers/mmc/sunxi_mmc.c | 1 - drivers/mmc/tangier_sdhci.c | 1 - drivers/mmc/tegra_mmc.c | 1 - drivers/mmc/tmio-common.c | 1 - drivers/mmc/uniphier-sd.c | 1 - drivers/mmc/xenon_sdhci.c | 1 - drivers/mmc/zynq_sdhci.c | 1 - 62 files changed, 5 insertions(+), 62 deletions(-)
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ffb461c2f6c1..48fac7a11b48 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index cecc7ad783d0..f00b0ff0dc95 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -11,7 +11,6 @@
/* #define DEBUG */
-#include "common.h" #include <clk.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index c9626c6beb8f..87a6f66ebb37 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -4,7 +4,6 @@
- Eddie James eajames@linux.ibm.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index d92bad97b71e..0b265196f025 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index 5e48394fd0fb..598a51d914a9 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -36,7 +36,6 @@
- Inspired by sdhci-pci.c, by Pierre Ossman
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 5c23c03d10d7..720127468d37 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -30,7 +30,6 @@
- sdhci.c and sdhci-pci.c by Pierre Ossman
*/ #include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <asm/arch/msg.h> diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c index 49846adcf547..7bddbebb1622 100644 --- a/drivers/mmc/bcmstb_sdhci.c +++ b/drivers/mmc/bcmstb_sdhci.c @@ -6,7 +6,6 @@
- Author: Thomas Fitzsimmons fitzsim@fitzsim.org
*/
-#include <common.h> #include <dm.h> #include <mach/sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index a17ed8c11cbe..54a2ba4795e3 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -4,7 +4,6 @@
- Arthur Li arthur.li@cortina-access.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c index 3a3d23aec00a..5107fcd83625 100644 --- a/drivers/mmc/davinci_mmc.c +++ b/drivers/mmc/davinci_mmc.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <mmc.h> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e1036641452a..e6107c770fe3 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -6,7 +6,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 2f849c43b129..a51f762988da 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/f_sdh30.c b/drivers/mmc/f_sdh30.c index 3d587a464d50..f47cf8485216 100644 --- a/drivers/mmc/f_sdh30.c +++ b/drivers/mmc/f_sdh30.c @@ -5,7 +5,6 @@
- Copyright 2021 Socionext, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5ac1c6a0e9e1..0c66980b6218 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -10,7 +10,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <cpu_func.h> #include <errno.h> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8b2ef9391f3e..a9b8d7dd67f3 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -11,7 +11,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <clk.h> #include <cpu_func.h> diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 6d7c0cff22a5..1a11258be4de 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -3,7 +3,7 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <mmc.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index cabb747fbbdb..11e44264e47d 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -9,7 +9,6 @@
- Author: Rick Chen (rick@andestech.com)
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 3ee99558f6f9..6a531fa09615 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -8,7 +8,7 @@
- Copyright (C) 2004-2006 Atmel Corporation
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index dc0210402bd2..c68a9157bfcc 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -4,7 +4,6 @@
- peter.griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 11d86ad658f9..7ab74ff117a6 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 61e48ee0f62d..fc10bb256a4d 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -6,7 +6,6 @@
- Author: Paul Burton paul.burton@imgtec.com
*/
-#include <common.h> #include <malloc.h> #include <mmc.h> #include <asm/global_data.h> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 2bbe673b9129..83f141226325 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -3,7 +3,6 @@
- Copyright 2013 Broadcom Corporation.
*/
-#include <common.h> #include <malloc.h> #include <sdhci.h> #include <linux/delay.h> diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 0825c0a2a838..5852b24c6d2a 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Carlo Caione carlo@caione.org
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/mmc-pwrseq.c b/drivers/mmc/mmc-pwrseq.c index 2539f61323d1..a1c9624a2225 100644 --- a/drivers/mmc/mmc-pwrseq.c +++ b/drivers/mmc/mmc-pwrseq.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <mmc.h> #include <pwrseq.h> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 0685b86af464..da6a39b7d990 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <bootdev.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4543d94c7205..b18dc331f785 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h> @@ -17,6 +16,7 @@ #include <errno.h> #include <mmc.h> #include <part.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> @@ -24,6 +24,7 @@ #include <malloc.h> #include <memalign.h> #include <linux/list.h> +#include <linux/printk.h> #include <div64.h> #include "mmc_private.h"
diff --git a/drivers/mmc/mmc_boot.c b/drivers/mmc/mmc_boot.c index 0a74b1fb776a..367c957b5181 100644 --- a/drivers/mmc/mmc_boot.c +++ b/drivers/mmc/mmc_boot.c @@ -4,7 +4,6 @@
- Written by Amar amarendra.xt@samsung.com
*/
-#include <common.h> #include <log.h> #include <mmc.h> #include "mmc_private.h" diff --git a/drivers/mmc/mmc_bootdev.c b/drivers/mmc/mmc_bootdev.c index 55ecead2ddf9..5a1688b75d09 100644 --- a/drivers/mmc/mmc_bootdev.c +++ b/drivers/mmc/mmc_bootdev.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c index a101ee43fde5..a87d2276c1b8 100644 --- a/drivers/mmc/mmc_legacy.c +++ b/drivers/mmc/mmc_legacy.c @@ -5,7 +5,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index bcea800e5f61..675e642efd08 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -6,7 +6,6 @@
- Licensed under the GPL-2 or later.
*/ -#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index a6f93380dd09..c023d15e52a8 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 5e9d66526a83..4ce0de6c47d8 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -7,7 +7,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 4bd66ecf93ad..3a9258255a78 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <errno.h> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index dbdd671c88bc..2da5334c21f1 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -3,7 +3,6 @@
- Marvell SD Host Controller Interface
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index fea55c61ed7d..5af1953cd148 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -7,7 +7,6 @@
- Written-by: Maen Suleiman, Gerald Kerma
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 0057273a2a76..1acea6f820b4 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -17,7 +17,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <mmc.h> #include <part.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35a8e21058ed..95390a5be7e5 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -20,7 +20,6 @@
- Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c index 2723e4887cf7..2e1ce54c7d50 100644 --- a/drivers/mmc/nexell_dw_mmc.c +++ b/drivers/mmc/nexell_dw_mmc.c @@ -6,7 +6,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <dwmmc.h> diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index d63521d6855f..dff4732ea06f 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <sdhci.h> #include <clk.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 118d9cd16fdb..2b7f9fc9a205 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -23,7 +23,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c index e84171a661a7..bd4906f58e74 100644 --- a/drivers/mmc/owl_mmc.c +++ b/drivers/mmc/owl_mmc.c @@ -11,7 +11,6 @@
- channel, and those special bits used in this driver is picked from vendor
- source exclusively for MMC/SD.
*/ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 4d163ccba041..d446c55f72b2 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -4,7 +4,6 @@
- Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/piton_mmc.c b/drivers/mmc/piton_mmc.c index a330bbf8cbe2..fed1f8416088 100644 --- a/drivers/mmc/piton_mmc.c +++ b/drivers/mmc/piton_mmc.c @@ -11,7 +11,6 @@
#include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index ad4529d6afa8..1a10b7057a47 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index c889c7bc9855..35667b86b50b 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -5,7 +5,6 @@
- Rockchip SD Host Controller Interface
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index b68d98573c9a..0658ce22cf13 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <memalign.h> #include <mmc.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 3b74feae68c7..80dbb38c9b36 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c index 0ba7940a4dbf..a24520f2e78c 100644 --- a/drivers/mmc/sandbox_mmc.c +++ b/drivers/mmc/sandbox_mmc.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/mmc/sdhci-adma.c b/drivers/mmc/sdhci-adma.c index 283ba956deb9..fdb189d71a64 100644 --- a/drivers/mmc/sdhci-adma.c +++ b/drivers/mmc/sdhci-adma.c @@ -3,7 +3,6 @@
- SDHCI ADMA2 helper functions.
*/
-#include <common.h> #include <cpu_func.h> #include <sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 0570dbca00d7..07ec35a04635 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d06f2c02bb7b..560b7e889c77 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -7,7 +7,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -15,6 +14,7 @@ #include <malloc.h> #include <mmc.h> #include <sdhci.h> +#include <time.h> #include <asm/cache.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 76dc1c68b821..06a30d5efb81 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <watchdog.h> #include <command.h> diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c index 0134399e3934..9bdbe5070b1d 100644 --- a/drivers/mmc/snps_dw_mmc.c +++ b/drivers/mmc/snps_dw_mmc.c @@ -7,7 +7,6 @@
- Author: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 387cb8b6b50a..f738019b8357 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2013 Altera Corporation <https://protect2.fireeye.com/v1/url?k=02245fbf-5dbf6742-
0225d4f0-000babff317b-71f0095a955d1189&q=1&e=fd8eb5c0-5453-48c2-94b4- 6557ecb5f94f&u=http%3A%2F%2Fwww.altera.com%2F> */
-#include <common.h> #include <log.h> #include <asm/arch/clock_manager.h> #include <asm/arch/secure_reg_helper.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 23a1dd43c9b2..91018b7e21af 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 39ae79ba1293..9483fb57daf8 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 714706d2411b..0b56d1405bee 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -13,7 +13,6 @@
- proper DM_MMC implementation at the end.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c index 115642733243..ae65c310b685 100644 --- a/drivers/mmc/tangier_sdhci.c +++ b/drivers/mmc/tangier_sdhci.c @@ -2,7 +2,6 @@ /*
- Copyright (c) 2017 Intel Corporation
*/ -#include <common.h> #include <dm.h> #include <dm/device.h> #include <linux/io.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index c01fb3d01657..5ed7f01d3f36 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -7,7 +7,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 719c4830bc30..0b396122b464 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <fdtdec.h> diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 8cde4308aaed..5b3650d52eea 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 27dbe0404e04..0e4902fab77c 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -14,7 +14,6 @@
- Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 935540d17194..898be5a0913a 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <fdtdec.h>
#include <linux/delay.h>
2.34.1

On 2024/5/2 09:30, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Thomas Fitzsimmons fitzsim@fitzsim.org Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Tianrui Wei tianrui-wei@outlook.com Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Stefan Roese sr@denx.de Cc: Michal Simek michal.simek@amd.com
drivers/mmc/am654_sdhci.c | 1 - drivers/mmc/arm_pl180_mmci.c | 1 - drivers/mmc/aspeed_sdhci.c | 1 - drivers/mmc/atmel_sdhci.c | 1 - drivers/mmc/bcm2835_sdhci.c | 1 - drivers/mmc/bcm2835_sdhost.c | 1 - drivers/mmc/bcmstb_sdhci.c | 1 - drivers/mmc/ca_dw_mmc.c | 1 - drivers/mmc/davinci_mmc.c | 1 - drivers/mmc/dw_mmc.c | 1 - drivers/mmc/exynos_dw_mmc.c | 1 - drivers/mmc/f_sdh30.c | 1 - drivers/mmc/fsl_esdhc.c | 1 - drivers/mmc/fsl_esdhc_imx.c | 1 - drivers/mmc/fsl_esdhc_spl.c | 2 +- drivers/mmc/ftsdc010_mci.c | 1 - drivers/mmc/gen_atmel_mci.c | 2 +- drivers/mmc/hi6220_dw_mmc.c | 1 - drivers/mmc/iproc_sdhci.c | 1 - drivers/mmc/jz_mmc.c | 1 - drivers/mmc/kona_sdhci.c | 1 - drivers/mmc/meson_gx_mmc.c | 1 - drivers/mmc/mmc-pwrseq.c | 1 - drivers/mmc/mmc-uclass.c | 1 - drivers/mmc/mmc.c | 3 ++- drivers/mmc/mmc_boot.c | 1 - drivers/mmc/mmc_bootdev.c | 1 - drivers/mmc/mmc_legacy.c | 1 - drivers/mmc/mmc_spi.c | 1 - drivers/mmc/mmc_write.c | 1 - drivers/mmc/msm_sdhci.c | 1 - drivers/mmc/mtk-sd.c | 1 - drivers/mmc/mv_sdhci.c | 1 - drivers/mmc/mvebu_mmc.c | 1 - drivers/mmc/mxcmmc.c | 1 - drivers/mmc/mxsmmc.c | 1 - drivers/mmc/nexell_dw_mmc.c | 1 - drivers/mmc/npcm_sdhci.c | 1 - drivers/mmc/omap_hsmmc.c | 1 - drivers/mmc/owl_mmc.c | 1 - drivers/mmc/pci_mmc.c | 1 - drivers/mmc/piton_mmc.c | 1 - drivers/mmc/rockchip_dw_mmc.c | 1 - drivers/mmc/rockchip_sdhci.c | 1 - drivers/mmc/rpmb.c | 1 - drivers/mmc/s5p_sdhci.c | 1 - drivers/mmc/sandbox_mmc.c | 1 - drivers/mmc/sdhci-adma.c | 1 - drivers/mmc/sdhci-cadence.c | 1 - drivers/mmc/sdhci.c | 2 +- drivers/mmc/sh_mmcif.c | 1 - drivers/mmc/snps_dw_mmc.c | 1 - drivers/mmc/socfpga_dw_mmc.c | 1 - drivers/mmc/sti_sdhci.c | 1 - drivers/mmc/stm32_sdmmc2.c | 1 - drivers/mmc/sunxi_mmc.c | 1 - drivers/mmc/tangier_sdhci.c | 1 - drivers/mmc/tegra_mmc.c | 1 - drivers/mmc/tmio-common.c | 1 - drivers/mmc/uniphier-sd.c | 1 - drivers/mmc/xenon_sdhci.c | 1 - drivers/mmc/zynq_sdhci.c | 1 - 62 files changed, 5 insertions(+), 62 deletions(-)
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ffb461c2f6c1..48fac7a11b48 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index cecc7ad783d0..f00b0ff0dc95 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -11,7 +11,6 @@
/* #define DEBUG */
-#include "common.h" #include <clk.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index c9626c6beb8f..87a6f66ebb37 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -4,7 +4,6 @@
- Eddie James eajames@linux.ibm.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index d92bad97b71e..0b265196f025 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index 5e48394fd0fb..598a51d914a9 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -36,7 +36,6 @@
- Inspired by sdhci-pci.c, by Pierre Ossman
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 5c23c03d10d7..720127468d37 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -30,7 +30,6 @@
- sdhci.c and sdhci-pci.c by Pierre Ossman
*/ #include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <asm/arch/msg.h> diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c index 49846adcf547..7bddbebb1622 100644 --- a/drivers/mmc/bcmstb_sdhci.c +++ b/drivers/mmc/bcmstb_sdhci.c @@ -6,7 +6,6 @@
- Author: Thomas Fitzsimmons fitzsim@fitzsim.org
*/
-#include <common.h> #include <dm.h> #include <mach/sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index a17ed8c11cbe..54a2ba4795e3 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -4,7 +4,6 @@
- Arthur Li arthur.li@cortina-access.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c index 3a3d23aec00a..5107fcd83625 100644 --- a/drivers/mmc/davinci_mmc.c +++ b/drivers/mmc/davinci_mmc.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <mmc.h> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e1036641452a..e6107c770fe3 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -6,7 +6,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 2f849c43b129..a51f762988da 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/f_sdh30.c b/drivers/mmc/f_sdh30.c index 3d587a464d50..f47cf8485216 100644 --- a/drivers/mmc/f_sdh30.c +++ b/drivers/mmc/f_sdh30.c @@ -5,7 +5,6 @@
- Copyright 2021 Socionext, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5ac1c6a0e9e1..0c66980b6218 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -10,7 +10,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <cpu_func.h> #include <errno.h> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8b2ef9391f3e..a9b8d7dd67f3 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -11,7 +11,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <clk.h> #include <cpu_func.h> diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 6d7c0cff22a5..1a11258be4de 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -3,7 +3,7 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <mmc.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index cabb747fbbdb..11e44264e47d 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -9,7 +9,6 @@
- Author: Rick Chen (rick@andestech.com)
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 3ee99558f6f9..6a531fa09615 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -8,7 +8,7 @@
- Copyright (C) 2004-2006 Atmel Corporation
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index dc0210402bd2..c68a9157bfcc 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -4,7 +4,6 @@
- peter.griffin peter.griffin@linaro.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 11d86ad658f9..7ab74ff117a6 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 61e48ee0f62d..fc10bb256a4d 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -6,7 +6,6 @@
- Author: Paul Burton paul.burton@imgtec.com
*/
-#include <common.h> #include <malloc.h> #include <mmc.h> #include <asm/global_data.h> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 2bbe673b9129..83f141226325 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -3,7 +3,6 @@
- Copyright 2013 Broadcom Corporation.
*/
-#include <common.h> #include <malloc.h> #include <sdhci.h> #include <linux/delay.h> diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 0825c0a2a838..5852b24c6d2a 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Carlo Caione carlo@caione.org
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/mmc-pwrseq.c b/drivers/mmc/mmc-pwrseq.c index 2539f61323d1..a1c9624a2225 100644 --- a/drivers/mmc/mmc-pwrseq.c +++ b/drivers/mmc/mmc-pwrseq.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <mmc.h> #include <pwrseq.h> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 0685b86af464..da6a39b7d990 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <bootdev.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4543d94c7205..b18dc331f785 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h> @@ -17,6 +16,7 @@ #include <errno.h> #include <mmc.h> #include <part.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> @@ -24,6 +24,7 @@ #include <malloc.h> #include <memalign.h> #include <linux/list.h> +#include <linux/printk.h> #include <div64.h> #include "mmc_private.h"
diff --git a/drivers/mmc/mmc_boot.c b/drivers/mmc/mmc_boot.c index 0a74b1fb776a..367c957b5181 100644 --- a/drivers/mmc/mmc_boot.c +++ b/drivers/mmc/mmc_boot.c @@ -4,7 +4,6 @@
- Written by Amar amarendra.xt@samsung.com
*/
-#include <common.h> #include <log.h> #include <mmc.h> #include "mmc_private.h" diff --git a/drivers/mmc/mmc_bootdev.c b/drivers/mmc/mmc_bootdev.c index 55ecead2ddf9..5a1688b75d09 100644 --- a/drivers/mmc/mmc_bootdev.c +++ b/drivers/mmc/mmc_bootdev.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c index a101ee43fde5..a87d2276c1b8 100644 --- a/drivers/mmc/mmc_legacy.c +++ b/drivers/mmc/mmc_legacy.c @@ -5,7 +5,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index bcea800e5f61..675e642efd08 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -6,7 +6,6 @@
- Licensed under the GPL-2 or later.
*/ -#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index a6f93380dd09..c023d15e52a8 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 5e9d66526a83..4ce0de6c47d8 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -7,7 +7,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 4bd66ecf93ad..3a9258255a78 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <mmc.h> #include <errno.h> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index dbdd671c88bc..2da5334c21f1 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -3,7 +3,6 @@
- Marvell SD Host Controller Interface
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index fea55c61ed7d..5af1953cd148 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -7,7 +7,6 @@
- Written-by: Maen Suleiman, Gerald Kerma
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 0057273a2a76..1acea6f820b4 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -17,7 +17,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <mmc.h> #include <part.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35a8e21058ed..95390a5be7e5 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -20,7 +20,6 @@
- Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c index 2723e4887cf7..2e1ce54c7d50 100644 --- a/drivers/mmc/nexell_dw_mmc.c +++ b/drivers/mmc/nexell_dw_mmc.c @@ -6,7 +6,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <dwmmc.h> diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index d63521d6855f..dff4732ea06f 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <sdhci.h> #include <clk.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 118d9cd16fdb..2b7f9fc9a205 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -23,7 +23,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c index e84171a661a7..bd4906f58e74 100644 --- a/drivers/mmc/owl_mmc.c +++ b/drivers/mmc/owl_mmc.c @@ -11,7 +11,6 @@
- channel, and those special bits used in this driver is picked from vendor
- source exclusively for MMC/SD.
*/ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 4d163ccba041..d446c55f72b2 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -4,7 +4,6 @@
- Copyright (C) 2014, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/piton_mmc.c b/drivers/mmc/piton_mmc.c index a330bbf8cbe2..fed1f8416088 100644 --- a/drivers/mmc/piton_mmc.c +++ b/drivers/mmc/piton_mmc.c @@ -11,7 +11,6 @@
#include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index ad4529d6afa8..1a10b7057a47 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index c889c7bc9855..35667b86b50b 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -5,7 +5,6 @@
- Rockchip SD Host Controller Interface
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index b68d98573c9a..0658ce22cf13 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <memalign.h> #include <mmc.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 3b74feae68c7..80dbb38c9b36 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c index 0ba7940a4dbf..a24520f2e78c 100644 --- a/drivers/mmc/sandbox_mmc.c +++ b/drivers/mmc/sandbox_mmc.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/mmc/sdhci-adma.c b/drivers/mmc/sdhci-adma.c index 283ba956deb9..fdb189d71a64 100644 --- a/drivers/mmc/sdhci-adma.c +++ b/drivers/mmc/sdhci-adma.c @@ -3,7 +3,6 @@
- SDHCI ADMA2 helper functions.
*/
-#include <common.h> #include <cpu_func.h> #include <sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 0570dbca00d7..07ec35a04635 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d06f2c02bb7b..560b7e889c77 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -7,7 +7,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -15,6 +14,7 @@ #include <malloc.h> #include <mmc.h> #include <sdhci.h> +#include <time.h> #include <asm/cache.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 76dc1c68b821..06a30d5efb81 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <watchdog.h> #include <command.h> diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c index 0134399e3934..9bdbe5070b1d 100644 --- a/drivers/mmc/snps_dw_mmc.c +++ b/drivers/mmc/snps_dw_mmc.c @@ -7,7 +7,6 @@
- Author: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 387cb8b6b50a..f738019b8357 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -3,7 +3,6 @@
- (C) Copyright 2013 Altera Corporation <www.altera.com>
*/
-#include <common.h> #include <log.h> #include <asm/arch/clock_manager.h> #include <asm/arch/secure_reg_helper.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 23a1dd43c9b2..91018b7e21af 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 39ae79ba1293..9483fb57daf8 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_MMC
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 714706d2411b..0b56d1405bee 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -13,7 +13,6 @@
- proper DM_MMC implementation at the end.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c index 115642733243..ae65c310b685 100644 --- a/drivers/mmc/tangier_sdhci.c +++ b/drivers/mmc/tangier_sdhci.c @@ -2,7 +2,6 @@ /*
- Copyright (c) 2017 Intel Corporation
*/ -#include <common.h> #include <dm.h> #include <dm/device.h> #include <linux/io.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index c01fb3d01657..5ed7f01d3f36 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -7,7 +7,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 719c4830bc30..0b396122b464 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <fdtdec.h> diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 8cde4308aaed..5b3650d52eea 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <clk.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 27dbe0404e04..0e4902fab77c 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -14,7 +14,6 @@
- Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 935540d17194..898be5a0913a 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <linux/delay.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Dario Binacchi dario.binacchi@amarulasolutions.com Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Frieder Schrempf frieder.schrempf@kontron.de Cc: Abdellatif El Khlifi abdellatif.elkhlifi@arm.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Jagan Teki jagan@amarulasolutions.com Cc: Vignesh R vigneshr@ti.com Cc: Nishanth Menon nm@ti.com Cc: Sean Anderson seanga2@gmail.com --- drivers/mtd/altera_qspi.c | 1 - drivers/mtd/cfi_flash.c | 3 ++- drivers/mtd/cfi_mtd.c | 1 - drivers/mtd/hbmc-am654.c | 1 - drivers/mtd/jedec_flash.c | 1 - drivers/mtd/mtd-uclass.c | 1 - drivers/mtd/mtd_uboot.c | 1 - drivers/mtd/mtdpart.c | 1 - drivers/mtd/nand/bbt.c | 1 - drivers/mtd/nand/core.c | 1 - drivers/mtd/nand/raw/am335x_spl_bch.c | 2 +- drivers/mtd/nand/raw/arasan_nfc.c | 1 - drivers/mtd/nand/raw/atmel_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/brcmnand.c | 1 - drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 - drivers/mtd/nand/raw/brcmnand/iproc_nand.c | 1 - drivers/mtd/nand/raw/cortina_nand.c | 1 - drivers/mtd/nand/raw/davinci_nand.c | 2 +- drivers/mtd/nand/raw/denali.c | 1 - drivers/mtd/nand/raw/denali_spl.c | 2 +- drivers/mtd/nand/raw/fsl_elbc_nand.c | 2 +- drivers/mtd/nand/raw/fsl_elbc_spl.c | 2 +- drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 +- drivers/mtd/nand/raw/fsl_ifc_spl.c | 2 +- drivers/mtd/nand/raw/kirkwood_nand.c | 1 - drivers/mtd/nand/raw/kmeter1_nand.c | 2 +- drivers/mtd/nand/raw/lpc32xx_nand_mlc.c | 2 +- drivers/mtd/nand/raw/lpc32xx_nand_slc.c | 2 +- drivers/mtd/nand/raw/mxc_nand.c | 2 +- drivers/mtd/nand/raw/mxc_nand_spl.c | 2 +- drivers/mtd/nand/raw/mxic_nand.c | 1 - drivers/mtd/nand/raw/mxs_nand.c | 1 - drivers/mtd/nand/raw/mxs_nand_spl.c | 1 - drivers/mtd/nand/raw/nand.c | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 - drivers/mtd/nand/raw/nand_bbt.c | 1 - drivers/mtd/nand/raw/nand_bch.c | 1 - drivers/mtd/nand/raw/nand_ecc.c | 1 - drivers/mtd/nand/raw/nand_ids.c | 1 - drivers/mtd/nand/raw/nand_spl_load.c | 2 +- drivers/mtd/nand/raw/nand_spl_simple.c | 2 +- drivers/mtd/nand/raw/nand_timings.c | 1 - drivers/mtd/nand/raw/nand_util.c | 1 - drivers/mtd/nand/raw/omap_elm.c | 1 - drivers/mtd/nand/raw/omap_gpmc.c | 2 +- drivers/mtd/nand/raw/pxa3xx_nand.c | 1 - drivers/mtd/nand/raw/rockchip_nfc.c | 1 - drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1 - drivers/mtd/nand/raw/sunxi_nand.c | 1 - drivers/mtd/nand/raw/sunxi_nand_spl.c | 1 - drivers/mtd/nand/raw/tegra_nand.c | 1 - drivers/mtd/nand/raw/vf610_nfc.c | 2 +- drivers/mtd/nand/raw/zynq_nand.c | 1 - drivers/mtd/nand/spi/core.c | 1 - drivers/mtd/nvmxip/nvmxip-uclass.c | 1 - drivers/mtd/nvmxip/nvmxip.c | 1 - drivers/mtd/nvmxip/nvmxip_qspi.c | 1 - drivers/mtd/onenand/onenand_base.c | 1 - drivers/mtd/onenand/onenand_bbt.c | 1 - drivers/mtd/onenand/onenand_spl.c | 3 ++- drivers/mtd/onenand/onenand_uboot.c | 2 +- drivers/mtd/onenand/samsung.c | 1 - drivers/mtd/renesas_rpc_hf.c | 1 - drivers/mtd/spi/fsl_espi_spl.c | 2 +- drivers/mtd/spi/sandbox.c | 1 - drivers/mtd/spi/sf-uclass.c | 1 - drivers/mtd/spi/sf_bootdev.c | 1 - drivers/mtd/spi/sf_dataflash.c | 1 - drivers/mtd/spi/sf_mtd.c | 1 - drivers/mtd/spi/sf_probe.c | 1 - drivers/mtd/spi/spi-nor-core.c | 1 - drivers/mtd/spi/spi-nor-ids.c | 1 - drivers/mtd/spi/spi-nor-tiny.c | 1 - drivers/mtd/stm32_flash.c | 2 +- drivers/mtd/ubispl/ubispl.c | 1 - 81 files changed, 25 insertions(+), 81 deletions(-)
diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index d31391f36a47..c26615821c80 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Thomas Chou thomas@wytron.com.tw */
-#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 8ade7949a68e..a7826e81c177 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -16,7 +16,7 @@ /* The DEBUG define must be before common to enable debugging */ /* #define DEBUG */
-#include <common.h> +#include <config.h> #include <console.h> #include <dm.h> #include <env.h> @@ -26,6 +26,7 @@ #include <init.h> #include <irq_func.h> #include <log.h> +#include <time.h> #include <asm/global_data.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c index bf4473ba9e83..b14d4773931b 100644 --- a/drivers/mtd/cfi_mtd.c +++ b/drivers/mtd/cfi_mtd.c @@ -5,7 +5,6 @@ * Written by: Piotr Ziecik kosmo@semihalf.com */
-#include <common.h> #include <dma.h> #include <flash.h> #include <malloc.h> diff --git a/drivers/mtd/hbmc-am654.c b/drivers/mtd/hbmc-am654.c index 8161087b50c0..599beda30d55 100644 --- a/drivers/mtd/hbmc-am654.c +++ b/drivers/mtd/hbmc-am654.c @@ -3,7 +3,6 @@ // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/ // Author: Vignesh Raghavendra vigneshr@ti.com
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c index 859c7fd4ec24..a832f348f22d 100644 --- a/drivers/mtd/jedec_flash.c +++ b/drivers/mtd/jedec_flash.c @@ -11,7 +11,6 @@ /* The DEBUG define must be before common to enable debugging */ /*#define DEBUG*/
-#include <common.h> #include <flash.h> #include <log.h> #include <asm/processor.h> diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c index 0743fe7af9fd..720bd824c4d7 100644 --- a/drivers/mtd/mtd-uclass.c +++ b/drivers/mtd/mtd-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_MTD
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <errno.h> diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index 14ce726b10d8..69cb3b51f922 100644 --- a/drivers/mtd/mtd_uboot.c +++ b/drivers/mtd/mtd_uboot.c @@ -3,7 +3,6 @@ * (C) Copyright 2014 * Heiko Schocher, DENX Software Engineering, hs@denx.de. */ -#include <common.h> #include <env.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 4886392a1cfa..be1d19b4ffa5 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -19,7 +19,6 @@ #include <linux/kmod.h> #endif
-#include <common.h> #include <malloc.h> #include <linux/bug.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 972aec6e2666..4ff0999f62a1 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -9,7 +9,6 @@
#define pr_fmt(fmt) "nand-bbt: " fmt
-#include <common.h> #include <dm/devres.h> #include <linux/bitops.h> #include <linux/mtd/nand.h> diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index f6d9c584f786..472ad0bdefb1 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -9,7 +9,6 @@
#define pr_fmt(fmt) "nand: " fmt
-#include <common.h> #include <watchdog.h> #ifndef __UBOOT__ #include <linux/compat.h> diff --git a/drivers/mtd/nand/raw/am335x_spl_bch.c b/drivers/mtd/nand/raw/am335x_spl_bch.c index 6831af98b73b..64d8ce0965ad 100644 --- a/drivers/mtd/nand/raw/am335x_spl_bch.c +++ b/drivers/mtd/nand/raw/am335x_spl_bch.c @@ -9,7 +9,7 @@ * Stefan Roese, DENX Software Engineering, sr@denx.de. */
-#include <common.h> +#include <config.h> #include <nand.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index ffcd963b3dac..4f013efafb36 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -5,7 +5,6 @@ * Copyright (C) 2014 - 2015 Xilinx, Inc. */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c index 6d94e7af38e9..4dbf7b47135c 100644 --- a/drivers/mtd/nand/raw/atmel_nand.c +++ b/drivers/mtd/nand/raw/atmel_nand.c @@ -10,7 +10,7 @@ * (C) Copyright 2012 ATMEL, Hong Xu */
-#include <common.h> +#include <config.h> #include <log.h> #include <system-constants.h> #include <asm/gpio.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c index 4e6d99fd3ca4..3f59fbbbb8f1 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c index 6164989b9378..d54de0b3ecce 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c index feae66ef25a6..a101222a28fa 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c index dbd85af7079d..385642d0c091 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c index ef3649688c66..407898ddae6e 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c index 027fdd37da3b..564c678c9ef2 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index efbf9a3120a4..b7bf7cc0893d 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -12,7 +12,6 @@ * GNU General Public License for more details. */
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c index a6acf556bcc7..b3b3df5c042e 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/devres.h> diff --git a/drivers/mtd/nand/raw/brcmnand/iproc_nand.c b/drivers/mtd/nand/raw/brcmnand/iproc_nand.c index 69711d98ce1b..430d6c938538 100644 --- a/drivers/mtd/nand/raw/brcmnand/iproc_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/iproc_nand.c @@ -4,7 +4,6 @@ * Copyright (C) 2015 Broadcom Corporation */
-#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/cortina_nand.c b/drivers/mtd/nand/raw/cortina_nand.c index b7be6602f7cc..06918a46e93f 100644 --- a/drivers/mtd/nand/raw/cortina_nand.c +++ b/drivers/mtd/nand/raw/cortina_nand.c @@ -3,7 +3,6 @@ * Copyright (c) 2020, Cortina Access Inc.. */
-#include <common.h> #include <linux/delay.h> #include <linux/bitops.h> #include <linux/sizes.h> diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index 71bbb8231bfb..d4daf06b8de5 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -28,7 +28,7 @@ - */
-#include <common.h> +#include <config.h> #include <log.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index c827f80281c1..b2401116689a 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -5,7 +5,6 @@ * Copyright (C) 2009-2010, Intel Corporation and its suppliers. */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c index 165a23312cb5..b1e2c9d81617 100644 --- a/drivers/mtd/nand/raw/denali_spl.c +++ b/drivers/mtd/nand/raw/denali_spl.c @@ -4,7 +4,7 @@ * Copyright (C) 2014-2015 Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/io.h> #include <asm/unaligned.h> diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index 7853c3f74e2a..157330cb287a 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -7,7 +7,7 @@ * Scott Wood scottwood@freescale.com */
-#include <common.h> +#include <config.h> #include <command.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/fsl_elbc_spl.c b/drivers/mtd/nand/raw/fsl_elbc_spl.c index 26aaab08e893..17b8ef7ff4b9 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_spl.c +++ b/drivers/mtd/nand/raw/fsl_elbc_spl.c @@ -9,7 +9,7 @@ * Author: Scott Wood scottwood@freescale.com */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c index 1d7c1fddd3f6..857d50ef9b09 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_nand.c +++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c @@ -6,7 +6,7 @@ * Authors: Dipen Dudhat Dipen.Dudhat@freescale.com */
-#include <common.h> +#include <config.h> #include <command.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/fsl_ifc_spl.c b/drivers/mtd/nand/raw/fsl_ifc_spl.c index 69d26f1f79ab..c2ebee948707 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_spl.c +++ b/drivers/mtd/nand/raw/fsl_ifc_spl.c @@ -6,7 +6,7 @@ * Author: Dipen Dudhat dipen.dudhat@freescale.com */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <asm/io.h> #include <fsl_ifc.h> diff --git a/drivers/mtd/nand/raw/kirkwood_nand.c b/drivers/mtd/nand/raw/kirkwood_nand.c index 621d2d232c88..cd182be268dc 100644 --- a/drivers/mtd/nand/raw/kirkwood_nand.c +++ b/drivers/mtd/nand/raw/kirkwood_nand.c @@ -5,7 +5,6 @@ * Written-by: Prafulla Wadaskar prafulla@marvell.com */
-#include <common.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/mtd/nand/raw/kmeter1_nand.c b/drivers/mtd/nand/raw/kmeter1_nand.c index dfe73d64e46a..e9398eb4093e 100644 --- a/drivers/mtd/nand/raw/kmeter1_nand.c +++ b/drivers/mtd/nand/raw/kmeter1_nand.c @@ -4,7 +4,7 @@ * Heiko Schocher, DENX Software Engineering, hs@denx.de */
-#include <common.h> +#include <config.h> #include <nand.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c index f8ae216d56c6..c89661badbf5 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c @@ -19,7 +19,7 @@ * should not rely on the ECC validity. */
-#include <common.h> +#include <config.h> #include <nand.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c index b21a0b9d293f..4d643bc64bc2 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c @@ -10,7 +10,7 @@ * Author: Kevin Wells */
-#include <common.h> +#include <config.h> #include <log.h> #include <nand.h> #include <linux/bug.h> diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c index dbdc5b0bca1c..0750b38f7081 100644 --- a/drivers/mtd/nand/raw/mxc_nand.c +++ b/drivers/mtd/nand/raw/mxc_nand.c @@ -5,7 +5,7 @@ * Copyright 2009 Ilya Yanok, yanok@emcraft.com */
-#include <common.h> +#include <config.h> #include <log.h> #include <nand.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c index a855c9987f80..c5872848954e 100644 --- a/drivers/mtd/nand/raw/mxc_nand_spl.c +++ b/drivers/mtd/nand/raw/mxc_nand_spl.c @@ -10,7 +10,7 @@ * Stefan Roese, DENX Software Engineering, sr at denx.de. */
-#include <common.h> +#include <config.h> #include <hang.h> #include <nand.h> #include <system-constants.h> diff --git a/drivers/mtd/nand/raw/mxic_nand.c b/drivers/mtd/nand/raw/mxic_nand.c index 6abdc24bd30c..0e54b5f69389 100644 --- a/drivers/mtd/nand/raw/mxic_nand.c +++ b/drivers/mtd/nand/raw/mxic_nand.c @@ -6,7 +6,6 @@ * Zhengxun Li zhengxunli@mxic.com.tw */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index fd65772af806..11b0247b2842 100644 --- a/drivers/mtd/nand/raw/mxs_nand.c +++ b/drivers/mtd/nand/raw/mxs_nand.c @@ -13,7 +13,6 @@ * Copyright 2017-2019 NXP */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index f7d3f02f85a0..c8e064347ada 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -4,7 +4,6 @@ * Copyright 2019 NXP * Author: Tim Harvey tharvey@gateworks.com */ -#include <common.h> #include <log.h> #include <nand.h> #include <malloc.h> diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c index b591170346d0..36054492e186 100644 --- a/drivers/mtd/nand/raw/nand.c +++ b/drivers/mtd/nand/raw/nand.c @@ -5,7 +5,7 @@ * Ladislav Michl michl@2n.cz */
-#include <common.h> +#include <config.h> #include <nand.h> #include <errno.h> #include <linux/mtd/concat.h> diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 688d17ba3c2f..18b95caffeff 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -28,7 +28,6 @@ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include <common.h> #include <log.h> #include <malloc.h> #include <watchdog.h> diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c index cd451870a6f9..1fb8535ab054 100644 --- a/drivers/mtd/nand/raw/nand_bbt.c +++ b/drivers/mtd/nand/raw/nand_bbt.c @@ -57,7 +57,6 @@ * */
-#include <common.h> #include <log.h> #include <malloc.h> #include <dm/devres.h> diff --git a/drivers/mtd/nand/raw/nand_bch.c b/drivers/mtd/nand/raw/nand_bch.c index bb48ebbb96c7..f317cc26c903 100644 --- a/drivers/mtd/nand/raw/nand_bch.c +++ b/drivers/mtd/nand/raw/nand_bch.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <log.h> #include <dm/devres.h> #include <linux/printk.h> diff --git a/drivers/mtd/nand/raw/nand_ecc.c b/drivers/mtd/nand/raw/nand_ecc.c index 2bc329be1a3b..0530ccb07226 100644 --- a/drivers/mtd/nand/raw/nand_ecc.c +++ b/drivers/mtd/nand/raw/nand_ecc.c @@ -22,7 +22,6 @@ * this file might be covered by the GNU General Public License. */
-#include <common.h>
#include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index be60d6d9d995..4f46378ffe10 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -6,7 +6,6 @@ * published by the Free Software Foundation. * */ -#include <common.h> #include <linux/mtd/rawnand.h> #include <linux/sizes.h>
diff --git a/drivers/mtd/nand/raw/nand_spl_load.c b/drivers/mtd/nand/raw/nand_spl_load.c index 7ac9bf4d1206..87af675c1391 100644 --- a/drivers/mtd/nand/raw/nand_spl_load.c +++ b/drivers/mtd/nand/raw/nand_spl_load.c @@ -4,7 +4,7 @@ * Heiko Schocher, DENX Software Engineering, hs@denx.de. */
-#include <common.h> +#include <config.h> #include <nand.h>
/* diff --git a/drivers/mtd/nand/raw/nand_spl_simple.c b/drivers/mtd/nand/raw/nand_spl_simple.c index 80d6e0e1e4ef..c0956ab0e491 100644 --- a/drivers/mtd/nand/raw/nand_spl_simple.c +++ b/drivers/mtd/nand/raw/nand_spl_simple.c @@ -4,7 +4,7 @@ * Stefan Roese, DENX Software Engineering, sr@denx.de. */
-#include <common.h> +#include <config.h> #include <nand.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/nand_timings.c b/drivers/mtd/nand/raw/nand_timings.c index e6aa79039131..c1bac1d01cc4 100644 --- a/drivers/mtd/nand/raw/nand_timings.c +++ b/drivers/mtd/nand/raw/nand_timings.c @@ -8,7 +8,6 @@ * published by the Free Software Foundation. * */ -#include <common.h> #include <linux/err.h> #include <linux/kernel.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c index 72cc24f40376..fda4239fa792 100644 --- a/drivers/mtd/nand/raw/nand_util.c +++ b/drivers/mtd/nand/raw/nand_util.c @@ -18,7 +18,6 @@ * Copyright 2010 Freescale Semiconductor */
-#include <common.h> #include <command.h> #include <log.h> #include <watchdog.h> diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c index 015ec9bc2de0..61751b9ae2db 100644 --- a/drivers/mtd/nand/raw/omap_elm.c +++ b/drivers/mtd/nand/raw/omap_elm.c @@ -12,7 +12,6 @@ * sets in uboot */
-#include <common.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/hardware.h> diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index 2f8fa7d73d21..92a92ad63a02 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -4,7 +4,7 @@ * Rohit Choraria rohitkc@ti.com */
-#include <common.h> +#include <config.h> #include <log.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 1d9a6d107b17..17c5601bead0 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -6,7 +6,6 @@ * Copyright © 2006 Marvell International Ltd. */
-#include <common.h> #include <malloc.h> #include <fdtdec.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw/rockchip_nfc.c index 088cc7fead24..f730e15d0410 100644 --- a/drivers/mtd/nand/raw/rockchip_nfc.c +++ b/drivers/mtd/nand/raw/rockchip_nfc.c @@ -5,7 +5,6 @@ * Author: Yifeng Zhao yifeng.zhao@rock-chips.com */
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index d284b8cbb123..083ea4c5a74b 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_MTD
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 0b5b74dc242d..34197bb09a19 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -25,7 +25,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <memalign.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index c9b8c78ed752..040138e25592 100644 --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c @@ -6,7 +6,6 @@
#include <asm/arch/clock.h> #include <asm/io.h> -#include <common.h> #include <config.h> #include <nand.h> #include <linux/bitops.h> diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index 6086ecdfa3db..8285f87359e7 100644 --- a/drivers/mtd/nand/raw/tegra_nand.c +++ b/drivers/mtd/nand/raw/tegra_nand.c @@ -6,7 +6,6 @@ * (C) Copyright 2006 DENX Software Engineering */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c index d2363a0662e2..102659503689 100644 --- a/drivers/mtd/nand/raw/vf610_nfc.c +++ b/drivers/mtd/nand/raw/vf610_nfc.c @@ -21,7 +21,7 @@ * - HW ECC: Only 24 and 32-bit error correction implemented. */
-#include <common.h> +#include <config.h> #include <malloc.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c index bacaf13c570d..5f90171a6fe3 100644 --- a/drivers/mtd/nand/raw/zynq_nand.c +++ b/drivers/mtd/nand/raw/zynq_nand.c @@ -6,7 +6,6 @@ * This driver is based on plat_nand.c and mxc_nand.c drivers */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422d2..ef50237f10e6 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -21,7 +21,6 @@ #include <linux/spi/spi.h> #include <linux/spi/spi-mem.h> #else -#include <common.h> #include <errno.h> #include <watchdog.h> #include <spi.h> diff --git a/drivers/mtd/nvmxip/nvmxip-uclass.c b/drivers/mtd/nvmxip/nvmxip-uclass.c index 9a316d1de397..95dfa58def17 100644 --- a/drivers/mtd/nvmxip/nvmxip-uclass.c +++ b/drivers/mtd/nvmxip/nvmxip-uclass.c @@ -6,7 +6,6 @@ * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */
-#include <common.h> #include <dm.h> #include <log.h> #if CONFIG_IS_ENABLED(SANDBOX64) diff --git a/drivers/mtd/nvmxip/nvmxip.c b/drivers/mtd/nvmxip/nvmxip.c index 0bd98d64275f..229938db3806 100644 --- a/drivers/mtd/nvmxip/nvmxip.c +++ b/drivers/mtd/nvmxip/nvmxip.c @@ -6,7 +6,6 @@ * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/mtd/nvmxip/nvmxip_qspi.c b/drivers/mtd/nvmxip/nvmxip_qspi.c index 4d7471118a4c..460887c7da34 100644 --- a/drivers/mtd/nvmxip/nvmxip_qspi.c +++ b/drivers/mtd/nvmxip/nvmxip_qspi.c @@ -6,7 +6,6 @@ * Abdellatif El Khlifi abdellatif.elkhlifi@arm.com */
-#include <common.h> #include <dm.h> #include <fdt_support.h> #include <linux/errno.h> diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 762b01c1b0f0..edecb841338f 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -19,7 +19,6 @@ * published by the Free Software Foundation. */
-#include <common.h> #include <log.h> #include <watchdog.h> #include <dm/devres.h> diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index cc1e449f4a72..6af1cb2ec19a 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c @@ -14,7 +14,6 @@ * published by the Free Software Foundation. */
-#include <common.h> #include <log.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/onenand/onenand_spl.c b/drivers/mtd/onenand/onenand_spl.c index 2699958a5de2..a9d54a243ade 100644 --- a/drivers/mtd/onenand/onenand_spl.c +++ b/drivers/mtd/onenand/onenand_spl.c @@ -7,9 +7,10 @@ * Kyungmin Park kyungmin.park@samsung.com */
-#include <common.h> +#include <config.h> #include <asm/io.h> #include <linux/bitops.h> +#include <linux/string.h> #include <linux/mtd/onenand_regs.h> #include <onenand_uboot.h>
diff --git a/drivers/mtd/onenand/onenand_uboot.c b/drivers/mtd/onenand/onenand_uboot.c index ecacabefadcf..db0ac6c1fb8f 100644 --- a/drivers/mtd/onenand/onenand_uboot.c +++ b/drivers/mtd/onenand/onenand_uboot.c @@ -13,7 +13,7 @@ * OneNAND initialization at U-Boot */
-#include <common.h> +#include <config.h> #include <display_options.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index c415e5149a01..ccfdad4913e8 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -9,7 +9,6 @@ * Emulate the pseudo BufferRAM */
-#include <common.h> #include <malloc.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c index 979b64d4a2f6..8dcffde9aa39 100644 --- a/drivers/mtd/renesas_rpc_hf.c +++ b/drivers/mtd/renesas_rpc_hf.c @@ -7,7 +7,6 @@ * Copyright (C) 2017 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/mtd/spi/fsl_espi_spl.c b/drivers/mtd/spi/fsl_espi_spl.c index cdbdbd6ea581..73eea922c33a 100644 --- a/drivers/mtd/spi/fsl_espi_spl.c +++ b/drivers/mtd/spi/fsl_espi_spl.c @@ -3,7 +3,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <spi_flash.h> diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c index 4fe547171a5f..2d5a16bf6a29 100644 --- a/drivers/mtd/spi/sandbox.c +++ b/drivers/mtd/spi/sandbox.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_SPI_FLASH
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c index 2da0cf0dcf9f..a4d15bd64aa2 100644 --- a/drivers/mtd/spi/sf-uclass.c +++ b/drivers/mtd/spi/sf-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SPI_FLASH
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <log.h> diff --git a/drivers/mtd/spi/sf_bootdev.c b/drivers/mtd/spi/sf_bootdev.c index d6b47b11ce45..017a74a3016f 100644 --- a/drivers/mtd/spi/sf_bootdev.c +++ b/drivers/mtd/spi/sf_bootdev.c @@ -5,7 +5,6 @@ * Copyright 2022 Google LLC */
-#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h> diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 6a0d953a7290..6db24189c8ea 100644 --- a/drivers/mtd/spi/sf_dataflash.c +++ b/drivers/mtd/spi/sf_dataflash.c @@ -6,7 +6,6 @@ * Haikun Wang (haikun.wang@freescale.com) */
-#include <common.h> #include <display_options.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mtd/spi/sf_mtd.c b/drivers/mtd/spi/sf_mtd.c index 071b25ac67f2..7342f26d88e0 100644 --- a/drivers/mtd/spi/sf_mtd.c +++ b/drivers/mtd/spi/sf_mtd.c @@ -3,7 +3,6 @@ * Copyright (C) 2012-2014 Daniel Schwierzeck, daniel.schwierzeck@gmail.com */
-#include <common.h> #include <malloc.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index de6516f1065b..7100b64bf22a 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -7,7 +7,6 @@ * Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <linux/mtd/spi-nor.h> diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index f86003ca8c06..982dd251150d 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -9,7 +9,6 @@ * Synced from Linux v4.19 */
-#include <common.h> #include <display_options.h> #include <log.h> #include <watchdog.h> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 4e83b8c94c96..684206ea07dd 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -6,7 +6,6 @@ * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ */
-#include <common.h> #include <spi.h> #include <spi_flash.h>
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 0719fe845ca9..5755c5eed297 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -9,7 +9,6 @@ * Synced from Linux v4.19 */
-#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/err.h> diff --git a/drivers/mtd/stm32_flash.c b/drivers/mtd/stm32_flash.c index 4523344ba6b0..ec83be6b51fd 100644 --- a/drivers/mtd/stm32_flash.c +++ b/drivers/mtd/stm32_flash.c @@ -4,7 +4,7 @@ * Kamil Lulko, kamil.lulko@gmail.com */
-#include <common.h> +#include <config.h> #include <flash.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c index b58d8e8d5656..90a7c4c6f9e0 100644 --- a/drivers/mtd/ubispl/ubispl.c +++ b/drivers/mtd/ubispl/ubispl.c @@ -7,7 +7,6 @@ * Copyright (c) International Business Machines Corp., 2006 */
-#include <common.h> #include <errno.h> #include <linux/bug.h> #include <u-boot/crc.h>

On 05/01/2024 06:31 PM, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Dario Binacchi dario.binacchi@amarulasolutions.com Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Frieder Schrempf frieder.schrempf@kontron.de Cc: Abdellatif El Khlifi abdellatif.elkhlifi@arm.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Jagan Teki jagan@amarulasolutions.com Cc: Vignesh R vigneshr@ti.com Cc: Nishanth Menon nm@ti.com Cc: Sean Anderson seanga2@gmail.com
drivers/mtd/altera_qspi.c | 1 - drivers/mtd/cfi_flash.c | 3 ++- drivers/mtd/cfi_mtd.c | 1 - drivers/mtd/hbmc-am654.c | 1 - drivers/mtd/jedec_flash.c | 1 - drivers/mtd/mtd-uclass.c | 1 - drivers/mtd/mtd_uboot.c | 1 - drivers/mtd/mtdpart.c | 1 - drivers/mtd/nand/bbt.c | 1 - drivers/mtd/nand/core.c | 1 - drivers/mtd/nand/raw/am335x_spl_bch.c | 2 +- drivers/mtd/nand/raw/arasan_nfc.c | 1 - drivers/mtd/nand/raw/atmel_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c | 1 - drivers/mtd/nand/raw/brcmnand/brcmnand.c | 1 - drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 - drivers/mtd/nand/raw/brcmnand/iproc_nand.c | 1 - drivers/mtd/nand/raw/cortina_nand.c | 1 - drivers/mtd/nand/raw/davinci_nand.c | 2 +- drivers/mtd/nand/raw/denali.c | 1 - drivers/mtd/nand/raw/denali_spl.c | 2 +- drivers/mtd/nand/raw/fsl_elbc_nand.c | 2 +- drivers/mtd/nand/raw/fsl_elbc_spl.c | 2 +- drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 +- drivers/mtd/nand/raw/fsl_ifc_spl.c | 2 +- drivers/mtd/nand/raw/kirkwood_nand.c | 1 - drivers/mtd/nand/raw/kmeter1_nand.c | 2 +- drivers/mtd/nand/raw/lpc32xx_nand_mlc.c | 2 +- drivers/mtd/nand/raw/lpc32xx_nand_slc.c | 2 +- drivers/mtd/nand/raw/mxc_nand.c | 2 +- drivers/mtd/nand/raw/mxc_nand_spl.c | 2 +- drivers/mtd/nand/raw/mxic_nand.c | 1 - drivers/mtd/nand/raw/mxs_nand.c | 1 - drivers/mtd/nand/raw/mxs_nand_spl.c | 1 - drivers/mtd/nand/raw/nand.c | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 - drivers/mtd/nand/raw/nand_bbt.c | 1 - drivers/mtd/nand/raw/nand_bch.c | 1 - drivers/mtd/nand/raw/nand_ecc.c | 1 - drivers/mtd/nand/raw/nand_ids.c | 1 - drivers/mtd/nand/raw/nand_spl_load.c | 2 +- drivers/mtd/nand/raw/nand_spl_simple.c | 2 +- drivers/mtd/nand/raw/nand_timings.c | 1 - drivers/mtd/nand/raw/nand_util.c | 1 - drivers/mtd/nand/raw/omap_elm.c | 1 - drivers/mtd/nand/raw/omap_gpmc.c | 2 +- drivers/mtd/nand/raw/pxa3xx_nand.c | 1 - drivers/mtd/nand/raw/rockchip_nfc.c | 1 - drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1 - drivers/mtd/nand/raw/sunxi_nand.c | 1 - drivers/mtd/nand/raw/sunxi_nand_spl.c | 1 - drivers/mtd/nand/raw/tegra_nand.c | 1 - drivers/mtd/nand/raw/vf610_nfc.c | 2 +- drivers/mtd/nand/raw/zynq_nand.c | 1 - drivers/mtd/nand/spi/core.c | 1 - drivers/mtd/nvmxip/nvmxip-uclass.c | 1 - drivers/mtd/nvmxip/nvmxip.c | 1 - drivers/mtd/nvmxip/nvmxip_qspi.c | 1 - drivers/mtd/onenand/onenand_base.c | 1 - drivers/mtd/onenand/onenand_bbt.c | 1 - drivers/mtd/onenand/onenand_spl.c | 3 ++- drivers/mtd/onenand/onenand_uboot.c | 2 +- drivers/mtd/onenand/samsung.c | 1 - drivers/mtd/renesas_rpc_hf.c | 1 - drivers/mtd/spi/fsl_espi_spl.c | 2 +- drivers/mtd/spi/sandbox.c | 1 - drivers/mtd/spi/sf-uclass.c | 1 - drivers/mtd/spi/sf_bootdev.c | 1 - drivers/mtd/spi/sf_dataflash.c | 1 - drivers/mtd/spi/sf_mtd.c | 1 - drivers/mtd/spi/sf_probe.c | 1 - drivers/mtd/spi/spi-nor-core.c | 1 - drivers/mtd/spi/spi-nor-ids.c | 1 - drivers/mtd/spi/spi-nor-tiny.c | 1 - drivers/mtd/stm32_flash.c | 2 +- drivers/mtd/ubispl/ubispl.c | 1 - 81 files changed, 25 insertions(+), 81 deletions(-)
For drivers/mtd/nand/raw/brcmnand/*, Reviewed-by: William Zhang william.zhang@broadcom.com

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Roger Quadros rogerq@kernel.org Cc: Nishanth Menon nm@ti.com --- drivers/mux/mmio.c | 1 - drivers/mux/mux-uclass.c | 1 - 2 files changed, 2 deletions(-)
diff --git a/drivers/mux/mmio.c b/drivers/mux/mmio.c index 00e0282dcc0e..e1125458a629 100644 --- a/drivers/mux/mmio.c +++ b/drivers/mux/mmio.c @@ -6,7 +6,6 @@ * Copyright (C) 2017 Pengutronix, Philipp Zabel kernel@pengutronix.de * Copyright (C) 2019 Texas Instrument, Jean-jacques Hiblot jjhiblot@ti.com */ -#include <common.h> #include <dm.h> #include <mux-internal.h> #include <regmap.h> diff --git a/drivers/mux/mux-uclass.c b/drivers/mux/mux-uclass.c index 8833888ded37..8a3e7a84f41b 100644 --- a/drivers/mux/mux-uclass.c +++ b/drivers/mux/mux-uclass.c @@ -13,7 +13,6 @@
#define LOG_CATEGORY UCLASS_MUX
-#include <common.h> #include <dm.h> #include <mux-internal.h> #include <dm/device-internal.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Joe Hershberger joe.hershberger@ni.com Cc: Ramon Fried rfried.dev@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Robert Marko robert.marko@sartura.hr Cc: Luka Kovacic luka.kovacic@sartura.hr Cc: Luka Perkov luka.perkov@sartura.hr Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Michal Simek michal.simek@amd.com Cc: Radu Pirea radu-nicolae.pirea@oss.nxp.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Ioana Ciornei ioana.ciornei@nxp.com Cc: Laurentiu Tudor laurentiu.tudor@nxp.com Cc: Nate Drude nate.d@variscite.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: "Rafał Miłecki" rafal@milecki.pl Cc: Nishanth Menon nm@ti.com Cc: Frank de Brabander debrabander@gmail.com Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Lukasz Tekieli tekieli.lukasz@gmail.com Cc: Nicolas Frattaroli frattaroli.nicolas@gmail.com Cc: Yanhong Wang yanhong.wang@starfivetech.com Cc: Jacky Chou jacky_chou@aspeedtech.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Eugeniu Rosca erosca@de.adit-jv.com Cc: Tejas Bhumkar tejas.arvind.bhumkar@amd.com Cc: "Sébastien Szymanski" sebastien.szymanski@armadeus.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com Cc: Johan Jonker jbx6244@gmail.com Cc: Roger Quadros rogerq@kernel.org Cc: Siddharth Vadapalli s-vadapalli@ti.com Cc: Michael Walle mwalle@kernel.org Cc: Maxime Ripard mripard@kernel.org Cc: Sean Anderson seanga2@gmail.com Cc: Suman Anna s-anna@ti.com Cc: Andreas Dannenberg dannenberg@ti.com --- drivers/net/ag7xxx.c | 1 - drivers/net/altera_tse.c | 1 - drivers/net/aspeed_mdio.c | 1 - drivers/net/bcm-sf2-eth-gmac.c | 1 - drivers/net/bcm-sf2-eth.c | 1 - drivers/net/bcm6348-eth.c | 1 - drivers/net/bcm6368-eth.c | 1 - drivers/net/bnxt/bnxt.c | 1 - drivers/net/calxedaxgmac.c | 1 - drivers/net/cortina_ni.c | 1 - drivers/net/dc2114x.c | 1 - drivers/net/designware.c | 1 - drivers/net/dm9000x.c | 1 - drivers/net/dwc_eth_qos.c | 1 - drivers/net/dwc_eth_qos_imx.c | 1 - drivers/net/dwc_eth_qos_qcom.c | 1 - drivers/net/dwc_eth_qos_rockchip.c | 1 - drivers/net/dwc_eth_qos_starfive.c | 1 - drivers/net/dwmac_meson8b.c | 1 - drivers/net/dwmac_s700.c | 1 - drivers/net/dwmac_socfpga.c | 1 - drivers/net/e1000.c | 1 - drivers/net/e1000_spi.c | 2 +- drivers/net/eepro100.c | 2 +- drivers/net/eth-phy-uclass.c | 1 - drivers/net/ethoc.c | 1 - drivers/net/fec_mxc.c | 1 - drivers/net/fm/b4860.c | 2 +- drivers/net/fm/dtsec.c | 1 - drivers/net/fm/eth.c | 2 +- drivers/net/fm/ls1043.c | 2 +- drivers/net/fm/ls1046.c | 2 +- drivers/net/fm/memac.c | 1 - drivers/net/fm/memac_phy.c | 1 - drivers/net/fm/p1023.c | 2 +- drivers/net/fm/p4080.c | 2 +- drivers/net/fm/p5020.c | 2 +- drivers/net/fm/p5040.c | 2 +- drivers/net/fm/t1024.c | 2 +- drivers/net/fm/t1040.c | 2 +- drivers/net/fm/t2080.c | 2 +- drivers/net/fm/t4240.c | 2 +- drivers/net/fm/tgec.c | 1 - drivers/net/fm/tgec_phy.c | 1 - drivers/net/fsl-mc/mc.c | 2 +- drivers/net/fsl-mc/mc_sys.c | 1 - drivers/net/fsl_enetc.c | 1 - drivers/net/fsl_enetc_mdio.c | 1 - drivers/net/fsl_ls_mdio.c | 1 - drivers/net/fsl_mdio.c | 1 - drivers/net/ftgmac100.c | 1 - drivers/net/ftmac100.c | 1 - drivers/net/gmac_rockchip.c | 1 - drivers/net/higmacv300.c | 1 - drivers/net/ks8851_mll.c | 1 - drivers/net/ldpaa_eth/ldpaa_eth.c | 1 - drivers/net/ldpaa_eth/ldpaa_wriop.c | 1 - drivers/net/ldpaa_eth/ls1088a.c | 2 +- drivers/net/ldpaa_eth/ls2080a.c | 2 +- drivers/net/ldpaa_eth/lx2160a.c | 2 +- drivers/net/macb.c | 1 - drivers/net/mcffec.c | 2 +- drivers/net/mcfmii.c | 1 - drivers/net/mdio-ipq4019.c | 1 - drivers/net/mpc8xx_fec.c | 1 - drivers/net/mscc_eswitch/jr2_switch.c | 1 - drivers/net/mscc_eswitch/luton_switch.c | 1 - drivers/net/mscc_eswitch/ocelot_switch.c | 1 - drivers/net/mscc_eswitch/serval_switch.c | 1 - drivers/net/mscc_eswitch/servalt_switch.c | 1 - drivers/net/mt7628-eth.c | 1 - drivers/net/mtk_eth.c | 1 - drivers/net/mv88e6xxx.c | 1 - drivers/net/mvgbe.c | 1 - drivers/net/mvmdio.c | 1 - drivers/net/mvneta.c | 1 - drivers/net/mvpp2.c | 1 - drivers/net/netconsole.c | 2 +- drivers/net/npcm750_eth.c | 1 - drivers/net/pch_gbe.c | 1 - drivers/net/pcnet.c | 1 - drivers/net/pfe_eth/pfe_cmd.c | 1 - drivers/net/pfe_eth/pfe_eth.c | 2 +- drivers/net/pfe_eth/pfe_mdio.c | 2 +- drivers/net/phy/adin.c | 1 - drivers/net/phy/aquantia.c | 1 - drivers/net/phy/atheros.c | 1 - drivers/net/phy/b53.c | 1 - drivers/net/phy/broadcom.c | 1 - drivers/net/phy/ca_phy.c | 1 - drivers/net/phy/cortina.c | 1 - drivers/net/phy/davicom.c | 1 - drivers/net/phy/dp83867.c | 1 - drivers/net/phy/dp83869.c | 1 - drivers/net/phy/ethernet_id.c | 1 - drivers/net/phy/fixed.c | 1 - drivers/net/phy/generic_10g.c | 1 - drivers/net/phy/intel_xway.c | 1 - drivers/net/phy/lxt.c | 1 - drivers/net/phy/marvell.c | 1 - drivers/net/phy/marvell10g.c | 1 - drivers/net/phy/meson-gxl.c | 1 - drivers/net/phy/micrel_ksz8xxx.c | 1 - drivers/net/phy/micrel_ksz90x1.c | 1 - drivers/net/phy/miiphybb.c | 1 - drivers/net/phy/motorcomm.c | 1 - drivers/net/phy/mv88e61xx.c | 1 - drivers/net/phy/mv88e6352.c | 1 - drivers/net/phy/natsemi.c | 1 - drivers/net/phy/ncsi.c | 1 - drivers/net/phy/nxp-c45-tja11xx.c | 1 - drivers/net/phy/nxp-tja11xx.c | 1 - drivers/net/phy/phy.c | 1 - drivers/net/phy/realtek.c | 1 - drivers/net/phy/smsc.c | 1 - drivers/net/phy/teranetics.c | 1 - drivers/net/phy/vitesse.c | 1 - drivers/net/phy/xilinx_gmii2rgmii.c | 1 - drivers/net/phy/xilinx_phy.c | 1 - drivers/net/pic32_eth.c | 1 - drivers/net/pic32_mdio.c | 1 - drivers/net/qe/dm_qe_uec.c | 1 - drivers/net/qe/dm_qe_uec_phy.c | 1 - drivers/net/qe/uccf.c | 1 + drivers/net/qe/uccf.h | 4 ++-- drivers/net/ravb.c | 1 - drivers/net/rswitch.c | 1 - drivers/net/rtl8139.c | 1 - drivers/net/rtl8169.c | 1 - drivers/net/sandbox-raw-bus.c | 1 - drivers/net/sandbox-raw.c | 1 - drivers/net/sandbox.c | 1 - drivers/net/sh_eth.c | 1 - drivers/net/sja1105.c | 1 - drivers/net/smc911x.c | 1 - drivers/net/sun8i_emac.c | 1 - drivers/net/sunxi_emac.c | 1 - drivers/net/ti/am65-cpsw-nuss.c | 1 - drivers/net/ti/cpsw-common.c | 1 - drivers/net/ti/cpsw.c | 1 - drivers/net/ti/cpsw_mdio.c | 1 - drivers/net/ti/davinci_emac.c | 2 +- drivers/net/ti/keystone_net.c | 1 - drivers/net/tsec.c | 1 - drivers/net/vsc7385.c | 1 - drivers/net/xilinx_axi_emac.c | 1 - drivers/net/xilinx_axi_mrmac.c | 1 - drivers/net/xilinx_emaclite.c | 1 - drivers/net/zynq_gem.c | 1 - 149 files changed, 26 insertions(+), 149 deletions(-)
diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index da1f3f458080..059a65d46610 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -6,7 +6,6 @@ * Copyright (C) 2019 Rosy Song rosysong@rosinson.com */
-#include <common.h> #include <clock_legacy.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index e2340936fa62..c57aafd00263 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -8,7 +8,6 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/aspeed_mdio.c b/drivers/net/aspeed_mdio.c index a99715a72829..f2e4392aa9ac 100644 --- a/drivers/net/aspeed_mdio.c +++ b/drivers/net/aspeed_mdio.c @@ -7,7 +7,6 @@ * This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c */
-#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c index cbe1e85222fa..ba244b4a26e2 100644 --- a/drivers/net/bcm-sf2-eth-gmac.c +++ b/drivers/net/bcm-sf2-eth-gmac.c @@ -11,7 +11,6 @@ #endif
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c index 1524f5c99890..c10719c6b510 100644 --- a/drivers/net/bcm-sf2-eth.c +++ b/drivers/net/bcm-sf2-eth.c @@ -3,7 +3,6 @@ * Copyright 2014 Broadcom Corporation. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c index 15a94f6ce9a1..f87db4ab46e4 100644 --- a/drivers/net/bcm6348-eth.c +++ b/drivers/net/bcm6348-eth.c @@ -6,7 +6,6 @@ * Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 9679a45b0758..0601fcc42f58 100644 --- a/drivers/net/bcm6368-eth.c +++ b/drivers/net/bcm6368-eth.c @@ -6,7 +6,6 @@ * Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bnxt/bnxt.c b/drivers/net/bnxt/bnxt.c index 1c9a9962408a..25fbcd7b1161 100644 --- a/drivers/net/bnxt/bnxt.c +++ b/drivers/net/bnxt/bnxt.c @@ -3,7 +3,6 @@ * Copyright 2019-2021 Broadcom. */
-#include <common.h>
#include <asm/io.h> #include <dm.h> diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c index eb1e2a756cd3..ebb399457fb5 100644 --- a/drivers/net/calxedaxgmac.c +++ b/drivers/net/calxedaxgmac.c @@ -3,7 +3,6 @@ * Copyright 2010-2011 Calxeda, Inc. */
-#include <common.h> #include <malloc.h> #include <net.h> #include <linux/compiler.h> diff --git a/drivers/net/cortina_ni.c b/drivers/net/cortina_ni.c index ef6ecd88b0ce..790268828002 100644 --- a/drivers/net/cortina_ni.c +++ b/drivers/net/cortina_ni.c @@ -7,7 +7,6 @@ * Ethernet MAC Driver for all supported CAxxxx SoCs */
-#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 4e7af95b41c4..ce028f451f13 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 4c1642b29a84..254e9c5b7155 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -8,7 +8,6 @@ * Designware ethernet IP driver for U-Boot */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c index bec8d67dad0f..9e17f0b9c280 100644 --- a/drivers/net/dm9000x.c +++ b/drivers/net/dm9000x.c @@ -49,7 +49,6 @@ * TODO: external MII is not functional, only internal at the moment. */
-#include <common.h> #include <command.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 32a5d52165ac..67ac86f82bcd 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -29,7 +29,6 @@
#define LOG_CATEGORY UCLASS_ETH
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_imx.c b/drivers/net/dwc_eth_qos_imx.c index 9c4e39044133..d6bed278ca79 100644 --- a/drivers/net/dwc_eth_qos_imx.c +++ b/drivers/net/dwc_eth_qos_imx.c @@ -3,7 +3,6 @@ * Copyright 2022 NXP */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_qcom.c b/drivers/net/dwc_eth_qos_qcom.c index 8178138fc659..77d626393d5a 100644 --- a/drivers/net/dwc_eth_qos_qcom.c +++ b/drivers/net/dwc_eth_qos_qcom.c @@ -5,7 +5,6 @@ * Qcom DWMAC specific glue layer */
-#include <common.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/net/dwc_eth_qos_rockchip.c b/drivers/net/dwc_eth_qos_rockchip.c index fa9e513faea3..c4557e57988d 100644 --- a/drivers/net/dwc_eth_qos_rockchip.c +++ b/drivers/net/dwc_eth_qos_rockchip.c @@ -8,7 +8,6 @@ * part in order to simplify future porting of fixes and support for other SoCs. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/net/dwc_eth_qos_starfive.c b/drivers/net/dwc_eth_qos_starfive.c index 5be8ac0f1a51..09e714ce76a0 100644 --- a/drivers/net/dwc_eth_qos_starfive.c +++ b/drivers/net/dwc_eth_qos_starfive.c @@ -4,7 +4,6 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> #include <asm/cache.h> #include <asm/gpio.h> #include <clk.h> diff --git a/drivers/net/dwmac_meson8b.c b/drivers/net/dwmac_meson8b.c index 871171e1be5e..fde4aabbacec 100644 --- a/drivers/net/dwmac_meson8b.c +++ b/drivers/net/dwmac_meson8b.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 BayLibre, SAS */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/dwmac_s700.c b/drivers/net/dwmac_s700.c index 744b58bdd1a6..969d247b4f3a 100644 --- a/drivers/net/dwmac_s700.c +++ b/drivers/net/dwmac_s700.c @@ -5,7 +5,6 @@ * Actions DWMAC specific glue layer */
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_socfpga.c index 82fdff51dacc..bba3fc4d34b0 100644 --- a/drivers/net/dwmac_socfpga.c +++ b/drivers/net/dwmac_socfpga.c @@ -5,7 +5,6 @@ * Altera SoCFPGA EMAC extras */
-#include <common.h> #include <asm/arch/secure_reg_helper.h> #include <asm/arch/system_manager.h> #include <asm/io.h> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 4e7ba6667703..663d900eb099 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -29,7 +29,6 @@ tested on both gig copper and gig fiber boards * Copyright 2011 Freescale Semiconductor, Inc. */
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c index 69adf282c739..1e830b99f1d4 100644 --- a/drivers/net/e1000_spi.c +++ b/drivers/net/e1000_spi.c @@ -1,9 +1,9 @@ -#include <common.h> #include <command.h> #include <console.h> #include <linux/delay.h> #include "e1000.h" #include <malloc.h> +#include <vsprintf.h> #include <linux/compiler.h>
/*----------------------------------------------------------------------- diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index 38d96ab72b6e..d18a8d577ca4 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c @@ -4,7 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> +#include <config.h> #include <asm/io.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 9d1e8d38ffa6..1dae26878e61 100644 --- a/drivers/net/eth-phy-uclass.c +++ b/drivers/net/eth-phy-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_ETH_PHY
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 13fad8119bb5..dc7e6f1929fd 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -9,7 +9,6 @@ * Copyright (C) 2016 Cadence Design Systems Inc. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 90af18f80a88..0a0d92bc2cdd 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -7,7 +7,6 @@ * (C) Copyright 2007 Pengutronix, Juergen Beisert j.beisert@pengutronix.de */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <env.h> diff --git a/drivers/net/fm/b4860.c b/drivers/net/fm/b4860.c index 1c5543e3c878..46a0d38b101c 100644 --- a/drivers/net/fm/b4860.c +++ b/drivers/net/fm/b4860.c @@ -3,7 +3,7 @@ * Copyright 2012 Freescale Semiconductor, Inc. * Roy Zang tie-fei.zang@freescale.com */ -#include <common.h> +#include <config.h> #include <env.h> #include <phy.h> #include <fm_eth.h> diff --git a/drivers/net/fm/dtsec.c b/drivers/net/fm/dtsec.c index c51a65cb94fb..371d9f07a46d 100644 --- a/drivers/net/fm/dtsec.c +++ b/drivers/net/fm/dtsec.c @@ -3,7 +3,6 @@ * Copyright 2009-2011 Freescale Semiconductor, Inc. */
-#include <common.h> #include <asm/types.h> #include <asm/io.h> #include <fsl_dtsec.h> diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 9fd26de0d721..19f3f0fef073 100644 --- a/drivers/net/fm/eth.c +++ b/drivers/net/fm/eth.c @@ -4,7 +4,7 @@ * Copyright 2020 NXP * Dave Liu daveliu@freescale.com */ -#include <common.h> +#include <config.h> #include <log.h> #include <part.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1043.c b/drivers/net/fm/ls1043.c index 3db5c907a2ab..41b75761fddc 100644 --- a/drivers/net/fm/ls1043.c +++ b/drivers/net/fm/ls1043.c @@ -2,7 +2,7 @@ /* * Copyright 2015 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1046.c b/drivers/net/fm/ls1046.c index 3b0ee98ddd35..56c5c6846a47 100644 --- a/drivers/net/fm/ls1046.c +++ b/drivers/net/fm/ls1046.c @@ -2,7 +2,7 @@ /* * Copyright 2016 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index eeb67a39a77f..37b54626af0c 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -7,7 +7,6 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff
-#include <common.h> #include <log.h> #include <phy.h> #include <asm/types.h> diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c index e0b62b944909..26425d94ae55 100644 --- a/drivers/net/fm/memac_phy.c +++ b/drivers/net/fm/memac_phy.c @@ -5,7 +5,6 @@ * Roy Zang tie-fei.zang@freescale.com * Some part is taken from tsec.c */ -#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fm/p1023.c b/drivers/net/fm/p1023.c index 9013b276bc95..362bc9f30a1c 100644 --- a/drivers/net/fm/p1023.c +++ b/drivers/net/fm/p1023.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p4080.c b/drivers/net/fm/p4080.c index 7ad993221f78..6e63e338e5d5 100644 --- a/drivers/net/fm/p4080.c +++ b/drivers/net/fm/p4080.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5020.c b/drivers/net/fm/p5020.c index f931491b1120..4fc1f723a3d9 100644 --- a/drivers/net/fm/p5020.c +++ b/drivers/net/fm/p5020.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5040.c b/drivers/net/fm/p5040.c index ef9f4bcce4dd..f6ae947ef99b 100644 --- a/drivers/net/fm/p5040.c +++ b/drivers/net/fm/p5040.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t1024.c b/drivers/net/fm/t1024.c index 70ab4610cdf6..18d71e7b60e8 100644 --- a/drivers/net/fm/t1024.c +++ b/drivers/net/fm/t1024.c @@ -4,7 +4,7 @@ * Shengzhou Liu Shengzhou.Liu@freescale.com */
-#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t1040.c b/drivers/net/fm/t1040.c index 5c260bed7fd5..dafa6d638e3a 100644 --- a/drivers/net/fm/t1040.c +++ b/drivers/net/fm/t1040.c @@ -2,7 +2,7 @@ /* * Copyright 2013 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t2080.c b/drivers/net/fm/t2080.c index 6174934d2b81..390ca0aee707 100644 --- a/drivers/net/fm/t2080.c +++ b/drivers/net/fm/t2080.c @@ -5,7 +5,7 @@ * Shengzhou Liu Shengzhou.Liu@freescale.com */
-#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t4240.c b/drivers/net/fm/t4240.c index f0a02bfe457f..df76073eecde 100644 --- a/drivers/net/fm/t4240.c +++ b/drivers/net/fm/t4240.c @@ -3,7 +3,7 @@ * Copyright 2012 Freescale Semiconductor, Inc. * Roy Zang tie-fei.zang@freescale.com */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec.c b/drivers/net/fm/tgec.c index 9cc9f3fde3ad..f7b51ce0bbac 100644 --- a/drivers/net/fm/tgec.c +++ b/drivers/net/fm/tgec.c @@ -7,7 +7,6 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff
-#include <common.h> #include <phy.h> #include <asm/types.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec_phy.c b/drivers/net/fm/tgec_phy.c index 22225c2f82f9..f6c8f80c835e 100644 --- a/drivers/net/fm/tgec_phy.c +++ b/drivers/net/fm/tgec_phy.c @@ -4,7 +4,6 @@ * Andy Fleming afleming@gmail.com * Some part is taken from tsec.c */ -#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index f5c5057bec10..c2869ce4010c 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -3,7 +3,7 @@ * Copyright 2014 Freescale Semiconductor, Inc. * Copyright 2017-2018, 2020-2021 NXP */ -#include <common.h> +#include <config.h> #include <command.h> #include <cpu_func.h> #include <env.h> diff --git a/drivers/net/fsl-mc/mc_sys.c b/drivers/net/fsl-mc/mc_sys.c index 4d32516b0055..482fb0463d5d 100644 --- a/drivers/net/fsl-mc/mc_sys.c +++ b/drivers/net/fsl-mc/mc_sys.c @@ -8,7 +8,6 @@
#include <fsl-mc/fsl_mc_sys.h> #include <fsl-mc/fsl_mc_cmd.h> -#include <common.h> #include <errno.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index 1fd5089cc4be..a6b0bafc8c60 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -4,7 +4,6 @@ * Copyright 2017-2021 NXP */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdt_support.h> diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c index 50ad76dfeb55..2d5fcbb6dbd3 100644 --- a/drivers/net/fsl_enetc_mdio.c +++ b/drivers/net/fsl_enetc_mdio.c @@ -4,7 +4,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/net/fsl_ls_mdio.c b/drivers/net/fsl_ls_mdio.c index fce73937502d..e3c37d9045f1 100644 --- a/drivers/net/fsl_ls_mdio.c +++ b/drivers/net/fsl_ls_mdio.c @@ -3,7 +3,6 @@ * Copyright 2020 NXP */
-#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c index 5fd11db05f5e..a0f1c59e058c 100644 --- a/drivers/net/fsl_mdio.c +++ b/drivers/net/fsl_mdio.c @@ -5,7 +5,6 @@ * Mingkai Hu Mingkai.hu@freescale.com */
-#include <common.h> #include <miiphy.h> #include <phy.h> #include <fsl_mdio.h> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 9b536fd5ab89..8781e50a48dc 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -11,7 +11,6 @@ * Copyright (C) 2018, IBM Corporation. */
-#include <common.h> #include <clk.h> #include <reset.h> #include <cpu_func.h> diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c index fae3adc3de34..199a0723b843 100644 --- a/drivers/net/ftmac100.c +++ b/drivers/net/ftmac100.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 51f835adabc3..d63e2dbfaebf 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -5,7 +5,6 @@ * Rockchip GMAC ethernet IP driver for U-Boot */
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c index 1862235d0cd2..6b88f6fbf596 100644 --- a/drivers/net/higmacv300.c +++ b/drivers/net/higmacv300.c @@ -8,7 +8,6 @@ #include <malloc.h> #include <asm/cache.h> #include <asm/io.h> -#include <common.h> #include <console.h> #include <linux/bitops.h> #include <linux/bug.h> diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c index 518548e3bbcd..cc2e826257a9 100644 --- a/drivers/net/ks8851_mll.c +++ b/drivers/net/ks8851_mll.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/io.h> -#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 87fbada06ba2..b72198ca5307 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -4,7 +4,6 @@ * Copyright 2017, 2023 NXP */
-#include <common.h> #include <cpu_func.h> #include <dm/device_compat.h> #include <fsl-mc/fsl_dpmac.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_wriop.c b/drivers/net/ldpaa_eth/ldpaa_wriop.c index adecb8135764..a803b8fa7972 100644 --- a/drivers/net/ldpaa_eth/ldpaa_wriop.c +++ b/drivers/net/ldpaa_eth/ldpaa_wriop.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Freescale Semiconductor */
-#include <common.h> #include <asm/io.h> #include <asm/types.h> #include <malloc.h> diff --git a/drivers/net/ldpaa_eth/ls1088a.c b/drivers/net/ldpaa_eth/ls1088a.c index 32bcb51725ac..2727fb01179c 100644 --- a/drivers/net/ldpaa_eth/ls1088a.c +++ b/drivers/net/ldpaa_eth/ls1088a.c @@ -2,7 +2,7 @@ /* * Copyright 2017 NXP */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/ls2080a.c b/drivers/net/ldpaa_eth/ls2080a.c index 845a36bce875..05017552b3fb 100644 --- a/drivers/net/ldpaa_eth/ls2080a.c +++ b/drivers/net/ldpaa_eth/ls2080a.c @@ -2,7 +2,7 @@ /* * Copyright 2015 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/lx2160a.c b/drivers/net/ldpaa_eth/lx2160a.c index c2641a92d7ec..25ae684063bb 100644 --- a/drivers/net/ldpaa_eth/lx2160a.c +++ b/drivers/net/ldpaa_eth/lx2160a.c @@ -2,7 +2,7 @@ /* * Copyright 2018, 2020 NXP */ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/macb.c b/drivers/net/macb.c index bca014c3cbb1..cbf5f6055189 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2005-2006 Atmel Corporation */ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index ec1fae9688bd..04b711e4f650 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -10,7 +10,7 @@ * (C) 2019 Angelo Dureghello angelo.dureghello@timesys.com */
-#include <common.h> +#include <config.h> #include <env.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index eae20654513e..9bf887035d7f 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -4,7 +4,6 @@ * TsiChung Liew (Tsi-Chung.Liew@freescale.com) */
-#include <common.h> #include <config.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/mdio-ipq4019.c b/drivers/net/mdio-ipq4019.c index 50134b4d9b6a..c824c3da3ddb 100644 --- a/drivers/net/mdio-ipq4019.c +++ b/drivers/net/mdio-ipq4019.c @@ -11,7 +11,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c index 78337731e1fd..c44fa6acdd70 100644 --- a/drivers/net/mpc8xx_fec.c +++ b/drivers/net/mpc8xx_fec.c @@ -4,7 +4,6 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <command.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c index 7157428a685e..925888e0765a 100644 --- a/drivers/net/mscc_eswitch/jr2_switch.c +++ b/drivers/net/mscc_eswitch/jr2_switch.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 5e4f00c4f4d9..2f3d0911fdf7 100644 --- a/drivers/net/mscc_eswitch/luton_switch.c +++ b/drivers/net/mscc_eswitch/luton_switch.c @@ -3,7 +3,6 @@ * Copyright (c) 2019 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c index 7ea1f551a11a..30bb4b5bad8b 100644 --- a/drivers/net/mscc_eswitch/ocelot_switch.c +++ b/drivers/net/mscc_eswitch/ocelot_switch.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c index be06e4833733..8eab41df99ae 100644 --- a/drivers/net/mscc_eswitch/serval_switch.c +++ b/drivers/net/mscc_eswitch/serval_switch.c @@ -3,7 +3,6 @@ * Copyright (c) 2019 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c index 2d2329c204ae..61547d7933e4 100644 --- a/drivers/net/mscc_eswitch/servalt_switch.c +++ b/drivers/net/mscc_eswitch/servalt_switch.c @@ -3,7 +3,6 @@ * Copyright (c) 2019 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index b95de474fb02..fc8a6bb331bb 100644 --- a/drivers/net/mt7628-eth.c +++ b/drivers/net/mt7628-eth.c @@ -13,7 +13,6 @@ * copyrights here, so I can't add them here. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 75e7bcf83b76..94f17a97fe0f 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -6,7 +6,6 @@ * Author: Mark Lee mark-mc.lee@mediatek.com */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mv88e6xxx.c b/drivers/net/mv88e6xxx.c index 8fbbc1caccad..557b6b2c8f6a 100644 --- a/drivers/net/mv88e6xxx.c +++ b/drivers/net/mv88e6xxx.c @@ -23,7 +23,6 @@ * on the mv88e6176 via an SGMII interface. */
-#include <common.h> #include <dm/device.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 3587ca2124e3..17b62bbc2052 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -11,7 +11,6 @@ * Copyright (C) 2002 rabeeh@galileo.co.il */
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/mvmdio.c b/drivers/net/mvmdio.c index 5ebcfe14b7fb..3315e06f591f 100644 --- a/drivers/net/mvmdio.c +++ b/drivers/net/mvmdio.c @@ -4,7 +4,6 @@ * Author: Ken Mamake@marvell.com */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 24933473fa05..f014d39b1751 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -12,7 +12,6 @@ * Thomas Petazzoni thomas.petazzoni@free-electrons.com */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 1cd543076504..d19a79d16007 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -13,7 +13,6 @@ * warranty of any kind, whether express or implied. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <asm/cache.h> diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 151bc55e076b..1943de8ba730 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -4,12 +4,12 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <command.h> #include <env.h> #include <log.h> #include <stdio_dev.h> #include <net.h> +#include <vsprintf.h>
#ifndef CFG_NETCONSOLE_BUFFER_SIZE #define CFG_NETCONSOLE_BUFFER_SIZE 512 diff --git a/drivers/net/npcm750_eth.c b/drivers/net/npcm750_eth.c index 2028f4ae286e..f0ec6c556cc2 100644 --- a/drivers/net/npcm750_eth.c +++ b/drivers/net/npcm750_eth.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index ecf8c28fe41b..adeca3d040dd 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/pch_gbe.c @@ -5,7 +5,6 @@ * Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index a1f3c2bd290c..180a96af16b6 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -6,7 +6,6 @@ * Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/pfe_eth/pfe_cmd.c b/drivers/net/pfe_eth/pfe_cmd.c index 2fe0db0fe717..99c2a8d4e92b 100644 --- a/drivers/net/pfe_eth/pfe_cmd.c +++ b/drivers/net/pfe_eth/pfe_cmd.c @@ -9,7 +9,6 @@ * @brief PFE utility commands */
-#include <common.h> #include <command.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index ab532c5a420e..e24a6f93d910 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -4,7 +4,7 @@ * Copyright 2017 NXP */
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c index ff48726dbf55..ce2f76eabc8c 100644 --- a/drivers/net/pfe_eth/pfe_mdio.c +++ b/drivers/net/pfe_eth/pfe_mdio.c @@ -3,7 +3,7 @@ * Copyright 2015-2016 Freescale Semiconductor, Inc. * Copyright 2017 NXP */ -#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 0970449d0f9f..ce448810ff6d 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -6,7 +6,6 @@ * Copyright 2022 Variscite Ltd. * Copyright 2022 Josua Mayer josua@solid-run.com */ -#include <common.h> #include <phy.h> #include <linux/bitops.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index a958e88d44fd..4517a6b13ba6 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -6,7 +6,6 @@ * Copyright 2018, 2021 NXP */ #include <config.h> -#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index abb7bdf537cf..61525f68c359 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -6,7 +6,6 @@ * author Andy Fleming * Copyright (c) 2019 Michael Walle michael@walle.cc */ -#include <common.h> #include <phy.h> #include <dm/device_compat.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c index 26e8e2fe64fb..e95363067fe3 100644 --- a/drivers/net/phy/b53.c +++ b/drivers/net/phy/b53.c @@ -22,7 +22,6 @@ * cover other switches would be trivial. */
-#include <common.h> #include <command.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index ecccb7c3b54a..0a49015eb89a 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <phy.h> #include <linux/delay.h>
diff --git a/drivers/net/phy/ca_phy.c b/drivers/net/phy/ca_phy.c index edef21867b04..5b2c67d2fdad 100644 --- a/drivers/net/phy/ca_phy.c +++ b/drivers/net/phy/ca_phy.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c index 1cf8b28f5827..d043e859bad7 100644 --- a/drivers/net/phy/cortina.c +++ b/drivers/net/phy/cortina.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index 31ffa1ac7a98..72d668129851 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <phy.h>
#define MIIM_DM9161_SCR 0x10 diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index b6726031ebb8..772cde1c520c 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -3,7 +3,6 @@ * TI PHY drivers * */ -#include <common.h> #include <log.h> #include <phy.h> #include <dm/devres.h> diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index f9d4782580e9..b6fb5adae1f4 100644 --- a/drivers/net/phy/dp83869.c +++ b/drivers/net/phy/dp83869.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <phy.h> #include <linux/compat.h> #include <malloc.h> diff --git a/drivers/net/phy/ethernet_id.c b/drivers/net/phy/ethernet_id.c index 4dfdee60dccb..2f8454ca27da 100644 --- a/drivers/net/phy/ethernet_id.c +++ b/drivers/net/phy/ethernet_id.c @@ -5,7 +5,6 @@ * Copyright (C) 2022 Xilinx, Inc. */
-#include <common.h> #include <dm/device_compat.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 2f0823b83651..11d361649769 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <malloc.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/phy/generic_10g.c b/drivers/net/phy/generic_10g.c index 34ac51ea070c..38dc9a885631 100644 --- a/drivers/net/phy/generic_10g.c +++ b/drivers/net/phy/generic_10g.c @@ -7,7 +7,6 @@ * * Based loosely off of Linux's PHY Lib */ -#include <common.h> #include <miiphy.h> #include <phy.h>
diff --git a/drivers/net/phy/intel_xway.c b/drivers/net/phy/intel_xway.c index 9d1b97d349ff..fe50eec011ad 100644 --- a/drivers/net/phy/intel_xway.c +++ b/drivers/net/phy/intel_xway.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <phy.h> #include <linux/bitfield.h>
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c index 20940033a38b..a817c58b128f 100644 --- a/drivers/net/phy/lxt.c +++ b/drivers/net/phy/lxt.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <phy.h>
/* LXT971 Status 2 registers */ diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 0a90f710dfe4..b0a0b7fcb38b 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <errno.h> #include <marvell_phy.h> #include <phy.h> diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 9e64672f5cac..8c95bcbb9ad9 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -22,7 +22,6 @@ * If both the fiber and copper ports are connected, the first to gain * link takes priority and the other port is completely locked out. */ -#include <common.h> #include <console.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index b49c9b5f4953..d43b476b3c88 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */ #include <config.h> -#include <common.h> #include <linux/bitops.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c index b0f3abcb037c..a9a64466ac2d 100644 --- a/drivers/net/phy/micrel_ksz8xxx.c +++ b/drivers/net/phy/micrel_ksz8xxx.c @@ -6,7 +6,6 @@ * author Andy Fleming * (C) 2012 NetModule AG, David Andrey, added KSZ9031 */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index ffc3c987eaae..556d75e31ede 100644 --- a/drivers/net/phy/micrel_ksz90x1.c +++ b/drivers/net/phy/micrel_ksz90x1.c @@ -8,7 +8,6 @@ * (C) Copyright 2017 Adaptrum, Inc. * Written by Alexandru Gagniuc alex.g@adaptrum.com for Adaptrum, Inc. */ -#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c index cf71f7d4e7e5..083d9d3996dc 100644 --- a/drivers/net/phy/miiphybb.c +++ b/drivers/net/phy/miiphybb.c @@ -12,7 +12,6 @@ * channel. */
-#include <common.h> #include <ioports.h> #include <ppc_asm.tmpl> #include <miiphy.h> diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index a2c763c8791e..a96430cec43d 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <malloc.h> #include <phy.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index 85778106eddc..ecc10f788afb 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -29,7 +29,6 @@ * changes may be required. */
-#include <common.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/mv88e6352.c b/drivers/net/phy/mv88e6352.c index 56060762d85c..6284298ebc1a 100644 --- a/drivers/net/phy/mv88e6352.c +++ b/drivers/net/phy/mv88e6352.c @@ -4,7 +4,6 @@ * Valentin Lontgchamp, Keymile AG, valentin.longchamp@keymile.com */
-#include <common.h> #include <command.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/phy/natsemi.c b/drivers/net/phy/natsemi.c index 6b9e99ea1156..f7e514ef203a 100644 --- a/drivers/net/phy/natsemi.c +++ b/drivers/net/phy/natsemi.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <phy.h>
/* NatSemi DP83630 */ diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c index 2bca116a9d81..a1de438ffff1 100644 --- a/drivers/net/phy/ncsi.c +++ b/drivers/net/phy/ncsi.c @@ -5,7 +5,6 @@ * Copyright (C) 2019, IBM Corporation. */
-#include <common.h> #include <log.h> #include <malloc.h> #include <phy.h> diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c index f24fc5b2de61..a1e4c3d053b6 100644 --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -5,7 +5,6 @@ * Copyright 2021 NXP * Author: Radu Pirea radu-nicolae.pirea@oss.nxp.com */ -#include <common.h> #include <dm.h> #include <dm/devres.h> #include <linux/delay.h> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c index 471b0e322b58..a61471f42777 100644 --- a/drivers/net/phy/nxp-tja11xx.c +++ b/drivers/net/phy/nxp-tja11xx.c @@ -6,7 +6,6 @@ * Copyright (C) 2018 Marek Vasut marex@denx.de */
-#include <common.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 270176cfe629..fbf85d90f546 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -7,7 +7,6 @@ * * Based loosely off of Linux's PHY Lib */ -#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 7e1036b2271f..30f35cced9d6 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -6,7 +6,6 @@ * author Andy Fleming * Copyright 2016 Karsten Merker merker@debian.org */ -#include <common.h> #include <linux/bitops.h> #include <phy.h> #include <linux/delay.h> diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index 056b607e0b8c..0d823f5f2b18 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -9,7 +9,6 @@ * Some code copied from linux kernel * Copyright (c) 2006 Herbert Valerio Riedel hvr@gnu.org */ -#include <common.h> #include <miiphy.h>
/* This code does not check the partner abilities. */ diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c index 15f2c12ed83c..b39311976d60 100644 --- a/drivers/net/phy/teranetics.c +++ b/drivers/net/phy/teranetics.c @@ -5,7 +5,6 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ -#include <common.h> #include <phy.h> #include <linux/delay.h>
diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index c5cf0d7dfbd1..4867d1931b44 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c @@ -6,7 +6,6 @@ * Original Author: Andy Fleming * Add vsc8662 phy support - Priyanka Jain */ -#include <common.h> #include <miiphy.h>
/* Cicada Auxiliary Control/Status Register */ diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index e2969bc48424..e44b7b75bd58 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Xilinx, Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <phy.h> diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index c07c780193f4..a59e17d11e5b 100644 --- a/drivers/net/phy/xilinx_phy.c +++ b/drivers/net/phy/xilinx_phy.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index 1333a3aa7e44..eea3c48aeffc 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -3,7 +3,6 @@ * (c) 2015 Purna Chandra Mandal purna.mandal@microchip.com * */ -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <dm.h> diff --git a/drivers/net/pic32_mdio.c b/drivers/net/pic32_mdio.c index d4049cfea525..8610f9a1aa5d 100644 --- a/drivers/net/pic32_mdio.c +++ b/drivers/net/pic32_mdio.c @@ -5,7 +5,6 @@ * Copyright 2015 Microchip Inc. * Purna Chandra Mandal purna.mandal@microchip.com */ -#include <common.h> #include <phy.h> #include <miiphy.h> #include <errno.h> diff --git a/drivers/net/qe/dm_qe_uec.c b/drivers/net/qe/dm_qe_uec.c index 6d1509d90cf0..ac3aedd8b49e 100644 --- a/drivers/net/qe/dm_qe_uec.c +++ b/drivers/net/qe/dm_qe_uec.c @@ -7,7 +7,6 @@ * Copyright (C) 2020 Heiko Schocher hs@denx.de */
-#include <common.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/net/qe/dm_qe_uec_phy.c b/drivers/net/qe/dm_qe_uec_phy.c index a0bcc8d3e55b..8c0168be859e 100644 --- a/drivers/net/qe/dm_qe_uec_phy.c +++ b/drivers/net/qe/dm_qe_uec_phy.c @@ -8,7 +8,6 @@ * Copyright (C) 2020 Heiko Schocher hs@denx.de */
-#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/qe/uccf.c b/drivers/net/qe/uccf.c index 00848a1a37d7..badf4e5db3e5 100644 --- a/drivers/net/qe/uccf.c +++ b/drivers/net/qe/uccf.c @@ -7,6 +7,7 @@ */
#include <malloc.h> +#include <stdio.h> #include <linux/errno.h> #include <asm/io.h> #include <linux/immap_qe.h> diff --git a/drivers/net/qe/uccf.h b/drivers/net/qe/uccf.h index 99f8458edf67..e60bbe241cd9 100644 --- a/drivers/net/qe/uccf.h +++ b/drivers/net/qe/uccf.h @@ -9,8 +9,8 @@ #ifndef __UCCF_H__ #define __UCCF_H__
-#include "common.h" -#include "linux/immap_qe.h" +#include <linux/types.h> +#include <linux/immap_qe.h> #include <fsl_qe.h>
/* Fast or Giga ethernet */ diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index 4764bca70824..f1401d2f6ed2 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -8,7 +8,6 @@ * Based on the SuperH Ethernet driver. */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/rswitch.c b/drivers/net/rswitch.c index 5a69ca1a0f9e..8e1b6e2f6f6a 100644 --- a/drivers/net/rswitch.c +++ b/drivers/net/rswitch.c @@ -9,7 +9,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index d8f24ec81a2f..2e0afad089f8 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -68,7 +68,6 @@ * */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 93e83661cec4..e80aebc0bcf2 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -39,7 +39,6 @@ * 26 August 2006 Mihai Georgian u-boot@linuxnotincluded.org.uk * Modified to use le32_to_cpu and cpu_to_le32 properly */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw-bus.c b/drivers/net/sandbox-raw-bus.c index fb1ba5a8c83a..15670d6d24a1 100644 --- a/drivers/net/sandbox-raw-bus.c +++ b/drivers/net/sandbox-raw-bus.c @@ -4,7 +4,6 @@ * Copyright (c) 2018 Joe Hershberger joe.hershberger@ni.com */
-#include <common.h> #include <asm/eth-raw-os.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 99eb7a3bbff6..1d716716778c 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/sandbox-raw.c @@ -8,7 +8,6 @@
#include <log.h> #include <asm/eth-raw-os.h> -#include <common.h> #include <dm.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6a3..fe3627db6e3e 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -6,7 +6,6 @@ * Joe Hershberger joe.hershberger@ni.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 7b1f59dc4989..f1ce994cfd53 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -9,7 +9,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <env.h> #include <log.h> diff --git a/drivers/net/sja1105.c b/drivers/net/sja1105.c index 48f044c64721..0ba84a4496f5 100644 --- a/drivers/net/sja1105.c +++ b/drivers/net/sja1105.c @@ -8,7 +8,6 @@ * Ported from Linux (drivers/net/dsa/sja1105/). */
-#include <common.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/bitrev.h> diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 616b7ce174f4..f39ba40944f3 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -5,7 +5,6 @@ * (c) 2007 Pengutronix, Sascha Hauer s.hauer@pengutronix.de */
-#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 8bff4fe9a9ea..f4b97798d2d6 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -16,7 +16,6 @@ #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <fdt_support.h> diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index f546ad1fe8dd..3dee849c97e9 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -5,7 +5,6 @@ * (C) Copyright 2012, Stefan Roese sr@denx.de */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index b151e25d6a4c..335c8bee3fef 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <malloc.h> #include <asm/cache.h> #include <asm/gpio.h> diff --git a/drivers/net/ti/cpsw-common.c b/drivers/net/ti/cpsw-common.c index d5428274d190..3e66d7c7bdfb 100644 --- a/drivers/net/ti/cpsw-common.c +++ b/drivers/net/ti/cpsw-common.c @@ -5,7 +5,6 @@ * Copyright (C) 2016, Texas Instruments, Incorporated */
-#include <common.h> #include <dm.h> #include <fdt_support.h> #include <asm/global_data.h> diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 9a5e9642df11..d7746f454baf 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -5,7 +5,6 @@ * Copyright (C) 2010-2018 Texas Instruments Incorporated - https://www.ti.com/ */
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c index f1b1eba75d00..9e0083ca7896 100644 --- a/drivers/net/ti/cpsw_mdio.c +++ b/drivers/net/ti/cpsw_mdio.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm/device_compat.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c index 034877a76907..03a1a7a11599 100644 --- a/drivers/net/ti/davinci_emac.c +++ b/drivers/net/ti/davinci_emac.c @@ -21,7 +21,7 @@ * ver. 1.0: Sep 2005, Anant Gole - Created EMAC version for uBoot. * ver 1.1: Nov 2005, Anant Gole - Extended the RX logic for multiple descriptors */ -#include <common.h> +#include <config.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index 43dbf3f10670..c6e5bf21cf05 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -5,7 +5,6 @@ * (C) Copyright 2012-2014 * Texas Instruments Incorporated, <www.ti.com> */ -#include <common.h> #include <command.h> #include <console.h> #include <asm/global_data.h> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 8833e3098d52..6481ee24a601 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/vsc7385.c b/drivers/net/vsc7385.c index 09883f06be28..bd1869dfc830 100644 --- a/drivers/net/vsc7385.c +++ b/drivers/net/vsc7385.c @@ -13,7 +13,6 @@ */
#include <config.h> -#include <common.h> #include <console.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index ef151ee51b40..a1a39f61488e 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/net/xilinx_axi_mrmac.c b/drivers/net/xilinx_axi_mrmac.c index 410fb25ddef4..555651937f86 100644 --- a/drivers/net/xilinx_axi_mrmac.c +++ b/drivers/net/xilinx_axi_mrmac.c @@ -9,7 +9,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 16ba915fbaaf..c25ac2e66009 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -6,7 +6,6 @@ * Michal SIMEK monstr@monstr.eu */
-#include <common.h> #include <log.h> #include <net.h> #include <config.h> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7c57d32614fa..b41ee95892e8 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -9,7 +9,6 @@ */
#include <clk.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <generic-phy.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Joe Hershberger joe.hershberger@ni.com Cc: Ramon Fried rfried.dev@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Robert Marko robert.marko@sartura.hr Cc: Luka Kovacic luka.kovacic@sartura.hr Cc: Luka Perkov luka.perkov@sartura.hr Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Michal Simek michal.simek@amd.com Cc: Radu Pirea radu-nicolae.pirea@oss.nxp.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Peng Fan peng.fan@nxp.com Cc: Ioana Ciornei ioana.ciornei@nxp.com Cc: Laurentiu Tudor laurentiu.tudor@nxp.com Cc: Nate Drude nate.d@variscite.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: "Rafał Miłecki" rafal@milecki.pl Cc: Nishanth Menon nm@ti.com Cc: Frank de Brabander debrabander@gmail.com Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Lukasz Tekieli tekieli.lukasz@gmail.com Cc: Nicolas Frattaroli frattaroli.nicolas@gmail.com Cc: Yanhong Wang yanhong.wang@starfivetech.com Cc: Jacky Chou jacky_chou@aspeedtech.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Eugeniu Rosca erosca@de.adit-jv.com Cc: Tejas Bhumkar tejas.arvind.bhumkar@amd.com Cc: "Sébastien Szymanski" sebastien.szymanski@armadeus.com Cc: Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com Cc: Johan Jonker jbx6244@gmail.com Cc: Roger Quadros rogerq@kernel.org Cc: Siddharth Vadapalli s-vadapalli@ti.com Cc: Michael Walle mwalle@kernel.org Cc: Maxime Ripard mripard@kernel.org Cc: Sean Anderson seanga2@gmail.com Cc: Suman Anna s-anna@ti.com Cc: Andreas Dannenberg dannenberg@ti.com
drivers/net/ag7xxx.c | 1 - drivers/net/altera_tse.c | 1 - drivers/net/aspeed_mdio.c | 1 - drivers/net/bcm-sf2-eth-gmac.c | 1 - drivers/net/bcm-sf2-eth.c | 1 - drivers/net/bcm6348-eth.c | 1 - drivers/net/bcm6368-eth.c | 1 - drivers/net/bnxt/bnxt.c | 1 - drivers/net/calxedaxgmac.c | 1 - drivers/net/cortina_ni.c | 1 - drivers/net/dc2114x.c | 1 - drivers/net/designware.c | 1 - drivers/net/dm9000x.c | 1 - drivers/net/dwc_eth_qos.c | 1 - drivers/net/dwc_eth_qos_imx.c | 1 - drivers/net/dwc_eth_qos_qcom.c | 1 - drivers/net/dwc_eth_qos_rockchip.c | 1 - drivers/net/dwc_eth_qos_starfive.c | 1 - drivers/net/dwmac_meson8b.c | 1 - drivers/net/dwmac_s700.c | 1 - drivers/net/dwmac_socfpga.c | 1 - drivers/net/e1000.c | 1 - drivers/net/e1000_spi.c | 2 +- drivers/net/eepro100.c | 2 +- drivers/net/eth-phy-uclass.c | 1 - drivers/net/ethoc.c | 1 - drivers/net/fec_mxc.c | 1 - drivers/net/fm/b4860.c | 2 +- drivers/net/fm/dtsec.c | 1 - drivers/net/fm/eth.c | 2 +- drivers/net/fm/ls1043.c | 2 +- drivers/net/fm/ls1046.c | 2 +- drivers/net/fm/memac.c | 1 - drivers/net/fm/memac_phy.c | 1 - drivers/net/fm/p1023.c | 2 +- drivers/net/fm/p4080.c | 2 +- drivers/net/fm/p5020.c | 2 +- drivers/net/fm/p5040.c | 2 +- drivers/net/fm/t1024.c | 2 +- drivers/net/fm/t1040.c | 2 +- drivers/net/fm/t2080.c | 2 +- drivers/net/fm/t4240.c | 2 +- drivers/net/fm/tgec.c | 1 - drivers/net/fm/tgec_phy.c | 1 - drivers/net/fsl-mc/mc.c | 2 +- drivers/net/fsl-mc/mc_sys.c | 1 - drivers/net/fsl_enetc.c | 1 - drivers/net/fsl_enetc_mdio.c | 1 - drivers/net/fsl_ls_mdio.c | 1 - drivers/net/fsl_mdio.c | 1 - drivers/net/ftgmac100.c | 1 - drivers/net/ftmac100.c | 1 - drivers/net/gmac_rockchip.c | 1 - drivers/net/higmacv300.c | 1 - drivers/net/ks8851_mll.c | 1 - drivers/net/ldpaa_eth/ldpaa_eth.c | 1 - drivers/net/ldpaa_eth/ldpaa_wriop.c | 1 - drivers/net/ldpaa_eth/ls1088a.c | 2 +- drivers/net/ldpaa_eth/ls2080a.c | 2 +- drivers/net/ldpaa_eth/lx2160a.c | 2 +- drivers/net/macb.c | 1 - drivers/net/mcffec.c | 2 +- drivers/net/mcfmii.c | 1 - drivers/net/mdio-ipq4019.c | 1 - drivers/net/mpc8xx_fec.c | 1 - drivers/net/mscc_eswitch/jr2_switch.c | 1 - drivers/net/mscc_eswitch/luton_switch.c | 1 - drivers/net/mscc_eswitch/ocelot_switch.c | 1 - drivers/net/mscc_eswitch/serval_switch.c | 1 - drivers/net/mscc_eswitch/servalt_switch.c | 1 - drivers/net/mt7628-eth.c | 1 - drivers/net/mtk_eth.c | 1 - drivers/net/mv88e6xxx.c | 1 - drivers/net/mvgbe.c | 1 - drivers/net/mvmdio.c | 1 - drivers/net/mvneta.c | 1 - drivers/net/mvpp2.c | 1 - drivers/net/netconsole.c | 2 +- drivers/net/npcm750_eth.c | 1 - drivers/net/pch_gbe.c | 1 - drivers/net/pcnet.c | 1 - drivers/net/pfe_eth/pfe_cmd.c | 1 - drivers/net/pfe_eth/pfe_eth.c | 2 +- drivers/net/pfe_eth/pfe_mdio.c | 2 +- drivers/net/phy/adin.c | 1 - drivers/net/phy/aquantia.c | 1 - drivers/net/phy/atheros.c | 1 - drivers/net/phy/b53.c | 1 - drivers/net/phy/broadcom.c | 1 - drivers/net/phy/ca_phy.c | 1 - drivers/net/phy/cortina.c | 1 - drivers/net/phy/davicom.c | 1 - drivers/net/phy/dp83867.c | 1 - drivers/net/phy/dp83869.c | 1 - drivers/net/phy/ethernet_id.c | 1 - drivers/net/phy/fixed.c | 1 - drivers/net/phy/generic_10g.c | 1 - drivers/net/phy/intel_xway.c | 1 - drivers/net/phy/lxt.c | 1 - drivers/net/phy/marvell.c | 1 - drivers/net/phy/marvell10g.c | 1 - drivers/net/phy/meson-gxl.c | 1 - drivers/net/phy/micrel_ksz8xxx.c | 1 - drivers/net/phy/micrel_ksz90x1.c | 1 - drivers/net/phy/miiphybb.c | 1 - drivers/net/phy/motorcomm.c | 1 - drivers/net/phy/mv88e61xx.c | 1 - drivers/net/phy/mv88e6352.c | 1 - drivers/net/phy/natsemi.c | 1 - drivers/net/phy/ncsi.c | 1 - drivers/net/phy/nxp-c45-tja11xx.c | 1 - drivers/net/phy/nxp-tja11xx.c | 1 - drivers/net/phy/phy.c | 1 - drivers/net/phy/realtek.c | 1 - drivers/net/phy/smsc.c | 1 - drivers/net/phy/teranetics.c | 1 - drivers/net/phy/vitesse.c | 1 - drivers/net/phy/xilinx_gmii2rgmii.c | 1 - drivers/net/phy/xilinx_phy.c | 1 - drivers/net/pic32_eth.c | 1 - drivers/net/pic32_mdio.c | 1 - drivers/net/qe/dm_qe_uec.c | 1 - drivers/net/qe/dm_qe_uec_phy.c | 1 - drivers/net/qe/uccf.c | 1 + drivers/net/qe/uccf.h | 4 ++-- drivers/net/ravb.c | 1 - drivers/net/rswitch.c | 1 - drivers/net/rtl8139.c | 1 - drivers/net/rtl8169.c | 1 - drivers/net/sandbox-raw-bus.c | 1 - drivers/net/sandbox-raw.c | 1 - drivers/net/sandbox.c | 1 - drivers/net/sh_eth.c | 1 - drivers/net/sja1105.c | 1 - drivers/net/smc911x.c | 1 - drivers/net/sun8i_emac.c | 1 - drivers/net/sunxi_emac.c | 1 - drivers/net/ti/am65-cpsw-nuss.c | 1 - drivers/net/ti/cpsw-common.c | 1 - drivers/net/ti/cpsw.c | 1 - drivers/net/ti/cpsw_mdio.c | 1 - drivers/net/ti/davinci_emac.c | 2 +- drivers/net/ti/keystone_net.c | 1 - drivers/net/tsec.c | 1 - drivers/net/vsc7385.c | 1 - drivers/net/xilinx_axi_emac.c | 1 - drivers/net/xilinx_axi_mrmac.c | 1 - drivers/net/xilinx_emaclite.c | 1 - drivers/net/zynq_gem.c | 1 - 149 files changed, 26 insertions(+), 149 deletions(-)
diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index da1f3f458080..059a65d46610 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -6,7 +6,6 @@
- Copyright (C) 2019 Rosy Song rosysong@rosinson.com
*/
-#include <common.h> #include <clock_legacy.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index e2340936fa62..c57aafd00263 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -8,7 +8,6 @@
- it under the terms of the GNU General Public License version 2 as
- published by the Free Software Foundation.
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/aspeed_mdio.c b/drivers/net/aspeed_mdio.c index a99715a72829..f2e4392aa9ac 100644 --- a/drivers/net/aspeed_mdio.c +++ b/drivers/net/aspeed_mdio.c @@ -7,7 +7,6 @@
- This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c index cbe1e85222fa..ba244b4a26e2 100644 --- a/drivers/net/bcm-sf2-eth-gmac.c +++ b/drivers/net/bcm-sf2-eth-gmac.c @@ -11,7 +11,6 @@ #endif
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c index 1524f5c99890..c10719c6b510 100644 --- a/drivers/net/bcm-sf2-eth.c +++ b/drivers/net/bcm-sf2-eth.c @@ -3,7 +3,6 @@
- Copyright 2014 Broadcom Corporation.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c index 15a94f6ce9a1..f87db4ab46e4 100644 --- a/drivers/net/bcm6348-eth.c +++ b/drivers/net/bcm6348-eth.c @@ -6,7 +6,6 @@
- Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 9679a45b0758..0601fcc42f58 100644 --- a/drivers/net/bcm6368-eth.c +++ b/drivers/net/bcm6368-eth.c @@ -6,7 +6,6 @@
- Copyright (C) 2008 Maxime Bizon mbizon@freebox.fr
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bnxt/bnxt.c b/drivers/net/bnxt/bnxt.c index 1c9a9962408a..25fbcd7b1161 100644 --- a/drivers/net/bnxt/bnxt.c +++ b/drivers/net/bnxt/bnxt.c @@ -3,7 +3,6 @@
- Copyright 2019-2021 Broadcom.
*/
-#include <common.h>
#include <asm/io.h> #include <dm.h> diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c index eb1e2a756cd3..ebb399457fb5 100644 --- a/drivers/net/calxedaxgmac.c +++ b/drivers/net/calxedaxgmac.c @@ -3,7 +3,6 @@
- Copyright 2010-2011 Calxeda, Inc.
*/
-#include <common.h> #include <malloc.h> #include <net.h> #include <linux/compiler.h> diff --git a/drivers/net/cortina_ni.c b/drivers/net/cortina_ni.c index ef6ecd88b0ce..790268828002 100644 --- a/drivers/net/cortina_ni.c +++ b/drivers/net/cortina_ni.c @@ -7,7 +7,6 @@
- Ethernet MAC Driver for all supported CAxxxx SoCs
*/
-#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 4e7af95b41c4..ce028f451f13 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 4c1642b29a84..254e9c5b7155 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -8,7 +8,6 @@
- Designware ethernet IP driver for U-Boot
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c index bec8d67dad0f..9e17f0b9c280 100644 --- a/drivers/net/dm9000x.c +++ b/drivers/net/dm9000x.c @@ -49,7 +49,6 @@
- TODO: external MII is not functional, only internal at the moment.
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 32a5d52165ac..67ac86f82bcd 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -29,7 +29,6 @@
#define LOG_CATEGORY UCLASS_ETH
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_imx.c b/drivers/net/dwc_eth_qos_imx.c index 9c4e39044133..d6bed278ca79 100644 --- a/drivers/net/dwc_eth_qos_imx.c +++ b/drivers/net/dwc_eth_qos_imx.c @@ -3,7 +3,6 @@
- Copyright 2022 NXP
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_qcom.c b/drivers/net/dwc_eth_qos_qcom.c index 8178138fc659..77d626393d5a 100644 --- a/drivers/net/dwc_eth_qos_qcom.c +++ b/drivers/net/dwc_eth_qos_qcom.c @@ -5,7 +5,6 @@
- Qcom DWMAC specific glue layer
*/
-#include <common.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/net/dwc_eth_qos_rockchip.c b/drivers/net/dwc_eth_qos_rockchip.c index fa9e513faea3..c4557e57988d 100644 --- a/drivers/net/dwc_eth_qos_rockchip.c +++ b/drivers/net/dwc_eth_qos_rockchip.c @@ -8,7 +8,6 @@
- part in order to simplify future porting of fixes and support for other SoCs.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/net/dwc_eth_qos_starfive.c b/drivers/net/dwc_eth_qos_starfive.c index 5be8ac0f1a51..09e714ce76a0 100644 --- a/drivers/net/dwc_eth_qos_starfive.c +++ b/drivers/net/dwc_eth_qos_starfive.c @@ -4,7 +4,6 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> #include <asm/cache.h> #include <asm/gpio.h> #include <clk.h> diff --git a/drivers/net/dwmac_meson8b.c b/drivers/net/dwmac_meson8b.c index 871171e1be5e..fde4aabbacec 100644 --- a/drivers/net/dwmac_meson8b.c +++ b/drivers/net/dwmac_meson8b.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 BayLibre, SAS
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/dwmac_s700.c b/drivers/net/dwmac_s700.c index 744b58bdd1a6..969d247b4f3a 100644 --- a/drivers/net/dwmac_s700.c +++ b/drivers/net/dwmac_s700.c @@ -5,7 +5,6 @@
- Actions DWMAC specific glue layer
*/
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_socfpga.c index 82fdff51dacc..bba3fc4d34b0 100644 --- a/drivers/net/dwmac_socfpga.c +++ b/drivers/net/dwmac_socfpga.c @@ -5,7 +5,6 @@
- Altera SoCFPGA EMAC extras
*/
-#include <common.h> #include <asm/arch/secure_reg_helper.h> #include <asm/arch/system_manager.h> #include <asm/io.h> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 4e7ba6667703..663d900eb099 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -29,7 +29,6 @@ tested on both gig copper and gig fiber boards
- Copyright 2011 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c index 69adf282c739..1e830b99f1d4 100644 --- a/drivers/net/e1000_spi.c +++ b/drivers/net/e1000_spi.c @@ -1,9 +1,9 @@ -#include <common.h> #include <command.h> #include <console.h> #include <linux/delay.h> #include "e1000.h" #include <malloc.h> +#include <vsprintf.h> #include <linux/compiler.h>
/*----------------------------------------------------------------------- diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index 38d96ab72b6e..d18a8d577ca4 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c @@ -4,7 +4,7 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> +#include <config.h> #include <asm/io.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 9d1e8d38ffa6..1dae26878e61 100644 --- a/drivers/net/eth-phy-uclass.c +++ b/drivers/net/eth-phy-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_ETH_PHY
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 13fad8119bb5..dc7e6f1929fd 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -9,7 +9,6 @@
- Copyright (C) 2016 Cadence Design Systems Inc.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 90af18f80a88..0a0d92bc2cdd 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -7,7 +7,6 @@
- (C) Copyright 2007 Pengutronix, Juergen Beisert j.beisert@pengutronix.de
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <env.h> diff --git a/drivers/net/fm/b4860.c b/drivers/net/fm/b4860.c index 1c5543e3c878..46a0d38b101c 100644 --- a/drivers/net/fm/b4860.c +++ b/drivers/net/fm/b4860.c @@ -3,7 +3,7 @@
- Copyright 2012 Freescale Semiconductor, Inc.
- Roy Zang tie-fei.zang@freescale.com
*/ -#include <common.h> +#include <config.h> #include <env.h> #include <phy.h> #include <fm_eth.h> diff --git a/drivers/net/fm/dtsec.c b/drivers/net/fm/dtsec.c index c51a65cb94fb..371d9f07a46d 100644 --- a/drivers/net/fm/dtsec.c +++ b/drivers/net/fm/dtsec.c @@ -3,7 +3,6 @@
- Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <asm/types.h> #include <asm/io.h> #include <fsl_dtsec.h> diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 9fd26de0d721..19f3f0fef073 100644 --- a/drivers/net/fm/eth.c +++ b/drivers/net/fm/eth.c @@ -4,7 +4,7 @@
- Copyright 2020 NXP
- Dave Liu daveliu@freescale.com
*/ -#include <common.h> +#include <config.h> #include <log.h> #include <part.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1043.c b/drivers/net/fm/ls1043.c index 3db5c907a2ab..41b75761fddc 100644 --- a/drivers/net/fm/ls1043.c +++ b/drivers/net/fm/ls1043.c @@ -2,7 +2,7 @@ /*
- Copyright 2015 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1046.c b/drivers/net/fm/ls1046.c index 3b0ee98ddd35..56c5c6846a47 100644 --- a/drivers/net/fm/ls1046.c +++ b/drivers/net/fm/ls1046.c @@ -2,7 +2,7 @@ /*
- Copyright 2016 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index eeb67a39a77f..37b54626af0c 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -7,7 +7,6 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff
-#include <common.h> #include <log.h> #include <phy.h> #include <asm/types.h> diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c index e0b62b944909..26425d94ae55 100644 --- a/drivers/net/fm/memac_phy.c +++ b/drivers/net/fm/memac_phy.c @@ -5,7 +5,6 @@
- Roy Zang tie-fei.zang@freescale.com
- Some part is taken from tsec.c
*/ -#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fm/p1023.c b/drivers/net/fm/p1023.c index 9013b276bc95..362bc9f30a1c 100644 --- a/drivers/net/fm/p1023.c +++ b/drivers/net/fm/p1023.c @@ -2,7 +2,7 @@ /*
- Copyright 2011 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p4080.c b/drivers/net/fm/p4080.c index 7ad993221f78..6e63e338e5d5 100644 --- a/drivers/net/fm/p4080.c +++ b/drivers/net/fm/p4080.c @@ -2,7 +2,7 @@ /*
- Copyright 2011 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5020.c b/drivers/net/fm/p5020.c index f931491b1120..4fc1f723a3d9 100644 --- a/drivers/net/fm/p5020.c +++ b/drivers/net/fm/p5020.c @@ -2,7 +2,7 @@ /*
- Copyright 2011 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5040.c b/drivers/net/fm/p5040.c index ef9f4bcce4dd..f6ae947ef99b 100644 --- a/drivers/net/fm/p5040.c +++ b/drivers/net/fm/p5040.c @@ -2,7 +2,7 @@ /*
- Copyright 2011 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t1024.c b/drivers/net/fm/t1024.c index 70ab4610cdf6..18d71e7b60e8 100644 --- a/drivers/net/fm/t1024.c +++ b/drivers/net/fm/t1024.c @@ -4,7 +4,7 @@
- Shengzhou Liu Shengzhou.Liu@freescale.com
*/
-#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t1040.c b/drivers/net/fm/t1040.c index 5c260bed7fd5..dafa6d638e3a 100644 --- a/drivers/net/fm/t1040.c +++ b/drivers/net/fm/t1040.c @@ -2,7 +2,7 @@ /*
- Copyright 2013 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t2080.c b/drivers/net/fm/t2080.c index 6174934d2b81..390ca0aee707 100644 --- a/drivers/net/fm/t2080.c +++ b/drivers/net/fm/t2080.c @@ -5,7 +5,7 @@
- Shengzhou Liu Shengzhou.Liu@freescale.com
*/
-#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t4240.c b/drivers/net/fm/t4240.c index f0a02bfe457f..df76073eecde 100644 --- a/drivers/net/fm/t4240.c +++ b/drivers/net/fm/t4240.c @@ -3,7 +3,7 @@
- Copyright 2012 Freescale Semiconductor, Inc.
- Roy Zang tie-fei.zang@freescale.com
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec.c b/drivers/net/fm/tgec.c index 9cc9f3fde3ad..f7b51ce0bbac 100644 --- a/drivers/net/fm/tgec.c +++ b/drivers/net/fm/tgec.c @@ -7,7 +7,6 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff
-#include <common.h> #include <phy.h> #include <asm/types.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec_phy.c b/drivers/net/fm/tgec_phy.c index 22225c2f82f9..f6c8f80c835e 100644 --- a/drivers/net/fm/tgec_phy.c +++ b/drivers/net/fm/tgec_phy.c @@ -4,7 +4,6 @@
- Andy Fleming afleming@gmail.com
- Some part is taken from tsec.c
*/ -#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index f5c5057bec10..c2869ce4010c 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -3,7 +3,7 @@
- Copyright 2014 Freescale Semiconductor, Inc.
- Copyright 2017-2018, 2020-2021 NXP
*/ -#include <common.h> +#include <config.h> #include <command.h> #include <cpu_func.h> #include <env.h> diff --git a/drivers/net/fsl-mc/mc_sys.c b/drivers/net/fsl-mc/mc_sys.c index 4d32516b0055..482fb0463d5d 100644 --- a/drivers/net/fsl-mc/mc_sys.c +++ b/drivers/net/fsl-mc/mc_sys.c @@ -8,7 +8,6 @@
#include <fsl-mc/fsl_mc_sys.h> #include <fsl-mc/fsl_mc_cmd.h> -#include <common.h> #include <errno.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index 1fd5089cc4be..a6b0bafc8c60 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -4,7 +4,6 @@
- Copyright 2017-2021 NXP
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdt_support.h> diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c index 50ad76dfeb55..2d5fcbb6dbd3 100644 --- a/drivers/net/fsl_enetc_mdio.c +++ b/drivers/net/fsl_enetc_mdio.c @@ -4,7 +4,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/net/fsl_ls_mdio.c b/drivers/net/fsl_ls_mdio.c index fce73937502d..e3c37d9045f1 100644 --- a/drivers/net/fsl_ls_mdio.c +++ b/drivers/net/fsl_ls_mdio.c @@ -3,7 +3,6 @@
- Copyright 2020 NXP
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c index 5fd11db05f5e..a0f1c59e058c 100644 --- a/drivers/net/fsl_mdio.c +++ b/drivers/net/fsl_mdio.c @@ -5,7 +5,6 @@
- Mingkai Hu Mingkai.hu@freescale.com
*/
-#include <common.h> #include <miiphy.h> #include <phy.h> #include <fsl_mdio.h> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 9b536fd5ab89..8781e50a48dc 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -11,7 +11,6 @@
- Copyright (C) 2018, IBM Corporation.
*/
-#include <common.h> #include <clk.h> #include <reset.h> #include <cpu_func.h> diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c index fae3adc3de34..199a0723b843 100644 --- a/drivers/net/ftmac100.c +++ b/drivers/net/ftmac100.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 51f835adabc3..d63e2dbfaebf 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -5,7 +5,6 @@
- Rockchip GMAC ethernet IP driver for U-Boot
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c index 1862235d0cd2..6b88f6fbf596 100644 --- a/drivers/net/higmacv300.c +++ b/drivers/net/higmacv300.c @@ -8,7 +8,6 @@ #include <malloc.h> #include <asm/cache.h> #include <asm/io.h> -#include <common.h> #include <console.h> #include <linux/bitops.h> #include <linux/bug.h> diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c index 518548e3bbcd..cc2e826257a9 100644 --- a/drivers/net/ks8851_mll.c +++ b/drivers/net/ks8851_mll.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/io.h> -#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index 87fbada06ba2..b72198ca5307 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -4,7 +4,6 @@
- Copyright 2017, 2023 NXP
*/
-#include <common.h> #include <cpu_func.h> #include <dm/device_compat.h> #include <fsl-mc/fsl_dpmac.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_wriop.c b/drivers/net/ldpaa_eth/ldpaa_wriop.c index adecb8135764..a803b8fa7972 100644 --- a/drivers/net/ldpaa_eth/ldpaa_wriop.c +++ b/drivers/net/ldpaa_eth/ldpaa_wriop.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Freescale Semiconductor
*/
-#include <common.h> #include <asm/io.h> #include <asm/types.h> #include <malloc.h> diff --git a/drivers/net/ldpaa_eth/ls1088a.c b/drivers/net/ldpaa_eth/ls1088a.c index 32bcb51725ac..2727fb01179c 100644 --- a/drivers/net/ldpaa_eth/ls1088a.c +++ b/drivers/net/ldpaa_eth/ls1088a.c @@ -2,7 +2,7 @@ /*
- Copyright 2017 NXP
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/ls2080a.c b/drivers/net/ldpaa_eth/ls2080a.c index 845a36bce875..05017552b3fb 100644 --- a/drivers/net/ldpaa_eth/ls2080a.c +++ b/drivers/net/ldpaa_eth/ls2080a.c @@ -2,7 +2,7 @@ /*
- Copyright 2015 Freescale Semiconductor, Inc.
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/lx2160a.c b/drivers/net/ldpaa_eth/lx2160a.c index c2641a92d7ec..25ae684063bb 100644 --- a/drivers/net/ldpaa_eth/lx2160a.c +++ b/drivers/net/ldpaa_eth/lx2160a.c @@ -2,7 +2,7 @@ /*
- Copyright 2018, 2020 NXP
*/ -#include <common.h> +#include <config.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/macb.c b/drivers/net/macb.c index bca014c3cbb1..cbf5f6055189 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2005-2006 Atmel Corporation
*/ -#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index ec1fae9688bd..04b711e4f650 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -10,7 +10,7 @@
- (C) 2019 Angelo Dureghello angelo.dureghello@timesys.com
*/
-#include <common.h> +#include <config.h> #include <env.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index eae20654513e..9bf887035d7f 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -4,7 +4,6 @@
- TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
-#include <common.h> #include <config.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/mdio-ipq4019.c b/drivers/net/mdio-ipq4019.c index 50134b4d9b6a..c824c3da3ddb 100644 --- a/drivers/net/mdio-ipq4019.c +++ b/drivers/net/mdio-ipq4019.c @@ -11,7 +11,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c index 78337731e1fd..c44fa6acdd70 100644 --- a/drivers/net/mpc8xx_fec.c +++ b/drivers/net/mpc8xx_fec.c @@ -4,7 +4,6 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <command.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c index 7157428a685e..925888e0765a 100644 --- a/drivers/net/mscc_eswitch/jr2_switch.c +++ b/drivers/net/mscc_eswitch/jr2_switch.c @@ -3,7 +3,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 5e4f00c4f4d9..2f3d0911fdf7 100644 --- a/drivers/net/mscc_eswitch/luton_switch.c +++ b/drivers/net/mscc_eswitch/luton_switch.c @@ -3,7 +3,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c index 7ea1f551a11a..30bb4b5bad8b 100644 --- a/drivers/net/mscc_eswitch/ocelot_switch.c +++ b/drivers/net/mscc_eswitch/ocelot_switch.c @@ -3,7 +3,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c index be06e4833733..8eab41df99ae 100644 --- a/drivers/net/mscc_eswitch/serval_switch.c +++ b/drivers/net/mscc_eswitch/serval_switch.c @@ -3,7 +3,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c index 2d2329c204ae..61547d7933e4 100644 --- a/drivers/net/mscc_eswitch/servalt_switch.c +++ b/drivers/net/mscc_eswitch/servalt_switch.c @@ -3,7 +3,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index b95de474fb02..fc8a6bb331bb 100644 --- a/drivers/net/mt7628-eth.c +++ b/drivers/net/mt7628-eth.c @@ -13,7 +13,6 @@
- copyrights here, so I can't add them here.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 75e7bcf83b76..94f17a97fe0f 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -6,7 +6,6 @@
- Author: Mark Lee mark-mc.lee@mediatek.com
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mv88e6xxx.c b/drivers/net/mv88e6xxx.c index 8fbbc1caccad..557b6b2c8f6a 100644 --- a/drivers/net/mv88e6xxx.c +++ b/drivers/net/mv88e6xxx.c @@ -23,7 +23,6 @@
- on the mv88e6176 via an SGMII interface.
*/
-#include <common.h> #include <dm/device.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 3587ca2124e3..17b62bbc2052 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -11,7 +11,6 @@
- Copyright (C) 2002 rabeeh@galileo.co.il
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/mvmdio.c b/drivers/net/mvmdio.c index 5ebcfe14b7fb..3315e06f591f 100644 --- a/drivers/net/mvmdio.c +++ b/drivers/net/mvmdio.c @@ -4,7 +4,6 @@
- Author: Ken Mamake@marvell.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 24933473fa05..f014d39b1751 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -12,7 +12,6 @@
- Thomas Petazzoni thomas.petazzoni@free-electrons.com
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 1cd543076504..d19a79d16007 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -13,7 +13,6 @@
- warranty of any kind, whether express or implied.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <asm/cache.h> diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 151bc55e076b..1943de8ba730 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -4,12 +4,12 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <command.h> #include <env.h> #include <log.h> #include <stdio_dev.h> #include <net.h> +#include <vsprintf.h>
#ifndef CFG_NETCONSOLE_BUFFER_SIZE #define CFG_NETCONSOLE_BUFFER_SIZE 512 diff --git a/drivers/net/npcm750_eth.c b/drivers/net/npcm750_eth.c index 2028f4ae286e..f0ec6c556cc2 100644 --- a/drivers/net/npcm750_eth.c +++ b/drivers/net/npcm750_eth.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index ecf8c28fe41b..adeca3d040dd 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/pch_gbe.c @@ -5,7 +5,6 @@
- Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index a1f3c2bd290c..180a96af16b6 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -6,7 +6,6 @@
- Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/pfe_eth/pfe_cmd.c b/drivers/net/pfe_eth/pfe_cmd.c index 2fe0db0fe717..99c2a8d4e92b 100644 --- a/drivers/net/pfe_eth/pfe_cmd.c +++ b/drivers/net/pfe_eth/pfe_cmd.c @@ -9,7 +9,6 @@
- @brief PFE utility commands
*/
-#include <common.h> #include <command.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index ab532c5a420e..e24a6f93d910 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -4,7 +4,7 @@
- Copyright 2017 NXP
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c index ff48726dbf55..ce2f76eabc8c 100644 --- a/drivers/net/pfe_eth/pfe_mdio.c +++ b/drivers/net/pfe_eth/pfe_mdio.c @@ -3,7 +3,7 @@
- Copyright 2015-2016 Freescale Semiconductor, Inc.
- Copyright 2017 NXP
*/ -#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 0970449d0f9f..ce448810ff6d 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -6,7 +6,6 @@
- Copyright 2022 Variscite Ltd.
- Copyright 2022 Josua Mayer josua@solid-run.com
*/ -#include <common.h> #include <phy.h> #include <linux/bitops.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index a958e88d44fd..4517a6b13ba6 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -6,7 +6,6 @@
- Copyright 2018, 2021 NXP
*/ #include <config.h> -#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index abb7bdf537cf..61525f68c359 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -6,7 +6,6 @@
- author Andy Fleming
- Copyright (c) 2019 Michael Walle michael@walle.cc
*/ -#include <common.h> #include <phy.h> #include <dm/device_compat.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c index 26e8e2fe64fb..e95363067fe3 100644 --- a/drivers/net/phy/b53.c +++ b/drivers/net/phy/b53.c @@ -22,7 +22,6 @@
- cover other switches would be trivial.
*/
-#include <common.h> #include <command.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index ecccb7c3b54a..0a49015eb89a 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <phy.h> #include <linux/delay.h>
diff --git a/drivers/net/phy/ca_phy.c b/drivers/net/phy/ca_phy.c index edef21867b04..5b2c67d2fdad 100644 --- a/drivers/net/phy/ca_phy.c +++ b/drivers/net/phy/ca_phy.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c index 1cf8b28f5827..d043e859bad7 100644 --- a/drivers/net/phy/cortina.c +++ b/drivers/net/phy/cortina.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index 31ffa1ac7a98..72d668129851 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <phy.h>
#define MIIM_DM9161_SCR 0x10 diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index b6726031ebb8..772cde1c520c 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -3,7 +3,6 @@
- TI PHY drivers
*/ -#include <common.h> #include <log.h> #include <phy.h> #include <dm/devres.h> diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index f9d4782580e9..b6fb5adae1f4 100644 --- a/drivers/net/phy/dp83869.c +++ b/drivers/net/phy/dp83869.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <phy.h> #include <linux/compat.h> #include <malloc.h> diff --git a/drivers/net/phy/ethernet_id.c b/drivers/net/phy/ethernet_id.c index 4dfdee60dccb..2f8454ca27da 100644 --- a/drivers/net/phy/ethernet_id.c +++ b/drivers/net/phy/ethernet_id.c @@ -5,7 +5,6 @@
- Copyright (C) 2022 Xilinx, Inc.
*/
-#include <common.h> #include <dm/device_compat.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 2f0823b83651..11d361649769 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <malloc.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/phy/generic_10g.c b/drivers/net/phy/generic_10g.c index 34ac51ea070c..38dc9a885631 100644 --- a/drivers/net/phy/generic_10g.c +++ b/drivers/net/phy/generic_10g.c @@ -7,7 +7,6 @@
- Based loosely off of Linux's PHY Lib
*/ -#include <common.h> #include <miiphy.h> #include <phy.h>
diff --git a/drivers/net/phy/intel_xway.c b/drivers/net/phy/intel_xway.c index 9d1b97d349ff..fe50eec011ad 100644 --- a/drivers/net/phy/intel_xway.c +++ b/drivers/net/phy/intel_xway.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <phy.h> #include <linux/bitfield.h>
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c index 20940033a38b..a817c58b128f 100644 --- a/drivers/net/phy/lxt.c +++ b/drivers/net/phy/lxt.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <phy.h>
/* LXT971 Status 2 registers */ diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 0a90f710dfe4..b0a0b7fcb38b 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <errno.h> #include <marvell_phy.h> #include <phy.h> diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 9e64672f5cac..8c95bcbb9ad9 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -22,7 +22,6 @@
- If both the fiber and copper ports are connected, the first to gain
- link takes priority and the other port is completely locked out.
*/ -#include <common.h> #include <console.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index b49c9b5f4953..d43b476b3c88 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/ #include <config.h> -#include <common.h> #include <linux/bitops.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c index b0f3abcb037c..a9a64466ac2d 100644 --- a/drivers/net/phy/micrel_ksz8xxx.c +++ b/drivers/net/phy/micrel_ksz8xxx.c @@ -6,7 +6,6 @@
- author Andy Fleming
- (C) 2012 NetModule AG, David Andrey, added KSZ9031
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index ffc3c987eaae..556d75e31ede 100644 --- a/drivers/net/phy/micrel_ksz90x1.c +++ b/drivers/net/phy/micrel_ksz90x1.c @@ -8,7 +8,6 @@
- (C) Copyright 2017 Adaptrum, Inc.
- Written by Alexandru Gagniuc alex.g@adaptrum.com for Adaptrum, Inc.
*/ -#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c index cf71f7d4e7e5..083d9d3996dc 100644 --- a/drivers/net/phy/miiphybb.c +++ b/drivers/net/phy/miiphybb.c @@ -12,7 +12,6 @@
- channel.
*/
-#include <common.h> #include <ioports.h> #include <ppc_asm.tmpl> #include <miiphy.h> diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index a2c763c8791e..a96430cec43d 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <malloc.h> #include <phy.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index 85778106eddc..ecc10f788afb 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -29,7 +29,6 @@
- changes may be required.
*/
-#include <common.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/mv88e6352.c b/drivers/net/phy/mv88e6352.c index 56060762d85c..6284298ebc1a 100644 --- a/drivers/net/phy/mv88e6352.c +++ b/drivers/net/phy/mv88e6352.c @@ -4,7 +4,6 @@
- Valentin Lontgchamp, Keymile AG, valentin.longchamp@keymile.com
*/
-#include <common.h> #include <command.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/phy/natsemi.c b/drivers/net/phy/natsemi.c index 6b9e99ea1156..f7e514ef203a 100644 --- a/drivers/net/phy/natsemi.c +++ b/drivers/net/phy/natsemi.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <phy.h>
/* NatSemi DP83630 */ diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c index 2bca116a9d81..a1de438ffff1 100644 --- a/drivers/net/phy/ncsi.c +++ b/drivers/net/phy/ncsi.c @@ -5,7 +5,6 @@
- Copyright (C) 2019, IBM Corporation.
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <phy.h> diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c index f24fc5b2de61..a1e4c3d053b6 100644 --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -5,7 +5,6 @@
- Copyright 2021 NXP
- Author: Radu Pirea radu-nicolae.pirea@oss.nxp.com
*/ -#include <common.h> #include <dm.h> #include <dm/devres.h> #include <linux/delay.h> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c index 471b0e322b58..a61471f42777 100644 --- a/drivers/net/phy/nxp-tja11xx.c +++ b/drivers/net/phy/nxp-tja11xx.c @@ -6,7 +6,6 @@
- Copyright (C) 2018 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 270176cfe629..fbf85d90f546 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -7,7 +7,6 @@
- Based loosely off of Linux's PHY Lib
*/ -#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 7e1036b2271f..30f35cced9d6 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -6,7 +6,6 @@
- author Andy Fleming
- Copyright 2016 Karsten Merker merker@debian.org
*/ -#include <common.h> #include <linux/bitops.h> #include <phy.h> #include <linux/delay.h> diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index 056b607e0b8c..0d823f5f2b18 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -9,7 +9,6 @@
- Some code copied from linux kernel
- Copyright (c) 2006 Herbert Valerio Riedel hvr@gnu.org
*/ -#include <common.h> #include <miiphy.h>
/* This code does not check the partner abilities. */ diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c index 15f2c12ed83c..b39311976d60 100644 --- a/drivers/net/phy/teranetics.c +++ b/drivers/net/phy/teranetics.c @@ -5,7 +5,6 @@
- Copyright 2010-2011 Freescale Semiconductor, Inc.
- author Andy Fleming
*/ -#include <common.h> #include <phy.h> #include <linux/delay.h>
diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index c5cf0d7dfbd1..4867d1931b44 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c @@ -6,7 +6,6 @@
- Original Author: Andy Fleming
- Add vsc8662 phy support - Priyanka Jain
*/ -#include <common.h> #include <miiphy.h>
/* Cicada Auxiliary Control/Status Register */ diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index e2969bc48424..e44b7b75bd58 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Xilinx, Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <phy.h> diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index c07c780193f4..a59e17d11e5b 100644 --- a/drivers/net/phy/xilinx_phy.c +++ b/drivers/net/phy/xilinx_phy.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index 1333a3aa7e44..eea3c48aeffc 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -3,7 +3,6 @@
- (c) 2015 Purna Chandra Mandal purna.mandal@microchip.com
*/ -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <dm.h> diff --git a/drivers/net/pic32_mdio.c b/drivers/net/pic32_mdio.c index d4049cfea525..8610f9a1aa5d 100644 --- a/drivers/net/pic32_mdio.c +++ b/drivers/net/pic32_mdio.c @@ -5,7 +5,6 @@
- Copyright 2015 Microchip Inc.
- Purna Chandra Mandal purna.mandal@microchip.com
*/ -#include <common.h> #include <phy.h> #include <miiphy.h> #include <errno.h> diff --git a/drivers/net/qe/dm_qe_uec.c b/drivers/net/qe/dm_qe_uec.c index 6d1509d90cf0..ac3aedd8b49e 100644 --- a/drivers/net/qe/dm_qe_uec.c +++ b/drivers/net/qe/dm_qe_uec.c @@ -7,7 +7,6 @@
- Copyright (C) 2020 Heiko Schocher hs@denx.de
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/net/qe/dm_qe_uec_phy.c b/drivers/net/qe/dm_qe_uec_phy.c index a0bcc8d3e55b..8c0168be859e 100644 --- a/drivers/net/qe/dm_qe_uec_phy.c +++ b/drivers/net/qe/dm_qe_uec_phy.c @@ -8,7 +8,6 @@
- Copyright (C) 2020 Heiko Schocher hs@denx.de
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/qe/uccf.c b/drivers/net/qe/uccf.c index 00848a1a37d7..badf4e5db3e5 100644 --- a/drivers/net/qe/uccf.c +++ b/drivers/net/qe/uccf.c @@ -7,6 +7,7 @@ */
#include <malloc.h> +#include <stdio.h> #include <linux/errno.h> #include <asm/io.h> #include <linux/immap_qe.h> diff --git a/drivers/net/qe/uccf.h b/drivers/net/qe/uccf.h index 99f8458edf67..e60bbe241cd9 100644 --- a/drivers/net/qe/uccf.h +++ b/drivers/net/qe/uccf.h @@ -9,8 +9,8 @@ #ifndef __UCCF_H__ #define __UCCF_H__
-#include "common.h" -#include "linux/immap_qe.h" +#include <linux/types.h> +#include <linux/immap_qe.h> #include <fsl_qe.h>
/* Fast or Giga ethernet */ diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index 4764bca70824..f1401d2f6ed2 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -8,7 +8,6 @@
- Based on the SuperH Ethernet driver.
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/rswitch.c b/drivers/net/rswitch.c index 5a69ca1a0f9e..8e1b6e2f6f6a 100644 --- a/drivers/net/rswitch.c +++ b/drivers/net/rswitch.c @@ -9,7 +9,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index d8f24ec81a2f..2e0afad089f8 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -68,7 +68,6 @@
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 93e83661cec4..e80aebc0bcf2 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -39,7 +39,6 @@
- 26 August 2006 Mihai Georgian u-boot@linuxnotincluded.org.uk
- Modified to use le32_to_cpu and cpu_to_le32 properly
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw-bus.c b/drivers/net/sandbox-raw-bus.c index fb1ba5a8c83a..15670d6d24a1 100644 --- a/drivers/net/sandbox-raw-bus.c +++ b/drivers/net/sandbox-raw-bus.c @@ -4,7 +4,6 @@
- Copyright (c) 2018 Joe Hershberger joe.hershberger@ni.com
*/
-#include <common.h> #include <asm/eth-raw-os.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 99eb7a3bbff6..1d716716778c 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/sandbox-raw.c @@ -8,7 +8,6 @@
#include <log.h> #include <asm/eth-raw-os.h> -#include <common.h> #include <dm.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6a3..fe3627db6e3e 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -6,7 +6,6 @@
- Joe Hershberger joe.hershberger@ni.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 7b1f59dc4989..f1ce994cfd53 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -9,7 +9,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <env.h> #include <log.h> diff --git a/drivers/net/sja1105.c b/drivers/net/sja1105.c index 48f044c64721..0ba84a4496f5 100644 --- a/drivers/net/sja1105.c +++ b/drivers/net/sja1105.c @@ -8,7 +8,6 @@
- Ported from Linux (drivers/net/dsa/sja1105/).
*/
-#include <common.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/bitrev.h> diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 616b7ce174f4..f39ba40944f3 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -5,7 +5,6 @@
- (c) 2007 Pengutronix, Sascha Hauer s.hauer@pengutronix.de
*/
-#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 8bff4fe9a9ea..f4b97798d2d6 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -16,7 +16,6 @@ #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <fdt_support.h> diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index f546ad1fe8dd..3dee849c97e9 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -5,7 +5,6 @@
- (C) Copyright 2012, Stefan Roese sr@denx.de
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index b151e25d6a4c..335c8bee3fef 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <malloc.h> #include <asm/cache.h> #include <asm/gpio.h> diff --git a/drivers/net/ti/cpsw-common.c b/drivers/net/ti/cpsw-common.c index d5428274d190..3e66d7c7bdfb 100644 --- a/drivers/net/ti/cpsw-common.c +++ b/drivers/net/ti/cpsw-common.c @@ -5,7 +5,6 @@
- Copyright (C) 2016, Texas Instruments, Incorporated
*/
-#include <common.h> #include <dm.h> #include <fdt_support.h> #include <asm/global_data.h> diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 9a5e9642df11..d7746f454baf 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -5,7 +5,6 @@
- Copyright (C) 2010-2018 Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c index f1b1eba75d00..9e0083ca7896 100644 --- a/drivers/net/ti/cpsw_mdio.c +++ b/drivers/net/ti/cpsw_mdio.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm/device_compat.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c index 034877a76907..03a1a7a11599 100644 --- a/drivers/net/ti/davinci_emac.c +++ b/drivers/net/ti/davinci_emac.c @@ -21,7 +21,7 @@
- ver. 1.0: Sep 2005, Anant Gole - Created EMAC version for uBoot.
- ver 1.1: Nov 2005, Anant Gole - Extended the RX logic for multiple descriptors
*/ -#include <common.h> +#include <config.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index 43dbf3f10670..c6e5bf21cf05 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -5,7 +5,6 @@
- (C) Copyright 2012-2014
Texas Instruments Incorporated, <www.ti.com>
*/ -#include <common.h> #include <command.h> #include <console.h> #include <asm/global_data.h> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 8833e3098d52..6481ee24a601 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/vsc7385.c b/drivers/net/vsc7385.c index 09883f06be28..bd1869dfc830 100644 --- a/drivers/net/vsc7385.c +++ b/drivers/net/vsc7385.c @@ -13,7 +13,6 @@ */
#include <config.h> -#include <common.h> #include <console.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index ef151ee51b40..a1a39f61488e 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/net/xilinx_axi_mrmac.c b/drivers/net/xilinx_axi_mrmac.c index 410fb25ddef4..555651937f86 100644 --- a/drivers/net/xilinx_axi_mrmac.c +++ b/drivers/net/xilinx_axi_mrmac.c @@ -9,7 +9,6 @@ */
#include <config.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 16ba915fbaaf..c25ac2e66009 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -6,7 +6,6 @@
- Michal SIMEK monstr@monstr.eu
*/
-#include <common.h> #include <log.h> #include <net.h> #include <config.h> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7c57d32614fa..b41ee95892e8 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -9,7 +9,6 @@ */
#include <clk.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <generic-phy.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Bin Meng bmeng.cn@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Mark Kettenis kettenis@openbsd.org --- drivers/nvme/nvme-uclass.c | 1 - drivers/nvme/nvme.c | 1 - drivers/nvme/nvme_apple.c | 1 - drivers/nvme/nvme_pci.c | 1 - drivers/nvme/nvme_show.c | 1 - 5 files changed, 5 deletions(-)
diff --git a/drivers/nvme/nvme-uclass.c b/drivers/nvme/nvme-uclass.c index f3af6a27b63b..44c88ad27f3e 100644 --- a/drivers/nvme/nvme-uclass.c +++ b/drivers/nvme/nvme-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_NVME
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <init.h> diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 59a139baa0ba..7c58ceb78f51 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -4,7 +4,6 @@ * Copyright (C) 2017 Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <blk.h> #include <bootdev.h> #include <cpu_func.h> diff --git a/drivers/nvme/nvme_apple.c b/drivers/nvme/nvme_apple.c index 819b748dc02e..7e7538553e3f 100644 --- a/drivers/nvme/nvme_apple.c +++ b/drivers/nvme/nvme_apple.c @@ -3,7 +3,6 @@ * (C) Copyright 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <mailbox.h> #include <mapmem.h> diff --git a/drivers/nvme/nvme_pci.c b/drivers/nvme/nvme_pci.c index 5bb43d299fca..c24f8cf1eb1f 100644 --- a/drivers/nvme/nvme_pci.c +++ b/drivers/nvme/nvme_pci.c @@ -4,7 +4,6 @@ * Copyright (C) 2017 Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <init.h> #include <pci.h> diff --git a/drivers/nvme/nvme_show.c b/drivers/nvme/nvme_show.c index 72cbac82bcca..158102363e99 100644 --- a/drivers/nvme/nvme_show.c +++ b/drivers/nvme/nvme_show.c @@ -4,7 +4,6 @@ * Copyright (C) 2017 Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <memalign.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Bin Meng bmeng.cn@gmail.com --- drivers/pch/pch-uclass.c | 1 - drivers/pch/pch7.c | 1 - drivers/pch/pch9.c | 1 - drivers/pch/sandbox_pch.c | 1 - 4 files changed, 4 deletions(-)
diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c index af028f9cecad..9af247580042 100644 --- a/drivers/pch/pch-uclass.c +++ b/drivers/pch/pch-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PCH
-#include <common.h> #include <dm.h> #include <pch.h>
diff --git a/drivers/pch/pch7.c b/drivers/pch/pch7.c index 5fb35a19effe..4ef82a77e270 100644 --- a/drivers/pch/pch7.c +++ b/drivers/pch/pch7.c @@ -3,7 +3,6 @@ * Copyright (C) 2014 Google, Inc */
-#include <common.h> #include <dm.h> #include <log.h> #include <pch.h> diff --git a/drivers/pch/pch9.c b/drivers/pch/pch9.c index 3137eb2c28f5..24b0465efde4 100644 --- a/drivers/pch/pch9.c +++ b/drivers/pch/pch9.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PCH
-#include <common.h> #include <dm.h> #include <log.h> #include <pch.h> diff --git a/drivers/pch/sandbox_pch.c b/drivers/pch/sandbox_pch.c index 37c368954b45..aa82dca560f1 100644 --- a/drivers/pch/sandbox_pch.c +++ b/drivers/pch/sandbox_pch.c @@ -3,7 +3,6 @@ * Copyright 2018 Google LLC */
-#include <common.h> #include <dm.h> #include <pch.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Stefan Roese sr@denx.de Cc: Tom Rini trini@konsulko.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Heiko Schocher hs@denx.de Cc: Simon Glass sjg@chromium.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: liuhao liuhao@phytium.com.cn Cc: shuyiqi shuyiqi@phytium.com.cn Cc: Minda Chen minda.chen@starfivetech.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Moritz Fischer moritzf@google.com Cc: This contributor prefers not to receive mails noreply@example.com Cc: Sergei Antonov saproj@gmail.com Cc: Nikhil M Jain n-jain1@ti.com Cc: Sam Edwards cfsworks@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Sumit Garg sumit.garg@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Ioana Ciornei ioana.ciornei@nxp.com Cc: Mathew McBride matt@traverse.com.au Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Mason Huo mason.huo@starfivetech.com Cc: Mayuresh Chitale mchitale@ventanamicro.com --- drivers/pci/pci-aardvark.c | 1 - drivers/pci/pci-emul-uclass.c | 1 - drivers/pci/pci-rcar-gen2.c | 2 +- drivers/pci/pci-rcar-gen3.c | 1 - drivers/pci/pci-uclass.c | 1 - drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_common.c | 1 - drivers/pci/pci_common.c | 1 - drivers/pci/pci_compat.c | 1 - drivers/pci/pci_ftpci100.c | 1 - drivers/pci/pci_mpc85xx.c | 1 - drivers/pci/pci_mvebu.c | 1 - drivers/pci/pci_rom.c | 2 +- drivers/pci/pci_sandbox.c | 1 - drivers/pci/pci_sh7751.c | 2 +- drivers/pci/pci_tegra.c | 1 - drivers/pci/pci_x86.c | 1 - drivers/pci/pcie_apple.c | 1 - drivers/pci/pcie_brcmstb.c | 1 - drivers/pci/pcie_dw_common.c | 1 - drivers/pci/pcie_dw_meson.c | 1 - drivers/pci/pcie_dw_mvebu.c | 3 ++- drivers/pci/pcie_dw_rockchip.c | 1 - drivers/pci/pcie_dw_sifive.c | 1 - drivers/pci/pcie_dw_ti.c | 1 - drivers/pci/pcie_ecam_generic.c | 1 - drivers/pci/pcie_ecam_synquacer.c | 1 - drivers/pci/pcie_fsl.c | 2 +- drivers/pci/pcie_fsl_fixup.c | 1 - drivers/pci/pcie_imx.c | 1 - drivers/pci/pcie_intel_fpga.c | 1 - drivers/pci/pcie_iproc.c | 1 - drivers/pci/pcie_layerscape.c | 1 - drivers/pci/pcie_layerscape_ep.c | 2 +- drivers/pci/pcie_layerscape_fixup.c | 1 - drivers/pci/pcie_layerscape_fixup_common.c | 2 +- drivers/pci/pcie_layerscape_gen4.c | 2 +- drivers/pci/pcie_layerscape_gen4_fixup.c | 1 - drivers/pci/pcie_layerscape_rc.c | 1 - drivers/pci/pcie_mediatek.c | 1 - drivers/pci/pcie_phytium.c | 1 - drivers/pci/pcie_plda_common.c | 1 - drivers/pci/pcie_rockchip.c | 1 - drivers/pci/pcie_starfive_jh7110.c | 1 - drivers/pci/pcie_uniphier.c | 1 - drivers/pci/pcie_xilinx.c | 1 - 46 files changed, 10 insertions(+), 46 deletions(-)
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index af0e55cd2f2c..f5db4bdb7605 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -25,7 +25,6 @@ * */
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/io.h> diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c index a0b8afb87a01..166ee9fcd431 100644 --- a/drivers/pci/pci-emul-uclass.c +++ b/drivers/pci/pci-emul-uclass.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c index b81eb3536896..12c31e74087f 100644 --- a/drivers/pci/pci-rcar-gen2.c +++ b/drivers/pci/pci-rcar-gen2.c @@ -5,7 +5,7 @@ * Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> +#include <config.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c index 1252ef74c581..76878246f1e0 100644 --- a/drivers/pci/pci-rcar-gen3.c +++ b/drivers/pci/pci-rcar-gen3.c @@ -15,7 +15,6 @@ * Author: Phil Edworthy phil.edworthy@renesas.com */
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 1a48256de036..6571e653049d 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PCI
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 01230360bad2..90f818864457 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -8,7 +8,7 @@ * Copyright (c) 2021 Maciej W. Rozycki macro@orcam.me.uk */
-#include <common.h> +#include <config.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c index 2f4aff01049a..cfa818ed8218 100644 --- a/drivers/pci/pci_auto_common.c +++ b/drivers/pci/pci_auto_common.c @@ -11,7 +11,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index a18251297fd0..a57cf11cc537 100644 --- a/drivers/pci/pci_common.c +++ b/drivers/pci/pci_common.c @@ -9,7 +9,6 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/pci/pci_compat.c b/drivers/pci/pci_compat.c index 9dddca8efe07..8233925e525e 100644 --- a/drivers/pci/pci_compat.c +++ b/drivers/pci/pci_compat.c @@ -4,7 +4,6 @@ * * Copyright (C) 2014 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_ftpci100.c b/drivers/pci/pci_ftpci100.c index a1775445005a..43275b3d6a22 100644 --- a/drivers/pci/pci_ftpci100.c +++ b/drivers/pci/pci_ftpci100.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later
-#include <common.h> #include <pci.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 249cfe66466b..c07feba79768 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -4,7 +4,6 @@ * Heiko Schocher, DENX Software Engineering, hs@denx.de. * */ -#include <common.h> #include <asm/bitops.h> #include <pci.h> #include <dm.h> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 83559550e6fb..77815513b768 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -10,7 +10,6 @@ * Pali Rohár pali@kernel.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 438583aa0179..78e5de937cdf 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -24,7 +24,6 @@
#define LOG_CATEGORY UCLASS_PCI
-#include <common.h> #include <bios_emul.h> #include <bloblist.h> #include <bootstage.h> @@ -36,6 +35,7 @@ #include <pci.h> #include <pci_rom.h> #include <spl.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <acpi/acpi_s3.h> diff --git a/drivers/pci/pci_sandbox.c b/drivers/pci/pci_sandbox.c index ca44d002371e..fed0850458d9 100644 --- a/drivers/pci/pci_sandbox.c +++ b/drivers/pci/pci_sandbox.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c index c1be56ce7a08..3cd01e9b94a2 100644 --- a/drivers/pci/pci_sh7751.c +++ b/drivers/pci/pci_sh7751.c @@ -5,7 +5,7 @@ * (C) 2007,2008 Nobuhiro Iwamatsu iwamatsu@nigauri.org */
-#include <common.h> +#include <config.h> #include <dm.h> #include <pci.h> #include <asm/processor.h> diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index d6374a58e330..bb8832c6ab96 100644 --- a/drivers/pci/pci_tegra.c +++ b/drivers/pci/pci_tegra.c @@ -11,7 +11,6 @@
#define pr_fmt(fmt) "tegra-pcie: " fmt
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pci/pci_x86.c b/drivers/pci/pci_x86.c index 8d036930e73b..ab76166451c7 100644 --- a/drivers/pci/pci_x86.c +++ b/drivers/pci/pci_x86.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 Google, Inc */
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/pci.h> diff --git a/drivers/pci/pcie_apple.c b/drivers/pci/pcie_apple.c index 21bafba3b0ee..6a8e715d4b6e 100644 --- a/drivers/pci/pcie_apple.c +++ b/drivers/pci/pcie_apple.c @@ -16,7 +16,6 @@ * Author: Marc Zyngier maz@kernel.org */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c index cd45f0bee9b7..f978c64365c3 100644 --- a/drivers/pci/pcie_brcmstb.c +++ b/drivers/pci/pcie_brcmstb.c @@ -12,7 +12,6 @@ * Copyright (C) 2020 Nicolas Saenz Julienne nsaenzjulienne@suse.de */
-#include <common.h> #include <errno.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/pci/pcie_dw_common.c b/drivers/pci/pcie_dw_common.c index 74fb6df412c7..0673e516c6fe 100644 --- a/drivers/pci/pcie_dw_common.c +++ b/drivers/pci/pcie_dw_common.c @@ -8,7 +8,6 @@ * Copyright (C) 2018 Texas Instruments, Inc */
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_dw_meson.c b/drivers/pci/pcie_dw_meson.c index f953797908b8..bb78e7874b14 100644 --- a/drivers/pci/pcie_dw_meson.c +++ b/drivers/pci/pcie_dw_meson.c @@ -9,7 +9,6 @@ * Copyright (c) 2021 Rockchip, Inc. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index c41f3f153044..43b919175c92 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -10,10 +10,11 @@ * - drivers/pci/pcie_xilinx.c */
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <pci.h> +#include <time.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index bc4635f67136..1bad51fb3eb5 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -5,7 +5,6 @@ * Copyright (c) 2021 Rockchip, Inc. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_sifive.c b/drivers/pci/pcie_dw_sifive.c index fac3f1823724..6285edf4b037 100644 --- a/drivers/pci/pcie_dw_sifive.c +++ b/drivers/pci/pcie_dw_sifive.c @@ -14,7 +14,6 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index 4195a02de390..78a5d0358651 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Texas Instruments, Inc */
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c index f5bc6e3d92d6..3cb2bbbccb44 100644 --- a/drivers/pci/pcie_ecam_generic.c +++ b/drivers/pci/pcie_ecam_generic.c @@ -7,7 +7,6 @@ * Copyright (C) 2016 Imagination Technologies */
-#include <common.h> #include <dm.h> #include <pci.h> #include <linux/ioport.h> diff --git a/drivers/pci/pcie_ecam_synquacer.c b/drivers/pci/pcie_ecam_synquacer.c index e3e22891088e..fc855dfca4eb 100644 --- a/drivers/pci/pcie_ecam_synquacer.c +++ b/drivers/pci/pcie_ecam_synquacer.c @@ -8,7 +8,6 @@ * Copyright (C) 2021 Linaro Ltd. */
-#include <common.h> #include <dm.h> #include <pci.h> #include <log.h> diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index ec917ee7d5b8..18af23c9504e 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -6,7 +6,7 @@ * Author: Hou Zhiqiang Zhiqiang.Hou@nxp.com */
-#include <common.h> +#include <config.h> #include <dm.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/pci/pcie_fsl_fixup.c b/drivers/pci/pcie_fsl_fixup.c index f4e227895d17..9187e7af7461 100644 --- a/drivers/pci/pcie_fsl_fixup.c +++ b/drivers/pci/pcie_fsl_fixup.c @@ -6,7 +6,6 @@ * Author: Hou Zhiqiang Zhiqiang.Hou@nxp.com */
-#include <common.h> #ifdef CONFIG_OF_BOARD_SETUP #include <dm.h> #include <fdt_support.h> diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index 78f2c7d6bcdf..11c4ccbfc555 100644 --- a/drivers/pci/pcie_imx.c +++ b/drivers/pci/pcie_imx.c @@ -17,7 +17,6 @@ * those too in order to have a single modern PCIe iMX driver. */
-#include <common.h> #include <init.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index 60195cfe1b6e..959fd3690869 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_iproc.c b/drivers/pci/pcie_iproc.c index d6d3a9e20250..360ef1b011f2 100644 --- a/drivers/pci/pcie_iproc.c +++ b/drivers/pci/pcie_iproc.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 3c7c4ca18e8b..1be33095b9ce 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -5,7 +5,6 @@ * Layerscape PCIe driver */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c index 83f7eebd6277..3520488b3453 100644 --- a/drivers/pci/pcie_layerscape_ep.c +++ b/drivers/pci/pcie_layerscape_ep.c @@ -4,7 +4,7 @@ * Layerscape PCIe EP driver */
-#include <common.h> +#include <config.h> #include <asm/arch/fsl_serdes.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c index c5198353957b..ec4a7e7b6574 100644 --- a/drivers/pci/pcie_layerscape_fixup.c +++ b/drivers/pci/pcie_layerscape_fixup.c @@ -5,7 +5,6 @@ * Layerscape PCIe driver */
-#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c index 095874a92763..f37e37f6b153 100644 --- a/drivers/pci/pcie_layerscape_fixup_common.c +++ b/drivers/pci/pcie_layerscape_fixup_common.c @@ -7,10 +7,10 @@ * */
-#include <common.h> #include <init.h> #include <asm/arch/clock.h> #include <asm/arch/soc.h> +#include <linux/errno.h> #include <linux/libfdt.h> #include <fdt_support.h> #include "pcie_layerscape_fixup_common.h" diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c index 021c975869fd..57dc91f2faef 100644 --- a/drivers/pci/pcie_layerscape_gen4.c +++ b/drivers/pci/pcie_layerscape_gen4.c @@ -6,7 +6,7 @@ * Author: Hou Zhiqiang Minder.Hou@gmail.com */
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_gen4_fixup.c b/drivers/pci/pcie_layerscape_gen4_fixup.c index b2a45bf105c8..60c4338bcdb5 100644 --- a/drivers/pci/pcie_layerscape_gen4_fixup.c +++ b/drivers/pci/pcie_layerscape_gen4_fixup.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index 6a5bf88da234..e7913d43a8be 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -4,7 +4,6 @@ * Layerscape PCIe driver */
-#include <common.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_mediatek.c b/drivers/pci/pcie_mediatek.c index f0f34b5d1197..04d8cc29afd5 100644 --- a/drivers/pci/pcie_mediatek.c +++ b/drivers/pci/pcie_mediatek.c @@ -7,7 +7,6 @@ * Honghui Zhang honghui.zhang@mediatek.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c index 3bd1f5cd6d91..94de89bcad7b 100644 --- a/drivers/pci/pcie_phytium.c +++ b/drivers/pci/pcie_phytium.c @@ -7,7 +7,6 @@ * Copyright (C) 2019 */
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_plda_common.c b/drivers/pci/pcie_plda_common.c index cd74bb471163..622a5cee1099 100644 --- a/drivers/pci/pcie_plda_common.c +++ b/drivers/pci/pcie_plda_common.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c index 624841e9d8b8..19f9e58a640d 100644 --- a/drivers/pci/pcie_rockchip.c +++ b/drivers/pci/pcie_rockchip.c @@ -11,7 +11,6 @@ * Bits taken from Linux Rockchip PCIe host controller. */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_starfive_jh7110.c b/drivers/pci/pcie_starfive_jh7110.c index 903a544d37f6..569fbfd35c81 100644 --- a/drivers/pci/pcie_starfive_jh7110.c +++ b/drivers/pci/pcie_starfive_jh7110.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_uniphier.c b/drivers/pci/pcie_uniphier.c index f2edea9899a4..d1170b576bcd 100644 --- a/drivers/pci/pcie_uniphier.c +++ b/drivers/pci/pcie_uniphier.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index 3db460b5f936..a674ab04beee 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -5,7 +5,6 @@ * Copyright (C) 2016 Imagination Technologies */
-#include <common.h> #include <dm.h> #include <pci.h> #include <linux/bitops.h>

Hello Tom,
On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Stefan Roese sr@denx.de Cc: Tom Rini trini@konsulko.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Heiko Schocher hs@denx.de Cc: Simon Glass sjg@chromium.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: liuhao liuhao@phytium.com.cn Cc: shuyiqi shuyiqi@phytium.com.cn Cc: Minda Chen minda.chen@starfivetech.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Moritz Fischer moritzf@google.com Cc: This contributor prefers not to receive mails noreply@example.com Cc: Sergei Antonov saproj@gmail.com Cc: Nikhil M Jain n-jain1@ti.com Cc: Sam Edwards cfsworks@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Sumit Garg sumit.garg@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Ioana Ciornei ioana.ciornei@nxp.com Cc: Mathew McBride matt@traverse.com.au Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Mason Huo mason.huo@starfivetech.com Cc: Mayuresh Chitale mchitale@ventanamicro.com
drivers/pci/pci-aardvark.c | 1 - drivers/pci/pci-emul-uclass.c | 1 - drivers/pci/pci-rcar-gen2.c | 2 +- drivers/pci/pci-rcar-gen3.c | 1 - drivers/pci/pci-uclass.c | 1 - drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_common.c | 1 - drivers/pci/pci_common.c | 1 - drivers/pci/pci_compat.c | 1 - drivers/pci/pci_ftpci100.c | 1 - drivers/pci/pci_mpc85xx.c | 1 - drivers/pci/pci_mvebu.c | 1 - drivers/pci/pci_rom.c | 2 +- drivers/pci/pci_sandbox.c | 1 - drivers/pci/pci_sh7751.c | 2 +- drivers/pci/pci_tegra.c | 1 - drivers/pci/pci_x86.c | 1 - drivers/pci/pcie_apple.c | 1 - drivers/pci/pcie_brcmstb.c | 1 - drivers/pci/pcie_dw_common.c | 1 - drivers/pci/pcie_dw_meson.c | 1 - drivers/pci/pcie_dw_mvebu.c | 3 ++- drivers/pci/pcie_dw_rockchip.c | 1 - drivers/pci/pcie_dw_sifive.c | 1 - drivers/pci/pcie_dw_ti.c | 1 - drivers/pci/pcie_ecam_generic.c | 1 - drivers/pci/pcie_ecam_synquacer.c | 1 - drivers/pci/pcie_fsl.c | 2 +- drivers/pci/pcie_fsl_fixup.c | 1 - drivers/pci/pcie_imx.c | 1 - drivers/pci/pcie_intel_fpga.c | 1 - drivers/pci/pcie_iproc.c | 1 - drivers/pci/pcie_layerscape.c | 1 - drivers/pci/pcie_layerscape_ep.c | 2 +- drivers/pci/pcie_layerscape_fixup.c | 1 - drivers/pci/pcie_layerscape_fixup_common.c | 2 +- drivers/pci/pcie_layerscape_gen4.c | 2 +- drivers/pci/pcie_layerscape_gen4_fixup.c | 1 - drivers/pci/pcie_layerscape_rc.c | 1 - drivers/pci/pcie_mediatek.c | 1 - drivers/pci/pcie_phytium.c | 1 - drivers/pci/pcie_plda_common.c | 1 - drivers/pci/pcie_rockchip.c | 1 - drivers/pci/pcie_starfive_jh7110.c | 1 - drivers/pci/pcie_uniphier.c | 1 - drivers/pci/pcie_xilinx.c | 1 - 46 files changed, 10 insertions(+), 46 deletions(-)
Reviewed-by: Heiko Schocher hs@denx.de
bye, Heiko

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Stefan Roese sr@denx.de Cc: Tom Rini trini@konsulko.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Heiko Schocher hs@denx.de Cc: Simon Glass sjg@chromium.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: liuhao liuhao@phytium.com.cn Cc: shuyiqi shuyiqi@phytium.com.cn Cc: Minda Chen minda.chen@starfivetech.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Moritz Fischer moritzf@google.com Cc: This contributor prefers not to receive mails noreply@example.com Cc: Sergei Antonov saproj@gmail.com Cc: Nikhil M Jain n-jain1@ti.com Cc: Sam Edwards cfsworks@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Sumit Garg sumit.garg@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Ioana Ciornei ioana.ciornei@nxp.com Cc: Mathew McBride matt@traverse.com.au Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Mason Huo mason.huo@starfivetech.com Cc: Mayuresh Chitale mchitale@ventanamicro.com
drivers/pci/pci-aardvark.c | 1 - drivers/pci/pci-emul-uclass.c | 1 - drivers/pci/pci-rcar-gen2.c | 2 +- drivers/pci/pci-rcar-gen3.c | 1 - drivers/pci/pci-uclass.c | 1 - drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_common.c | 1 - drivers/pci/pci_common.c | 1 - drivers/pci/pci_compat.c | 1 - drivers/pci/pci_ftpci100.c | 1 - drivers/pci/pci_mpc85xx.c | 1 - drivers/pci/pci_mvebu.c | 1 - drivers/pci/pci_rom.c | 2 +- drivers/pci/pci_sandbox.c | 1 - drivers/pci/pci_sh7751.c | 2 +- drivers/pci/pci_tegra.c | 1 - drivers/pci/pci_x86.c | 1 - drivers/pci/pcie_apple.c | 1 - drivers/pci/pcie_brcmstb.c | 1 - drivers/pci/pcie_dw_common.c | 1 - drivers/pci/pcie_dw_meson.c | 1 - drivers/pci/pcie_dw_mvebu.c | 3 ++- drivers/pci/pcie_dw_rockchip.c | 1 - drivers/pci/pcie_dw_sifive.c | 1 - drivers/pci/pcie_dw_ti.c | 1 - drivers/pci/pcie_ecam_generic.c | 1 - drivers/pci/pcie_ecam_synquacer.c | 1 - drivers/pci/pcie_fsl.c | 2 +- drivers/pci/pcie_fsl_fixup.c | 1 - drivers/pci/pcie_imx.c | 1 - drivers/pci/pcie_intel_fpga.c | 1 - drivers/pci/pcie_iproc.c | 1 - drivers/pci/pcie_layerscape.c | 1 - drivers/pci/pcie_layerscape_ep.c | 2 +- drivers/pci/pcie_layerscape_fixup.c | 1 - drivers/pci/pcie_layerscape_fixup_common.c | 2 +- drivers/pci/pcie_layerscape_gen4.c | 2 +- drivers/pci/pcie_layerscape_gen4_fixup.c | 1 - drivers/pci/pcie_layerscape_rc.c | 1 - drivers/pci/pcie_mediatek.c | 1 - drivers/pci/pcie_phytium.c | 1 - drivers/pci/pcie_plda_common.c | 1 - drivers/pci/pcie_rockchip.c | 1 - drivers/pci/pcie_starfive_jh7110.c | 1 - drivers/pci/pcie_uniphier.c | 1 - drivers/pci/pcie_xilinx.c | 1 - 46 files changed, 10 insertions(+), 46 deletions(-)
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index af0e55cd2f2c..f5db4bdb7605 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -25,7 +25,6 @@
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/io.h> diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c index a0b8afb87a01..166ee9fcd431 100644 --- a/drivers/pci/pci-emul-uclass.c +++ b/drivers/pci/pci-emul-uclass.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c index b81eb3536896..12c31e74087f 100644 --- a/drivers/pci/pci-rcar-gen2.c +++ b/drivers/pci/pci-rcar-gen2.c @@ -5,7 +5,7 @@
- Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> +#include <config.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c index 1252ef74c581..76878246f1e0 100644 --- a/drivers/pci/pci-rcar-gen3.c +++ b/drivers/pci/pci-rcar-gen3.c @@ -15,7 +15,6 @@
- Author: Phil Edworthy phil.edworthy@renesas.com
*/
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 1a48256de036..6571e653049d 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PCI
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 01230360bad2..90f818864457 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -8,7 +8,7 @@
- Copyright (c) 2021 Maciej W. Rozycki macro@orcam.me.uk
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c index 2f4aff01049a..cfa818ed8218 100644 --- a/drivers/pci/pci_auto_common.c +++ b/drivers/pci/pci_auto_common.c @@ -11,7 +11,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index a18251297fd0..a57cf11cc537 100644 --- a/drivers/pci/pci_common.c +++ b/drivers/pci/pci_common.c @@ -9,7 +9,6 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/pci/pci_compat.c b/drivers/pci/pci_compat.c index 9dddca8efe07..8233925e525e 100644 --- a/drivers/pci/pci_compat.c +++ b/drivers/pci/pci_compat.c @@ -4,7 +4,6 @@
- Copyright (C) 2014 Google, Inc
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_ftpci100.c b/drivers/pci/pci_ftpci100.c index a1775445005a..43275b3d6a22 100644 --- a/drivers/pci/pci_ftpci100.c +++ b/drivers/pci/pci_ftpci100.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later
-#include <common.h> #include <pci.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 249cfe66466b..c07feba79768 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -4,7 +4,6 @@
- Heiko Schocher, DENX Software Engineering, hs@denx.de.
*/ -#include <common.h> #include <asm/bitops.h> #include <pci.h> #include <dm.h> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 83559550e6fb..77815513b768 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -10,7 +10,6 @@
- Pali Rohár pali@kernel.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 438583aa0179..78e5de937cdf 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -24,7 +24,6 @@
#define LOG_CATEGORY UCLASS_PCI
-#include <common.h> #include <bios_emul.h> #include <bloblist.h> #include <bootstage.h> @@ -36,6 +35,7 @@ #include <pci.h> #include <pci_rom.h> #include <spl.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <acpi/acpi_s3.h> diff --git a/drivers/pci/pci_sandbox.c b/drivers/pci/pci_sandbox.c index ca44d002371e..fed0850458d9 100644 --- a/drivers/pci/pci_sandbox.c +++ b/drivers/pci/pci_sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c index c1be56ce7a08..3cd01e9b94a2 100644 --- a/drivers/pci/pci_sh7751.c +++ b/drivers/pci/pci_sh7751.c @@ -5,7 +5,7 @@
- (C) 2007,2008 Nobuhiro Iwamatsu iwamatsu@nigauri.org
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <pci.h> #include <asm/processor.h> diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index d6374a58e330..bb8832c6ab96 100644 --- a/drivers/pci/pci_tegra.c +++ b/drivers/pci/pci_tegra.c @@ -11,7 +11,6 @@
#define pr_fmt(fmt) "tegra-pcie: " fmt
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pci/pci_x86.c b/drivers/pci/pci_x86.c index 8d036930e73b..ab76166451c7 100644 --- a/drivers/pci/pci_x86.c +++ b/drivers/pci/pci_x86.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/pci.h> diff --git a/drivers/pci/pcie_apple.c b/drivers/pci/pcie_apple.c index 21bafba3b0ee..6a8e715d4b6e 100644 --- a/drivers/pci/pcie_apple.c +++ b/drivers/pci/pcie_apple.c @@ -16,7 +16,6 @@
- Author: Marc Zyngier maz@kernel.org
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c index cd45f0bee9b7..f978c64365c3 100644 --- a/drivers/pci/pcie_brcmstb.c +++ b/drivers/pci/pcie_brcmstb.c @@ -12,7 +12,6 @@
- Copyright (C) 2020 Nicolas Saenz Julienne nsaenzjulienne@suse.de
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/pci/pcie_dw_common.c b/drivers/pci/pcie_dw_common.c index 74fb6df412c7..0673e516c6fe 100644 --- a/drivers/pci/pcie_dw_common.c +++ b/drivers/pci/pcie_dw_common.c @@ -8,7 +8,6 @@
- Copyright (C) 2018 Texas Instruments, Inc
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_dw_meson.c b/drivers/pci/pcie_dw_meson.c index f953797908b8..bb78e7874b14 100644 --- a/drivers/pci/pcie_dw_meson.c +++ b/drivers/pci/pcie_dw_meson.c @@ -9,7 +9,6 @@
- Copyright (c) 2021 Rockchip, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index c41f3f153044..43b919175c92 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -10,10 +10,11 @@
- drivers/pci/pcie_xilinx.c
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <pci.h> +#include <time.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index bc4635f67136..1bad51fb3eb5 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -5,7 +5,6 @@
- Copyright (c) 2021 Rockchip, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_sifive.c b/drivers/pci/pcie_dw_sifive.c index fac3f1823724..6285edf4b037 100644 --- a/drivers/pci/pcie_dw_sifive.c +++ b/drivers/pci/pcie_dw_sifive.c @@ -14,7 +14,6 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index 4195a02de390..78a5d0358651 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Texas Instruments, Inc
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c index f5bc6e3d92d6..3cb2bbbccb44 100644 --- a/drivers/pci/pcie_ecam_generic.c +++ b/drivers/pci/pcie_ecam_generic.c @@ -7,7 +7,6 @@
- Copyright (C) 2016 Imagination Technologies
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <linux/ioport.h> diff --git a/drivers/pci/pcie_ecam_synquacer.c b/drivers/pci/pcie_ecam_synquacer.c index e3e22891088e..fc855dfca4eb 100644 --- a/drivers/pci/pcie_ecam_synquacer.c +++ b/drivers/pci/pcie_ecam_synquacer.c @@ -8,7 +8,6 @@
- Copyright (C) 2021 Linaro Ltd.
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <log.h> diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index ec917ee7d5b8..18af23c9504e 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -6,7 +6,7 @@
- Author: Hou Zhiqiang Zhiqiang.Hou@nxp.com
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/pci/pcie_fsl_fixup.c b/drivers/pci/pcie_fsl_fixup.c index f4e227895d17..9187e7af7461 100644 --- a/drivers/pci/pcie_fsl_fixup.c +++ b/drivers/pci/pcie_fsl_fixup.c @@ -6,7 +6,6 @@
- Author: Hou Zhiqiang Zhiqiang.Hou@nxp.com
*/
-#include <common.h> #ifdef CONFIG_OF_BOARD_SETUP #include <dm.h> #include <fdt_support.h> diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index 78f2c7d6bcdf..11c4ccbfc555 100644 --- a/drivers/pci/pcie_imx.c +++ b/drivers/pci/pcie_imx.c @@ -17,7 +17,6 @@
- those too in order to have a single modern PCIe iMX driver.
*/
-#include <common.h> #include <init.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index 60195cfe1b6e..959fd3690869 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_iproc.c b/drivers/pci/pcie_iproc.c index d6d3a9e20250..360ef1b011f2 100644 --- a/drivers/pci/pcie_iproc.c +++ b/drivers/pci/pcie_iproc.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 3c7c4ca18e8b..1be33095b9ce 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -5,7 +5,6 @@
- Layerscape PCIe driver
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c index 83f7eebd6277..3520488b3453 100644 --- a/drivers/pci/pcie_layerscape_ep.c +++ b/drivers/pci/pcie_layerscape_ep.c @@ -4,7 +4,7 @@
- Layerscape PCIe EP driver
*/
-#include <common.h> +#include <config.h> #include <asm/arch/fsl_serdes.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c index c5198353957b..ec4a7e7b6574 100644 --- a/drivers/pci/pcie_layerscape_fixup.c +++ b/drivers/pci/pcie_layerscape_fixup.c @@ -5,7 +5,6 @@
- Layerscape PCIe driver
*/
-#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c index 095874a92763..f37e37f6b153 100644 --- a/drivers/pci/pcie_layerscape_fixup_common.c +++ b/drivers/pci/pcie_layerscape_fixup_common.c @@ -7,10 +7,10 @@
*/
-#include <common.h> #include <init.h> #include <asm/arch/clock.h> #include <asm/arch/soc.h> +#include <linux/errno.h> #include <linux/libfdt.h> #include <fdt_support.h> #include "pcie_layerscape_fixup_common.h" diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c index 021c975869fd..57dc91f2faef 100644 --- a/drivers/pci/pcie_layerscape_gen4.c +++ b/drivers/pci/pcie_layerscape_gen4.c @@ -6,7 +6,7 @@
- Author: Hou Zhiqiang Minder.Hou@gmail.com
*/
-#include <common.h> +#include <config.h> #include <log.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_gen4_fixup.c b/drivers/pci/pcie_layerscape_gen4_fixup.c index b2a45bf105c8..60c4338bcdb5 100644 --- a/drivers/pci/pcie_layerscape_gen4_fixup.c +++ b/drivers/pci/pcie_layerscape_gen4_fixup.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index 6a5bf88da234..e7913d43a8be 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -4,7 +4,6 @@
- Layerscape PCIe driver
*/
-#include <common.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_mediatek.c b/drivers/pci/pcie_mediatek.c index f0f34b5d1197..04d8cc29afd5 100644 --- a/drivers/pci/pcie_mediatek.c +++ b/drivers/pci/pcie_mediatek.c @@ -7,7 +7,6 @@
Honghui Zhang <honghui.zhang@mediatek.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c index 3bd1f5cd6d91..94de89bcad7b 100644 --- a/drivers/pci/pcie_phytium.c +++ b/drivers/pci/pcie_phytium.c @@ -7,7 +7,6 @@
- Copyright (C) 2019
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_plda_common.c b/drivers/pci/pcie_plda_common.c index cd74bb471163..622a5cee1099 100644 --- a/drivers/pci/pcie_plda_common.c +++ b/drivers/pci/pcie_plda_common.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c index 624841e9d8b8..19f9e58a640d 100644 --- a/drivers/pci/pcie_rockchip.c +++ b/drivers/pci/pcie_rockchip.c @@ -11,7 +11,6 @@
- Bits taken from Linux Rockchip PCIe host controller.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_starfive_jh7110.c b/drivers/pci/pcie_starfive_jh7110.c index 903a544d37f6..569fbfd35c81 100644 --- a/drivers/pci/pcie_starfive_jh7110.c +++ b/drivers/pci/pcie_starfive_jh7110.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_uniphier.c b/drivers/pci/pcie_uniphier.c index f2edea9899a4..d1170b576bcd 100644 --- a/drivers/pci/pcie_uniphier.c +++ b/drivers/pci/pcie_uniphier.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index 3db460b5f936..a674ab04beee 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -5,7 +5,6 @@
- Copyright (C) 2016 Imagination Technologies
*/
-#include <common.h> #include <dm.h> #include <pci.h> #include <linux/bitops.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Ramon Fried rfried.dev@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- drivers/pci_endpoint/pci_ep-uclass.c | 1 - drivers/pci_endpoint/pcie-cadence-ep.c | 1 - drivers/pci_endpoint/sandbox-pci_ep.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c index 6ee4cfbdb4a8..902d1a51eaa3 100644 --- a/drivers/pci_endpoint/pci_ep-uclass.c +++ b/drivers/pci_endpoint/pci_ep-uclass.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_PCI_EP
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pci_endpoint/pcie-cadence-ep.c b/drivers/pci_endpoint/pcie-cadence-ep.c index d58c64982b27..e02ea14e4e4a 100644 --- a/drivers/pci_endpoint/pcie-cadence-ep.c +++ b/drivers/pci_endpoint/pcie-cadence-ep.c @@ -4,7 +4,6 @@ * Written by Ramon Fried ramon.fried@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci_ep.h> diff --git a/drivers/pci_endpoint/sandbox-pci_ep.c b/drivers/pci_endpoint/sandbox-pci_ep.c index de148cddb91e..aa623fa357d5 100644 --- a/drivers/pci_endpoint/sandbox-pci_ep.c +++ b/drivers/pci_endpoint/sandbox-pci_ep.c @@ -3,7 +3,6 @@ * Copyright (c) 2019 Ramon Fried ramon.fried@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Sean Anderson seanga2@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Tim Harvey tharvey@gateworks.com Cc: Fabio Estevam festevam@denx.de Cc: Adam Ford aford173@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Ren Jianing jianing.ren@rock-chips.com Cc: Frank Wang frank.wang@rock-chips.com Cc: Siddharth Vadapalli s-vadapalli@ti.com Cc: Ravi Gunasekaran r-gunasekaran@ti.com --- drivers/phy/allwinner/phy-sun4i-usb.c | 1 - drivers/phy/bcm6318-usbh-phy.c | 1 - drivers/phy/bcm6348-usbh-phy.c | 1 - drivers/phy/bcm6358-usbh-phy.c | 1 - drivers/phy/bcm6368-usbh-phy.c | 1 - drivers/phy/cadence/phy-cadence-sierra.c | 1 - drivers/phy/cadence/phy-cadence-torrent.c | 1 - drivers/phy/keystone-usb-phy.c | 1 - drivers/phy/marvell/comphy_a3700.c | 1 - drivers/phy/marvell/comphy_core.c | 1 - drivers/phy/marvell/comphy_cp110.c | 2 +- drivers/phy/marvell/comphy_mux.c | 1 - drivers/phy/meson-axg-mipi-dphy.c | 1 - drivers/phy/meson-axg-mipi-pcie-analog.c | 1 - drivers/phy/meson-g12a-usb2.c | 1 - drivers/phy/meson-g12a-usb3-pcie.c | 1 - drivers/phy/meson-gxbb-usb2.c | 1 - drivers/phy/meson-gxl-usb2.c | 1 - drivers/phy/mt76x8-usb-phy.c | 1 - drivers/phy/nop-phy.c | 1 - drivers/phy/omap-usb2-phy.c | 1 - drivers/phy/phy-ab8500-usb.c | 1 - drivers/phy/phy-apple-atc.c | 1 - drivers/phy/phy-bcm-sr-pcie.c | 1 - drivers/phy/phy-core-mipi-dphy.c | 2 +- drivers/phy/phy-da8xx-usb.c | 2 +- drivers/phy/phy-imx8mq-usb.c | 1 - drivers/phy/phy-mtk-tphy.c | 1 - drivers/phy/phy-npcm-usb.c | 1 - drivers/phy/phy-rcar-gen2.c | 1 - drivers/phy/phy-rcar-gen3.c | 1 - drivers/phy/phy-stm32-usbphyc.c | 1 - drivers/phy/phy-ti-am654.c | 1 - drivers/phy/phy-uclass.c | 1 - drivers/phy/phy-zynqmp.c | 1 - drivers/phy/qcom/msm8916-usbh-phy.c | 1 - drivers/phy/qcom/phy-qcom-ipq4019-usb.c | 1 - drivers/phy/qcom/phy-qcom-usb-hs-28nm.c | 1 - drivers/phy/qcom/phy-qcom-usb-ss.c | 1 - drivers/phy/renesas/r8a779f0-ether-serdes.c | 1 - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 1 - drivers/phy/rockchip/phy-rockchip-pcie.c | 1 - drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 1 - drivers/phy/rockchip/phy-rockchip-typec.c | 1 - drivers/phy/rockchip/phy-rockchip-usbdp.c | 1 - drivers/phy/sandbox-phy.c | 1 - drivers/phy/socionext/phy-uniphier-pcie.c | 1 - drivers/phy/socionext/phy-uniphier-usb3.c | 1 - drivers/phy/sti_usb_phy.c | 1 - drivers/phy/ti-pipe3-phy.c | 1 - drivers/phy/ti/phy-j721e-wiz.c | 1 - 51 files changed, 3 insertions(+), 51 deletions(-)
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 6624e9134f43..b9306c9a8279 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -10,7 +10,6 @@ * SPDX-License-Identifier: GPL-2.0+ */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index a2fa446cb1c9..d715541bd4cb 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -7,7 +7,6 @@ * Copyright 2013 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index 857fb575ef19..ffb37b634a31 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -7,7 +7,6 @@ * Copyright 2013 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index bfdcfb0d245e..a8d24609bfc0 100644 --- a/drivers/phy/bcm6358-usbh-phy.c +++ b/drivers/phy/bcm6358-usbh-phy.c @@ -7,7 +7,6 @@ * Copyright 2013 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 1a2870d51499..5bee130425d5 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -7,7 +7,6 @@ * Copyright 2013 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 4bb8a0ca7f34..f5e23f36c56e 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -11,7 +11,6 @@ * Jean-Jacques Hiblot jjhiblot@ti.com * */ -#include <common.h> #include <clk.h> #include <linux/delay.h> #include <linux/clk-provider.h> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index ef924e7af508..d4e8ece4935a 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -10,7 +10,6 @@ * */
-#include <common.h> #include <clk.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index 3bb9c0814c14..cfc15203d632 100644 --- a/drivers/phy/keystone-usb-phy.c +++ b/drivers/phy/keystone-usb-phy.c @@ -4,7 +4,6 @@ * Written by Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c index c490dc69c695..bca325d19960 100644 --- a/drivers/phy/marvell/comphy_a3700.c +++ b/drivers/phy/marvell/comphy_a3700.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */
-#include <common.h> #include <fdt_support.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index 7272dfb9fe80..a666a4e794ee 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -5,7 +5,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c index bb15fbaf347e..b8cdedf6edf0 100644 --- a/drivers/phy/marvell/comphy_cp110.c +++ b/drivers/phy/marvell/comphy_cp110.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/global_data.h> @@ -12,6 +11,7 @@ #include <asm/arch/cpu.h> #include <asm/arch/soc.h> #include <linux/delay.h> +#include <linux/errno.h> #include <linux/printk.h>
#include "comphy_core.h" diff --git a/drivers/phy/marvell/comphy_mux.c b/drivers/phy/marvell/comphy_mux.c index 10981d25ec95..a8aa37fc46f3 100644 --- a/drivers/phy/marvell/comphy_mux.c +++ b/drivers/phy/marvell/comphy_mux.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */
-#include <common.h> #include <log.h> #include <asm/io.h>
diff --git a/drivers/phy/meson-axg-mipi-dphy.c b/drivers/phy/meson-axg-mipi-dphy.c index faa1d9d6d378..3f89de19970b 100644 --- a/drivers/phy/meson-axg-mipi-dphy.c +++ b/drivers/phy/meson-axg-mipi-dphy.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 236ea1ce5ca7..731917cef434 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index 3958d2404b85..8cded12438b9 100644 --- a/drivers/phy/meson-g12a-usb2.c +++ b/drivers/phy/meson-g12a-usb2.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstron@baylibre.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb3-pcie.c b/drivers/phy/meson-g12a-usb3-pcie.c index 1eaff410efa4..4d183867c3a0 100644 --- a/drivers/phy/meson-g12a-usb3-pcie.c +++ b/drivers/phy/meson-g12a-usb3-pcie.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstron@baylibre.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c index 725b056a71a7..4c88ccf39276 100644 --- a/drivers/phy/meson-gxbb-usb2.c +++ b/drivers/phy/meson-gxbb-usb2.c @@ -8,7 +8,6 @@ * Author: Beniamino Galvani b.galvani@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/meson-gxl-usb2.c b/drivers/phy/meson-gxl-usb2.c index d633effa4042..92c285103c4a 100644 --- a/drivers/phy/meson-gxl-usb2.c +++ b/drivers/phy/meson-gxl-usb2.c @@ -7,7 +7,6 @@ * Author: Neil Armstrong narmstron@baylibre.com */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <bitfield.h> diff --git a/drivers/phy/mt76x8-usb-phy.c b/drivers/phy/mt76x8-usb-phy.c index 4069208b6790..99f8a221f5a1 100644 --- a/drivers/phy/mt76x8-usb-phy.c +++ b/drivers/phy/mt76x8-usb-phy.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index c53e3216d0fd..286171cba76a 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/phy/nop-phy.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device.h> #include <dm/device_compat.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index d3d38062ecf7..2be0178882a4 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -6,7 +6,6 @@ * Written by Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/phy/phy-ab8500-usb.c b/drivers/phy/phy-ab8500-usb.c index 3d3d48c9733a..5de7b6f86cca 100644 --- a/drivers/phy/phy-ab8500-usb.c +++ b/drivers/phy/phy-ab8500-usb.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/phy-apple-atc.c b/drivers/phy/phy-apple-atc.c index 15c5b8a1c2d0..78eedf676b09 100644 --- a/drivers/phy/phy-apple-atc.c +++ b/drivers/phy/phy-apple-atc.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-bcm-sr-pcie.c b/drivers/phy/phy-bcm-sr-pcie.c index cf33bab37072..97859a0cb87e 100644 --- a/drivers/phy/phy-bcm-sr-pcie.c +++ b/drivers/phy/phy-bcm-sr-pcie.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 Broadcom */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <asm/io.h> diff --git a/drivers/phy/phy-core-mipi-dphy.c b/drivers/phy/phy-core-mipi-dphy.c index bb61816add27..8fb985a1e682 100644 --- a/drivers/phy/phy-core-mipi-dphy.c +++ b/drivers/phy/phy-core-mipi-dphy.c @@ -4,8 +4,8 @@ * Copyright (C) 2018 Cadence Design Systems Inc. */
-#include <common.h> #include <div64.h> +#include <linux/kernel.h> #include <linux/time.h>
#include <phy-mipi-dphy.h> diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index d025188eae98..cf26aaaa3d82 100644 --- a/drivers/phy/phy-da8xx-usb.c +++ b/drivers/phy/phy-da8xx-usb.c @@ -6,9 +6,9 @@ * DT support added by: Adam Ford aford173@gmail.com */
-#include <common.h> #include <dm.h> #include <log.h> +#include <time.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <asm/arch/hardware.h> diff --git a/drivers/phy/phy-imx8mq-usb.c b/drivers/phy/phy-imx8mq-usb.c index e5e96e77a681..75763046adc1 100644 --- a/drivers/phy/phy-imx8mq-usb.c +++ b/drivers/phy/phy-imx8mq-usb.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index ea9edf212c6f..6f9ac1528e88 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -5,7 +5,6 @@ * Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-npcm-usb.c b/drivers/phy/phy-npcm-usb.c index 24eba6655435..028fedf92dc3 100644 --- a/drivers/phy/phy-npcm-usb.c +++ b/drivers/phy/phy-npcm-usb.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <regmap.h> diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index e528c4ec5793..f9428c7ad122 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-rcar-gen3.c b/drivers/phy/phy-rcar-gen3.c index 03c747b373b1..7c292cae0e2f 100644 --- a/drivers/phy/phy-rcar-gen3.c +++ b/drivers/phy/phy-rcar-gen3.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index 000e495dbd4e..8d643b762f90 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index 70a746d2c92d..c3d9972397aa 100644 --- a/drivers/phy/phy-ti-am654.c +++ b/drivers/phy/phy-ti-am654.c @@ -6,7 +6,6 @@ * Author: Kishon Vijay Abraham I kishon@ti.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index 0dcfe258bc44..acdcda15b5b8 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy-zynqmp.c index d1288bb17f3c..7049e740d569 100644 --- a/drivers/phy/phy-zynqmp.c +++ b/drivers/phy/phy-zynqmp.c @@ -9,7 +9,6 @@ * Author: Laurent Pinchart laurent.pinchart@ideasonboard.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/qcom/msm8916-usbh-phy.c b/drivers/phy/qcom/msm8916-usbh-phy.c index f52046f7cb02..4b435aa2a6eb 100644 --- a/drivers/phy/qcom/msm8916-usbh-phy.c +++ b/drivers/phy/qcom/msm8916-usbh-phy.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Ramon Fried ramon.fried@gmail.com */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c index 5808489249f5..3b647324e021 100644 --- a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c index 05a9a2cf1d7c..c344809a6086 100644 --- a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c +++ b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c @@ -5,7 +5,6 @@ * Based on Linux driver */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-ss.c b/drivers/phy/qcom/phy-qcom-usb-ss.c index 1b03a3c43dc8..270d09d883c4 100644 --- a/drivers/phy/qcom/phy-qcom-usb-ss.c +++ b/drivers/phy/qcom/phy-qcom-usb-ss.c @@ -5,7 +5,6 @@ * Based on Linux driver */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/renesas/r8a779f0-ether-serdes.c b/drivers/phy/renesas/r8a779f0-ether-serdes.c index bd1fdd3a667d..40284ef2fd34 100644 --- a/drivers/phy/renesas/r8a779f0-ether-serdes.c +++ b/drivers/phy/renesas/r8a779f0-ether-serdes.c @@ -7,7 +7,6 @@ #include <asm/io.h> #include <clk-uclass.h> #include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index 9ca66bf8db92..3ad339bccc1d 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 44ca4bc7919e..660037034ec0 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -7,7 +7,6 @@ * Copyright (C) 2016 ROCKCHIP, Inc. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c index a4392daf4c92..2737bd81dd96 100644 --- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index 47c69dd6c453..c7459dbc5fc6 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -8,7 +8,6 @@ * Kever Yang kever.yang@rock-chips.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index baf92529348c..5bcc76613d14 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c index 7e123da25fb4..b159147a765b 100644 --- a/drivers/phy/sandbox-phy.c +++ b/drivers/phy/sandbox-phy.c @@ -4,7 +4,6 @@ * Written by Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/socionext/phy-uniphier-pcie.c b/drivers/phy/socionext/phy-uniphier-pcie.c index d352c4ca3a9c..91208dfe1200 100644 --- a/drivers/phy/socionext/phy-uniphier-pcie.c +++ b/drivers/phy/socionext/phy-uniphier-pcie.c @@ -4,7 +4,6 @@ * Copyright 2019-2021 Socionext, Inc. */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/socionext/phy-uniphier-usb3.c b/drivers/phy/socionext/phy-uniphier-usb3.c index 1d65b0b08f76..1d65c1f7da52 100644 --- a/drivers/phy/socionext/phy-uniphier-usb3.c +++ b/drivers/phy/socionext/phy-uniphier-usb3.c @@ -4,7 +4,6 @@ * Copyright 2019-2023 Socionext, Inc. */
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index 9e5ac9bfde67..2447e89f50df 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -4,7 +4,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index 29a35ae5ffb9..62f6cc2bfbfd 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -4,7 +4,6 @@ * Written by Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <dm.h> #include <dm/device.h> #include <generic-phy.h> diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index daf62f5deda0..c69a342e2b49 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -4,7 +4,6 @@ * Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Sean Anderson seanga2@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Tim Harvey tharvey@gateworks.com Cc: Fabio Estevam festevam@denx.de Cc: Adam Ford aford173@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Ren Jianing jianing.ren@rock-chips.com Cc: Frank Wang frank.wang@rock-chips.com Cc: Siddharth Vadapalli s-vadapalli@ti.com Cc: Ravi Gunasekaran r-gunasekaran@ti.com
drivers/phy/allwinner/phy-sun4i-usb.c | 1 - drivers/phy/bcm6318-usbh-phy.c | 1 - drivers/phy/bcm6348-usbh-phy.c | 1 - drivers/phy/bcm6358-usbh-phy.c | 1 - drivers/phy/bcm6368-usbh-phy.c | 1 - drivers/phy/cadence/phy-cadence-sierra.c | 1 - drivers/phy/cadence/phy-cadence-torrent.c | 1 - drivers/phy/keystone-usb-phy.c | 1 - drivers/phy/marvell/comphy_a3700.c | 1 - drivers/phy/marvell/comphy_core.c | 1 - drivers/phy/marvell/comphy_cp110.c | 2 +- drivers/phy/marvell/comphy_mux.c | 1 - drivers/phy/meson-axg-mipi-dphy.c | 1 - drivers/phy/meson-axg-mipi-pcie-analog.c | 1 - drivers/phy/meson-g12a-usb2.c | 1 - drivers/phy/meson-g12a-usb3-pcie.c | 1 - drivers/phy/meson-gxbb-usb2.c | 1 - drivers/phy/meson-gxl-usb2.c | 1 - drivers/phy/mt76x8-usb-phy.c | 1 - drivers/phy/nop-phy.c | 1 - drivers/phy/omap-usb2-phy.c | 1 - drivers/phy/phy-ab8500-usb.c | 1 - drivers/phy/phy-apple-atc.c | 1 - drivers/phy/phy-bcm-sr-pcie.c | 1 - drivers/phy/phy-core-mipi-dphy.c | 2 +- drivers/phy/phy-da8xx-usb.c | 2 +- drivers/phy/phy-imx8mq-usb.c | 1 - drivers/phy/phy-mtk-tphy.c | 1 - drivers/phy/phy-npcm-usb.c | 1 - drivers/phy/phy-rcar-gen2.c | 1 - drivers/phy/phy-rcar-gen3.c | 1 - drivers/phy/phy-stm32-usbphyc.c | 1 - drivers/phy/phy-ti-am654.c | 1 - drivers/phy/phy-uclass.c | 1 - drivers/phy/phy-zynqmp.c | 1 - drivers/phy/qcom/msm8916-usbh-phy.c | 1 - drivers/phy/qcom/phy-qcom-ipq4019-usb.c | 1 - drivers/phy/qcom/phy-qcom-usb-hs-28nm.c | 1 - drivers/phy/qcom/phy-qcom-usb-ss.c | 1 - drivers/phy/renesas/r8a779f0-ether-serdes.c | 1 - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 1 - drivers/phy/rockchip/phy-rockchip-pcie.c | 1 - drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 1 - drivers/phy/rockchip/phy-rockchip-typec.c | 1 - drivers/phy/rockchip/phy-rockchip-usbdp.c | 1 - drivers/phy/sandbox-phy.c | 1 - drivers/phy/socionext/phy-uniphier-pcie.c | 1 - drivers/phy/socionext/phy-uniphier-usb3.c | 1 - drivers/phy/sti_usb_phy.c | 1 - drivers/phy/ti-pipe3-phy.c | 1 - drivers/phy/ti/phy-j721e-wiz.c | 1 - 51 files changed, 3 insertions(+), 51 deletions(-)
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 6624e9134f43..b9306c9a8279 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -10,7 +10,6 @@
- SPDX-License-Identifier: GPL-2.0+
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index a2fa446cb1c9..d715541bd4cb 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index 857fb575ef19..ffb37b634a31 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index bfdcfb0d245e..a8d24609bfc0 100644 --- a/drivers/phy/bcm6358-usbh-phy.c +++ b/drivers/phy/bcm6358-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 1a2870d51499..5bee130425d5 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 4bb8a0ca7f34..f5e23f36c56e 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -11,7 +11,6 @@
- Jean-Jacques Hiblot jjhiblot@ti.com
*/ -#include <common.h> #include <clk.h> #include <linux/delay.h> #include <linux/clk-provider.h> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index ef924e7af508..d4e8ece4935a 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <clk.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index 3bb9c0814c14..cfc15203d632 100644 --- a/drivers/phy/keystone-usb-phy.c +++ b/drivers/phy/keystone-usb-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c index c490dc69c695..bca325d19960 100644 --- a/drivers/phy/marvell/comphy_a3700.c +++ b/drivers/phy/marvell/comphy_a3700.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <fdt_support.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index 7272dfb9fe80..a666a4e794ee 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -5,7 +5,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c index bb15fbaf347e..b8cdedf6edf0 100644 --- a/drivers/phy/marvell/comphy_cp110.c +++ b/drivers/phy/marvell/comphy_cp110.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/global_data.h> @@ -12,6 +11,7 @@ #include <asm/arch/cpu.h> #include <asm/arch/soc.h> #include <linux/delay.h> +#include <linux/errno.h> #include <linux/printk.h>
#include "comphy_core.h" diff --git a/drivers/phy/marvell/comphy_mux.c b/drivers/phy/marvell/comphy_mux.c index 10981d25ec95..a8aa37fc46f3 100644 --- a/drivers/phy/marvell/comphy_mux.c +++ b/drivers/phy/marvell/comphy_mux.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <log.h> #include <asm/io.h>
diff --git a/drivers/phy/meson-axg-mipi-dphy.c b/drivers/phy/meson-axg-mipi-dphy.c index faa1d9d6d378..3f89de19970b 100644 --- a/drivers/phy/meson-axg-mipi-dphy.c +++ b/drivers/phy/meson-axg-mipi-dphy.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 236ea1ce5ca7..731917cef434 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index 3958d2404b85..8cded12438b9 100644 --- a/drivers/phy/meson-g12a-usb2.c +++ b/drivers/phy/meson-g12a-usb2.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb3-pcie.c b/drivers/phy/meson-g12a-usb3-pcie.c index 1eaff410efa4..4d183867c3a0 100644 --- a/drivers/phy/meson-g12a-usb3-pcie.c +++ b/drivers/phy/meson-g12a-usb3-pcie.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c index 725b056a71a7..4c88ccf39276 100644 --- a/drivers/phy/meson-gxbb-usb2.c +++ b/drivers/phy/meson-gxbb-usb2.c @@ -8,7 +8,6 @@
- Author: Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/meson-gxl-usb2.c b/drivers/phy/meson-gxl-usb2.c index d633effa4042..92c285103c4a 100644 --- a/drivers/phy/meson-gxl-usb2.c +++ b/drivers/phy/meson-gxl-usb2.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <bitfield.h> diff --git a/drivers/phy/mt76x8-usb-phy.c b/drivers/phy/mt76x8-usb-phy.c index 4069208b6790..99f8a221f5a1 100644 --- a/drivers/phy/mt76x8-usb-phy.c +++ b/drivers/phy/mt76x8-usb-phy.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index c53e3216d0fd..286171cba76a 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/phy/nop-phy.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device.h> #include <dm/device_compat.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index d3d38062ecf7..2be0178882a4 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -6,7 +6,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/phy/phy-ab8500-usb.c b/drivers/phy/phy-ab8500-usb.c index 3d3d48c9733a..5de7b6f86cca 100644 --- a/drivers/phy/phy-ab8500-usb.c +++ b/drivers/phy/phy-ab8500-usb.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/phy-apple-atc.c b/drivers/phy/phy-apple-atc.c index 15c5b8a1c2d0..78eedf676b09 100644 --- a/drivers/phy/phy-apple-atc.c +++ b/drivers/phy/phy-apple-atc.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-bcm-sr-pcie.c b/drivers/phy/phy-bcm-sr-pcie.c index cf33bab37072..97859a0cb87e 100644 --- a/drivers/phy/phy-bcm-sr-pcie.c +++ b/drivers/phy/phy-bcm-sr-pcie.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Broadcom
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <asm/io.h> diff --git a/drivers/phy/phy-core-mipi-dphy.c b/drivers/phy/phy-core-mipi-dphy.c index bb61816add27..8fb985a1e682 100644 --- a/drivers/phy/phy-core-mipi-dphy.c +++ b/drivers/phy/phy-core-mipi-dphy.c @@ -4,8 +4,8 @@
- Copyright (C) 2018 Cadence Design Systems Inc.
*/
-#include <common.h> #include <div64.h> +#include <linux/kernel.h> #include <linux/time.h>
#include <phy-mipi-dphy.h> diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index d025188eae98..cf26aaaa3d82 100644 --- a/drivers/phy/phy-da8xx-usb.c +++ b/drivers/phy/phy-da8xx-usb.c @@ -6,9 +6,9 @@
- DT support added by: Adam Ford aford173@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> +#include <time.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <asm/arch/hardware.h> diff --git a/drivers/phy/phy-imx8mq-usb.c b/drivers/phy/phy-imx8mq-usb.c index e5e96e77a681..75763046adc1 100644 --- a/drivers/phy/phy-imx8mq-usb.c +++ b/drivers/phy/phy-imx8mq-usb.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index ea9edf212c6f..6f9ac1528e88 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -5,7 +5,6 @@
Ryder Lee <ryder.lee@mediatek.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-npcm-usb.c b/drivers/phy/phy-npcm-usb.c index 24eba6655435..028fedf92dc3 100644 --- a/drivers/phy/phy-npcm-usb.c +++ b/drivers/phy/phy-npcm-usb.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <regmap.h> diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index e528c4ec5793..f9428c7ad122 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-rcar-gen3.c b/drivers/phy/phy-rcar-gen3.c index 03c747b373b1..7c292cae0e2f 100644 --- a/drivers/phy/phy-rcar-gen3.c +++ b/drivers/phy/phy-rcar-gen3.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index 000e495dbd4e..8d643b762f90 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index 70a746d2c92d..c3d9972397aa 100644 --- a/drivers/phy/phy-ti-am654.c +++ b/drivers/phy/phy-ti-am654.c @@ -6,7 +6,6 @@
- Author: Kishon Vijay Abraham I kishon@ti.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index 0dcfe258bc44..acdcda15b5b8 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy-zynqmp.c index d1288bb17f3c..7049e740d569 100644 --- a/drivers/phy/phy-zynqmp.c +++ b/drivers/phy/phy-zynqmp.c @@ -9,7 +9,6 @@
- Author: Laurent Pinchart laurent.pinchart@ideasonboard.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/qcom/msm8916-usbh-phy.c b/drivers/phy/qcom/msm8916-usbh-phy.c index f52046f7cb02..4b435aa2a6eb 100644 --- a/drivers/phy/qcom/msm8916-usbh-phy.c +++ b/drivers/phy/qcom/msm8916-usbh-phy.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Ramon Fried ramon.fried@gmail.com
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c index 5808489249f5..3b647324e021 100644 --- a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c index 05a9a2cf1d7c..c344809a6086 100644 --- a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c +++ b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c @@ -5,7 +5,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-ss.c b/drivers/phy/qcom/phy-qcom-usb-ss.c index 1b03a3c43dc8..270d09d883c4 100644 --- a/drivers/phy/qcom/phy-qcom-usb-ss.c +++ b/drivers/phy/qcom/phy-qcom-usb-ss.c @@ -5,7 +5,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/renesas/r8a779f0-ether-serdes.c b/drivers/phy/renesas/r8a779f0-ether-serdes.c index bd1fdd3a667d..40284ef2fd34 100644 --- a/drivers/phy/renesas/r8a779f0-ether-serdes.c +++ b/drivers/phy/renesas/r8a779f0-ether-serdes.c @@ -7,7 +7,6 @@ #include <asm/io.h> #include <clk-uclass.h> #include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index 9ca66bf8db92..3ad339bccc1d 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 44ca4bc7919e..660037034ec0 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -7,7 +7,6 @@
- Copyright (C) 2016 ROCKCHIP, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c index a4392daf4c92..2737bd81dd96 100644 --- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index 47c69dd6c453..c7459dbc5fc6 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -8,7 +8,6 @@
Kever Yang <kever.yang@rock-chips.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index baf92529348c..5bcc76613d14 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c index 7e123da25fb4..b159147a765b 100644 --- a/drivers/phy/sandbox-phy.c +++ b/drivers/phy/sandbox-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/socionext/phy-uniphier-pcie.c b/drivers/phy/socionext/phy-uniphier-pcie.c index d352c4ca3a9c..91208dfe1200 100644 --- a/drivers/phy/socionext/phy-uniphier-pcie.c +++ b/drivers/phy/socionext/phy-uniphier-pcie.c @@ -4,7 +4,6 @@
- Copyright 2019-2021 Socionext, Inc.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/socionext/phy-uniphier-usb3.c b/drivers/phy/socionext/phy-uniphier-usb3.c index 1d65b0b08f76..1d65c1f7da52 100644 --- a/drivers/phy/socionext/phy-uniphier-usb3.c +++ b/drivers/phy/socionext/phy-uniphier-usb3.c @@ -4,7 +4,6 @@
- Copyright 2019-2023 Socionext, Inc.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index 9e5ac9bfde67..2447e89f50df 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index 29a35ae5ffb9..62f6cc2bfbfd 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <dm/device.h> #include <generic-phy.h> diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index daf62f5deda0..c69a342e2b49 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -4,7 +4,6 @@
- Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Tom Rini trini@konsulko.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Mark Kettenis kettenis@openbsd.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Sean Anderson seanga2@gmail.com Cc: Nishanth Menon nm@ti.com Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Tim Harvey tharvey@gateworks.com Cc: Fabio Estevam festevam@denx.de Cc: Adam Ford aford173@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Johan Jonker jbx6244@gmail.com Cc: Jon Lin jon.lin@rock-chips.com Cc: Ren Jianing jianing.ren@rock-chips.com Cc: Frank Wang frank.wang@rock-chips.com Cc: Siddharth Vadapalli s-vadapalli@ti.com Cc: Ravi Gunasekaran r-gunasekaran@ti.com
drivers/phy/allwinner/phy-sun4i-usb.c | 1 - drivers/phy/bcm6318-usbh-phy.c | 1 - drivers/phy/bcm6348-usbh-phy.c | 1 - drivers/phy/bcm6358-usbh-phy.c | 1 - drivers/phy/bcm6368-usbh-phy.c | 1 - drivers/phy/cadence/phy-cadence-sierra.c | 1 - drivers/phy/cadence/phy-cadence-torrent.c | 1 - drivers/phy/keystone-usb-phy.c | 1 - drivers/phy/marvell/comphy_a3700.c | 1 - drivers/phy/marvell/comphy_core.c | 1 - drivers/phy/marvell/comphy_cp110.c | 2 +- drivers/phy/marvell/comphy_mux.c | 1 - drivers/phy/meson-axg-mipi-dphy.c | 1 - drivers/phy/meson-axg-mipi-pcie-analog.c | 1 - drivers/phy/meson-g12a-usb2.c | 1 - drivers/phy/meson-g12a-usb3-pcie.c | 1 - drivers/phy/meson-gxbb-usb2.c | 1 - drivers/phy/meson-gxl-usb2.c | 1 - drivers/phy/mt76x8-usb-phy.c | 1 - drivers/phy/nop-phy.c | 1 - drivers/phy/omap-usb2-phy.c | 1 - drivers/phy/phy-ab8500-usb.c | 1 - drivers/phy/phy-apple-atc.c | 1 - drivers/phy/phy-bcm-sr-pcie.c | 1 - drivers/phy/phy-core-mipi-dphy.c | 2 +- drivers/phy/phy-da8xx-usb.c | 2 +- drivers/phy/phy-imx8mq-usb.c | 1 - drivers/phy/phy-mtk-tphy.c | 1 - drivers/phy/phy-npcm-usb.c | 1 - drivers/phy/phy-rcar-gen2.c | 1 - drivers/phy/phy-rcar-gen3.c | 1 - drivers/phy/phy-stm32-usbphyc.c | 1 - drivers/phy/phy-ti-am654.c | 1 - drivers/phy/phy-uclass.c | 1 - drivers/phy/phy-zynqmp.c | 1 - drivers/phy/qcom/msm8916-usbh-phy.c | 1 - drivers/phy/qcom/phy-qcom-ipq4019-usb.c | 1 - drivers/phy/qcom/phy-qcom-usb-hs-28nm.c | 1 - drivers/phy/qcom/phy-qcom-usb-ss.c | 1 - drivers/phy/renesas/r8a779f0-ether-serdes.c | 1 - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 1 - drivers/phy/rockchip/phy-rockchip-pcie.c | 1 - drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 1 - drivers/phy/rockchip/phy-rockchip-typec.c | 1 - drivers/phy/rockchip/phy-rockchip-usbdp.c | 1 - drivers/phy/sandbox-phy.c | 1 - drivers/phy/socionext/phy-uniphier-pcie.c | 1 - drivers/phy/socionext/phy-uniphier-usb3.c | 1 - drivers/phy/sti_usb_phy.c | 1 - drivers/phy/ti-pipe3-phy.c | 1 - drivers/phy/ti/phy-j721e-wiz.c | 1 - 51 files changed, 3 insertions(+), 51 deletions(-)
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 6624e9134f43..b9306c9a8279 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -10,7 +10,6 @@
- SPDX-License-Identifier: GPL-2.0+
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index a2fa446cb1c9..d715541bd4cb 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index 857fb575ef19..ffb37b634a31 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index bfdcfb0d245e..a8d24609bfc0 100644 --- a/drivers/phy/bcm6358-usbh-phy.c +++ b/drivers/phy/bcm6358-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 1a2870d51499..5bee130425d5 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -7,7 +7,6 @@
- Copyright 2013 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 4bb8a0ca7f34..f5e23f36c56e 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -11,7 +11,6 @@
- Jean-Jacques Hiblot jjhiblot@ti.com
*/ -#include <common.h> #include <clk.h> #include <linux/delay.h> #include <linux/clk-provider.h> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index ef924e7af508..d4e8ece4935a 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <clk.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index 3bb9c0814c14..cfc15203d632 100644 --- a/drivers/phy/keystone-usb-phy.c +++ b/drivers/phy/keystone-usb-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c index c490dc69c695..bca325d19960 100644 --- a/drivers/phy/marvell/comphy_a3700.c +++ b/drivers/phy/marvell/comphy_a3700.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <fdt_support.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index 7272dfb9fe80..a666a4e794ee 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -5,7 +5,6 @@
- Copyright (C) 2016 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c index bb15fbaf347e..b8cdedf6edf0 100644 --- a/drivers/phy/marvell/comphy_cp110.c +++ b/drivers/phy/marvell/comphy_cp110.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/global_data.h> @@ -12,6 +11,7 @@ #include <asm/arch/cpu.h> #include <asm/arch/soc.h> #include <linux/delay.h> +#include <linux/errno.h> #include <linux/printk.h>
#include "comphy_core.h" diff --git a/drivers/phy/marvell/comphy_mux.c b/drivers/phy/marvell/comphy_mux.c index 10981d25ec95..a8aa37fc46f3 100644 --- a/drivers/phy/marvell/comphy_mux.c +++ b/drivers/phy/marvell/comphy_mux.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Marvell International Ltd.
*/
-#include <common.h> #include <log.h> #include <asm/io.h>
diff --git a/drivers/phy/meson-axg-mipi-dphy.c b/drivers/phy/meson-axg-mipi-dphy.c index faa1d9d6d378..3f89de19970b 100644 --- a/drivers/phy/meson-axg-mipi-dphy.c +++ b/drivers/phy/meson-axg-mipi-dphy.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 236ea1ce5ca7..731917cef434 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index 3958d2404b85..8cded12438b9 100644 --- a/drivers/phy/meson-g12a-usb2.c +++ b/drivers/phy/meson-g12a-usb2.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb3-pcie.c b/drivers/phy/meson-g12a-usb3-pcie.c index 1eaff410efa4..4d183867c3a0 100644 --- a/drivers/phy/meson-g12a-usb3-pcie.c +++ b/drivers/phy/meson-g12a-usb3-pcie.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c index 725b056a71a7..4c88ccf39276 100644 --- a/drivers/phy/meson-gxbb-usb2.c +++ b/drivers/phy/meson-gxbb-usb2.c @@ -8,7 +8,6 @@
- Author: Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/meson-gxl-usb2.c b/drivers/phy/meson-gxl-usb2.c index d633effa4042..92c285103c4a 100644 --- a/drivers/phy/meson-gxl-usb2.c +++ b/drivers/phy/meson-gxl-usb2.c @@ -7,7 +7,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <bitfield.h> diff --git a/drivers/phy/mt76x8-usb-phy.c b/drivers/phy/mt76x8-usb-phy.c index 4069208b6790..99f8a221f5a1 100644 --- a/drivers/phy/mt76x8-usb-phy.c +++ b/drivers/phy/mt76x8-usb-phy.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index c53e3216d0fd..286171cba76a 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/phy/nop-phy.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device.h> #include <dm/device_compat.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index d3d38062ecf7..2be0178882a4 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -6,7 +6,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/phy/phy-ab8500-usb.c b/drivers/phy/phy-ab8500-usb.c index 3d3d48c9733a..5de7b6f86cca 100644 --- a/drivers/phy/phy-ab8500-usb.c +++ b/drivers/phy/phy-ab8500-usb.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/phy-apple-atc.c b/drivers/phy/phy-apple-atc.c index 15c5b8a1c2d0..78eedf676b09 100644 --- a/drivers/phy/phy-apple-atc.c +++ b/drivers/phy/phy-apple-atc.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-bcm-sr-pcie.c b/drivers/phy/phy-bcm-sr-pcie.c index cf33bab37072..97859a0cb87e 100644 --- a/drivers/phy/phy-bcm-sr-pcie.c +++ b/drivers/phy/phy-bcm-sr-pcie.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Broadcom
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <asm/io.h> diff --git a/drivers/phy/phy-core-mipi-dphy.c b/drivers/phy/phy-core-mipi-dphy.c index bb61816add27..8fb985a1e682 100644 --- a/drivers/phy/phy-core-mipi-dphy.c +++ b/drivers/phy/phy-core-mipi-dphy.c @@ -4,8 +4,8 @@
- Copyright (C) 2018 Cadence Design Systems Inc.
*/
-#include <common.h> #include <div64.h> +#include <linux/kernel.h> #include <linux/time.h>
#include <phy-mipi-dphy.h> diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index d025188eae98..cf26aaaa3d82 100644 --- a/drivers/phy/phy-da8xx-usb.c +++ b/drivers/phy/phy-da8xx-usb.c @@ -6,9 +6,9 @@
- DT support added by: Adam Ford aford173@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> +#include <time.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <asm/arch/hardware.h> diff --git a/drivers/phy/phy-imx8mq-usb.c b/drivers/phy/phy-imx8mq-usb.c index e5e96e77a681..75763046adc1 100644 --- a/drivers/phy/phy-imx8mq-usb.c +++ b/drivers/phy/phy-imx8mq-usb.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index ea9edf212c6f..6f9ac1528e88 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -5,7 +5,6 @@
Ryder Lee <ryder.lee@mediatek.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-npcm-usb.c b/drivers/phy/phy-npcm-usb.c index 24eba6655435..028fedf92dc3 100644 --- a/drivers/phy/phy-npcm-usb.c +++ b/drivers/phy/phy-npcm-usb.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <regmap.h> diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index e528c4ec5793..f9428c7ad122 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-rcar-gen3.c b/drivers/phy/phy-rcar-gen3.c index 03c747b373b1..7c292cae0e2f 100644 --- a/drivers/phy/phy-rcar-gen3.c +++ b/drivers/phy/phy-rcar-gen3.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index 000e495dbd4e..8d643b762f90 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index 70a746d2c92d..c3d9972397aa 100644 --- a/drivers/phy/phy-ti-am654.c +++ b/drivers/phy/phy-ti-am654.c @@ -6,7 +6,6 @@
- Author: Kishon Vijay Abraham I kishon@ti.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index 0dcfe258bc44..acdcda15b5b8 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PHY
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy-zynqmp.c index d1288bb17f3c..7049e740d569 100644 --- a/drivers/phy/phy-zynqmp.c +++ b/drivers/phy/phy-zynqmp.c @@ -9,7 +9,6 @@
- Author: Laurent Pinchart laurent.pinchart@ideasonboard.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/qcom/msm8916-usbh-phy.c b/drivers/phy/qcom/msm8916-usbh-phy.c index f52046f7cb02..4b435aa2a6eb 100644 --- a/drivers/phy/qcom/msm8916-usbh-phy.c +++ b/drivers/phy/qcom/msm8916-usbh-phy.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Ramon Fried ramon.fried@gmail.com
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c index 5808489249f5..3b647324e021 100644 --- a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c index 05a9a2cf1d7c..c344809a6086 100644 --- a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c +++ b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c @@ -5,7 +5,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-ss.c b/drivers/phy/qcom/phy-qcom-usb-ss.c index 1b03a3c43dc8..270d09d883c4 100644 --- a/drivers/phy/qcom/phy-qcom-usb-ss.c +++ b/drivers/phy/qcom/phy-qcom-usb-ss.c @@ -5,7 +5,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/renesas/r8a779f0-ether-serdes.c b/drivers/phy/renesas/r8a779f0-ether-serdes.c index bd1fdd3a667d..40284ef2fd34 100644 --- a/drivers/phy/renesas/r8a779f0-ether-serdes.c +++ b/drivers/phy/renesas/r8a779f0-ether-serdes.c @@ -7,7 +7,6 @@ #include <asm/io.h> #include <clk-uclass.h> #include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index 9ca66bf8db92..3ad339bccc1d 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 44ca4bc7919e..660037034ec0 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -7,7 +7,6 @@
- Copyright (C) 2016 ROCKCHIP, Inc.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c index a4392daf4c92..2737bd81dd96 100644 --- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index 47c69dd6c453..c7459dbc5fc6 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -8,7 +8,6 @@
Kever Yang <kever.yang@rock-chips.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index baf92529348c..5bcc76613d14 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -5,7 +5,6 @@
- Copyright (C) 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c index 7e123da25fb4..b159147a765b 100644 --- a/drivers/phy/sandbox-phy.c +++ b/drivers/phy/sandbox-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/socionext/phy-uniphier-pcie.c b/drivers/phy/socionext/phy-uniphier-pcie.c index d352c4ca3a9c..91208dfe1200 100644 --- a/drivers/phy/socionext/phy-uniphier-pcie.c +++ b/drivers/phy/socionext/phy-uniphier-pcie.c @@ -4,7 +4,6 @@
- Copyright 2019-2021 Socionext, Inc.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/socionext/phy-uniphier-usb3.c b/drivers/phy/socionext/phy-uniphier-usb3.c index 1d65b0b08f76..1d65c1f7da52 100644 --- a/drivers/phy/socionext/phy-uniphier-usb3.c +++ b/drivers/phy/socionext/phy-uniphier-usb3.c @@ -4,7 +4,6 @@
- Copyright 2019-2023 Socionext, Inc.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h>
diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index 9e5ac9bfde67..2447e89f50df 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index 29a35ae5ffb9..62f6cc2bfbfd 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -4,7 +4,6 @@
- Written by Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <dm.h> #include <dm/device.h> #include <generic-phy.h> diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index daf62f5deda0..c69a342e2b49 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -4,7 +4,6 @@
- Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Mark Kettenis kettenis@openbsd.org Cc: Sean Anderson seanga2@gmail.com Cc: Simon Glass sjg@chromium.org Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Robert Marko robert.marko@sartura.hr --- drivers/pinctrl/aspeed/pinctrl_ast2500.c | 1 - drivers/pinctrl/aspeed/pinctrl_ast2600.c | 1 - drivers/pinctrl/ath79/pinctrl_ar933x.c | 1 - drivers/pinctrl/ath79/pinctrl_qca953x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm6838.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos7420.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 1 - drivers/pinctrl/intel/pinctrl.c | 1 - drivers/pinctrl/intel/pinctrl_apl.c | 1 - drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 1 - drivers/pinctrl/meson/pinctrl-meson-a1.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 - drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 - drivers/pinctrl/meson/pinctrl-meson.c | 1 - drivers/pinctrl/mscc/mscc-common.c | 1 - drivers/pinctrl/mscc/pinctrl-jr2.c | 1 - drivers/pinctrl/mscc/pinctrl-luton.c | 1 - drivers/pinctrl/mscc/pinctrl-ocelot.c | 1 - drivers/pinctrl/mscc/pinctrl-serval.c | 1 - drivers/pinctrl/mscc/pinctrl-servalt.c | 1 - drivers/pinctrl/mtmips/pinctrl-mt7628.c | 1 - drivers/pinctrl/mtmips/pinctrl-mtmips-common.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 1 - drivers/pinctrl/mvebu/pinctrl-mvebu.c | 1 - drivers/pinctrl/nexell/pinctrl-nexell.c | 1 - drivers/pinctrl/nexell/pinctrl-s5pxx18.c | 1 - drivers/pinctrl/nxp/pinctrl-imx.c | 1 - drivers/pinctrl/nxp/pinctrl-imx5.c | 1 - drivers/pinctrl/nxp/pinctrl-imx6.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imxrt.c | 1 - drivers/pinctrl/nxp/pinctrl-mxs.c | 1 - drivers/pinctrl/nxp/pinctrl-scu.c | 1 - drivers/pinctrl/nxp/pinctrl-vf610.c | 1 - drivers/pinctrl/pinctrl-apple.c | 1 - drivers/pinctrl/pinctrl-at91-pio4.c | 1 - drivers/pinctrl/pinctrl-at91.c | 1 - drivers/pinctrl/pinctrl-generic.c | 1 - drivers/pinctrl/pinctrl-k210.c | 1 - drivers/pinctrl/pinctrl-qe-io.c | 1 - drivers/pinctrl/pinctrl-sandbox.c | 1 - drivers/pinctrl/pinctrl-single.c | 1 - drivers/pinctrl/pinctrl-sti.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/pinctrl-uclass.c | 1 - drivers/pinctrl/pinctrl-zynqmp.c | 1 - drivers/pinctrl/pinctrl_pic32.c | 1 - drivers/pinctrl/pinctrl_stm32.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8096.c | 1 - drivers/pinctrl/qcom/pinctrl-ipq4019.c | 1 - drivers/pinctrl/qcom/pinctrl-qcom.c | 1 - drivers/pinctrl/qcom/pinctrl-qcs404.c | 1 - drivers/pinctrl/qcom/pinctrl-sdm845.c | 1 - drivers/pinctrl/rockchip/pinctrl-px30.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3036.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3066.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3128.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3188.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk322x.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3288.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3308.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3328.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3368.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3399.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3568.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3588.c | 1 - drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1108.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1126.c | 1 - drivers/pinctrl/starfive/pinctrl-starfive.c | 1 - drivers/pinctrl/tegra/funcmux-tegra114.c | 1 - drivers/pinctrl/tegra/funcmux-tegra124.c | 1 - drivers/pinctrl/tegra/funcmux-tegra20.c | 1 - drivers/pinctrl/tegra/funcmux-tegra210.c | 1 - drivers/pinctrl/tegra/funcmux-tegra30.c | 1 - drivers/pinctrl/tegra/pinmux-common.c | 1 - drivers/pinctrl/tegra/pinmux-tegra114.c | 1 - drivers/pinctrl/tegra/pinmux-tegra124.c | 1 - drivers/pinctrl/tegra/pinmux-tegra20.c | 1 - drivers/pinctrl/tegra/pinmux-tegra30.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 - 101 files changed, 101 deletions(-)
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index 93920a6389bf..9e7c347caf89 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -3,7 +3,6 @@ * Copyright 2017 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c index 8a4f9705ca93..bc12590e5836 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c @@ -3,7 +3,6 @@ * Copyright (C) ASPEED Technology Inc. */
-#include <common.h> #include <errno.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2600.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index eb673a9f69cb..61e37a2e5598 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Wills Wang wills.wang@live.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index 0d534268e966..e4f695fc4d44 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Wills Wang wills.wang@live.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index e949cb70900a..cf9350c151e0 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -10,7 +10,6 @@ * https://spdx.org/licenses */
-#include <common.h> #include <config.h> #include <errno.h> #include <dm.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c index 58f28a137096..7d0c09a130c6 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index 8a045cdf7aa8..b393127c642c 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -6,7 +6,6 @@ */
#include <log.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c index 77d510d8f600..8fdf60715a53 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c @@ -5,7 +5,6 @@ * Thomas Abraham thomas.ab@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c index 1b696fdfd288..61b98443daf3 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c @@ -9,7 +9,6 @@ * Thomas Abraham thomas.ab@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index 1607000dedc1..6cfe83a593a2 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -16,7 +16,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index 181a6ff27026..e554d2854353 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 0baef57c1c2f..37fc28bb7790 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -4,7 +4,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-a1.c b/drivers/pinctrl/meson/pinctrl-meson-a1.c index 30cf3bc0be4e..7e9ac6390b1e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-a1.c +++ b/drivers/pinctrl/meson/pinctrl-meson-a1.c @@ -6,7 +6,6 @@ * Author: Igor Prusov ivprusov@sberdevices.ru */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-a1-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index cfe94cf9e17d..52c726cf038e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/io.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 820a6c9bb1aa..94e09cd3f8a2 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -7,7 +7,6 @@ * Author: Xingyu Chen xingyu.chen@amlogic.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-axg-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c index 90a4f8056cdb..24f47f825582 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c +++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c @@ -8,7 +8,6 @@ * Author: Yixun Lan yixun.lan@amlogic.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-g12a-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index 99502d89c6c0..396b3a0e842e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -5,7 +5,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 93a895c9fa7f..03ae1f9f8a5d 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -6,7 +6,6 @@ * Copyright (C) 2016 Endless Mobile, Inc. */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxbb-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index a44145e2d4e8..16517f95ddbf 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -6,7 +6,6 @@ * Copyright (C) 2016 Endless Mobile, Inc. */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxl-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index ee362d8464fc..babf1bccc969 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 - Beniamino Galvani b.galvani@gmail.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 307ed1db8750..2af5587ec47a 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c index cb340581cc0f..4ef4040cd702 100644 --- a/drivers/pinctrl/mscc/pinctrl-jr2.c +++ b/drivers/pinctrl/mscc/pinctrl-jr2.c @@ -6,7 +6,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c index 325c9a9705b2..7707350aace6 100644 --- a/drivers/pinctrl/mscc/pinctrl-luton.c +++ b/drivers/pinctrl/mscc/pinctrl-luton.c @@ -7,7 +7,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c index 57e2ef0d7c16..826388c2f746 100644 --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c index a6b9796df81f..2081cd6750c8 100644 --- a/drivers/pinctrl/mscc/pinctrl-serval.c +++ b/drivers/pinctrl/mscc/pinctrl-serval.c @@ -6,7 +6,6 @@ * Copyright (c) 2019 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c index 8e8678580db1..efa4e26d9f72 100644 --- a/drivers/pinctrl/mscc/pinctrl-servalt.c +++ b/drivers/pinctrl/mscc/pinctrl-servalt.c @@ -6,7 +6,6 @@ * Copyright (c) 2019 Microsemi Corporation */
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index 79c63c7caec6..dc7acec4a77f 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c index 869b78106851..bab34e97b615 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c +++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index e834dddfd137..64036296e24d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -16,7 +16,6 @@ * https://spdx.org/licenses */
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c index 252151f3e5d9..78184d2860a8 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later // (C) 2022 Pali Rohár pali@kernel.org
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index fd49a97b5b0a..0d5fa4ceb9ca 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -4,7 +4,6 @@ * https://spdx.org/licenses */
-#include <common.h> #include <config.h> #include <fdtdec.h> #include <errno.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index 20497a746d26..d5be7baf50dd 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -5,7 +5,6 @@ * Bongyu, KOO freestyle@nexell.co.kr */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index 863eb1455d23..e7d0994f29e7 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -7,7 +7,6 @@ * (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 1596dcc4747e..ff466c491041 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Peng Fan van.freenix@gmail.com */
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c index b32b748cfc63..6b690fdce8fd 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx5.c +++ b/drivers/pinctrl/nxp/pinctrl-imx5.c @@ -4,7 +4,6 @@ * Copyright (C) 2016 Peng Fan van.freenix@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx6.c b/drivers/pinctrl/nxp/pinctrl-imx6.c index 6994dbb61a3d..322eec87ff5d 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx6.c +++ b/drivers/pinctrl/nxp/pinctrl-imx6.c @@ -4,7 +4,6 @@ * Copyright (C) 2016 Peng Fan van.freenix@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c index 77ddb8e0b9d5..a8275e26456b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Peng Fan van.freenix@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c index 6da9ff7c5bce..7ea2dbe7d36b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 46af44ecb1f2..4e9a9ea68086 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -3,7 +3,6 @@ * Copyright 2018 NXP */
-#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c index 4e8fa08bc6e3..73d3c009d5b6 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imxrt.c b/drivers/pinctrl/nxp/pinctrl-imxrt.c index 53b70da869ec..23f07f8d1e05 100644 --- a/drivers/pinctrl/nxp/pinctrl-imxrt.c +++ b/drivers/pinctrl/nxp/pinctrl-imxrt.c @@ -4,7 +4,6 @@ * Author(s): Giulio Benetti giulio.benetti@benettiengineering.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index eb90e28d4b21..85ab5fdf6404 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -4,7 +4,6 @@ * Lukasz Majewski, DENX Software Engineering, lukma@denx.de */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c index 4959834c0fcd..42d5c96468c7 100644 --- a/drivers/pinctrl/nxp/pinctrl-scu.c +++ b/drivers/pinctrl/nxp/pinctrl-scu.c @@ -3,7 +3,6 @@ * Copyright 2018-2019 NXP */
-#include <common.h> #include <errno.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pinctrl/nxp/pinctrl-vf610.c b/drivers/pinctrl/nxp/pinctrl-vf610.c index 14e2e9d3ee61..adf3073f1be0 100644 --- a/drivers/pinctrl/nxp/pinctrl-vf610.c +++ b/drivers/pinctrl/nxp/pinctrl-vf610.c @@ -4,7 +4,6 @@ * Lukasz Majewski, DENX Software Engineering, lukma@denx.de */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/pinctrl-apple.c b/drivers/pinctrl/pinctrl-apple.c index 62476358c349..f373afde58e4 100644 --- a/drivers/pinctrl/pinctrl-apple.c +++ b/drivers/pinctrl/pinctrl-apple.c @@ -3,7 +3,6 @@ * (C) Copyright 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 84b398619c47..c697a4c3456a 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -6,7 +6,6 @@ * Wenyou.Yang wenyou.yang@atmel.com */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index b7aab12f11c1..5038cb535e38 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -6,7 +6,6 @@ * Wenyou.Yang wenyou.yang@atmel.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c index 8909b57810af..2464acf0b854 100644 --- a/drivers/pinctrl/pinctrl-generic.c +++ b/drivers/pinctrl/pinctrl-generic.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/compat.h> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index ee35dfe14203..dad036610c9e 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Sean Anderson seanga2@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-qe-io.c b/drivers/pinctrl/pinctrl-qe-io.c index dc0be7ce3bd6..61db9274cc3e 100644 --- a/drivers/pinctrl/pinctrl-qe-io.c +++ b/drivers/pinctrl/pinctrl-qe-io.c @@ -6,7 +6,6 @@ * based on source code of Shlomi Gridish */
-#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 776597745099..a5d056643a0f 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -4,7 +4,6 @@ * Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/pinctrl/sandbox-pinmux.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index d1db377c1379..a3802d22d4f9 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -4,7 +4,6 @@ * Copyright (C) 2021 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <mapmem.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index 1ff7ea005551..4996b69d9afb 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -6,7 +6,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <bitfield.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 509e2a80e9a5..61f335c4eb14 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <log.h> #include <i2c.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index fe2ba5021a78..d9bda7494e23 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <malloc.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index eb17a4290b7d..6fa203a3b861 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -8,7 +8,6 @@ * Copyright (C) 2021 Xilinx, Inc. All rights reserved. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 54d97ac0ae37..9f38b56e9c0e 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -4,7 +4,6 @@ * Copyright (c) 2015 Microchip Technology Inc. * Written by Purna Chandra Mandal purna.mandal@microchip.com */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 7120b8edba00..eada1001240c 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <log.h> diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index b14a8921af4f..0c7437822ff2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-apq8096.c b/drivers/pinctrl/qcom/pinctrl-apq8096.c index 9697cb5beb7a..132ece868bf2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8096.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8096.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c index 26ab487857fe..3215c677b263 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c @@ -7,7 +7,6 @@ * Author: Robert Marko robert.marko@sartura.hr */
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c b/drivers/pinctrl/qcom/pinctrl-qcom.c index e68971b37ff0..3c3336e76358 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcom.c +++ b/drivers/pinctrl/qcom/pinctrl-qcom.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index 4b7c670c90b7..fb6defaeddf0 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcs404.c +++ b/drivers/pinctrl/qcom/pinctrl-qcs404.c @@ -5,7 +5,6 @@ * (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org */
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index c1e5cc01fded..f1a23f510999 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index 2c35491b24d8..cc7885bae408 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index afcd34396e27..b14386ccd937 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3066.c b/drivers/pinctrl/rockchip/pinctrl-rk3066.c index 598b63223e36..60e088a9a6f0 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3066.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3066.c @@ -3,7 +3,6 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 355c45eb7f8c..d00fc3da8b23 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 9a982cbfad9c..83db51f66ae4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index 351406da2d45..b804597c0484 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index a976b7aeeb27..3870c1b7a341 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index f9ac6347eaf1..2cd91b10a3bd 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 65a750076773..47c2e923a1bb 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index ba867a891748..9ae06ed19e9c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index ae785573baf5..b7a5092c032b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3568.c b/drivers/pinctrl/rockchip/pinctrl-rk3568.c index 1d4391982605..5deedc648a41 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3568.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3568.c @@ -3,7 +3,6 @@ * (C) Copyright 2020 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3588.c b/drivers/pinctrl/rockchip/pinctrl-rk3588.c index 548cf09bcca4..98ababc7c907 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3588.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3588.c @@ -3,7 +3,6 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 8ef089994f46..3e74e2f14895 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 5b70b503d2b1..3eff5f59598c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -3,7 +3,6 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1126.c b/drivers/pinctrl/rockchip/pinctrl-rv1126.c index eefb8b17768b..efa2408b204b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1126.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1126.c @@ -3,7 +3,6 @@ * (C) Copyright 2020 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 9b09cc21cfaa..95b1a752de2e 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -7,7 +7,6 @@ * Author: Jianlong Huang jianlong.huang@starfivetech.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra114.c b/drivers/pinctrl/tegra/funcmux-tegra114.c index 23a27c868881..23e9e2383679 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra114.c +++ b/drivers/pinctrl/tegra/funcmux-tegra114.c @@ -5,7 +5,6 @@
/* Tegra114 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra124.c b/drivers/pinctrl/tegra/funcmux-tegra124.c index e7ad85fde2d0..b041cead3446 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra124.c +++ b/drivers/pinctrl/tegra/funcmux-tegra124.c @@ -6,7 +6,6 @@
/* Tegra124 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra20.c b/drivers/pinctrl/tegra/funcmux-tegra20.c index 90fe0cba8ea4..b8c913237853 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra20.c +++ b/drivers/pinctrl/tegra/funcmux-tegra20.c @@ -4,7 +4,6 @@ */
/* Tegra20 high-level function multiplexing */ -#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra210.c b/drivers/pinctrl/tegra/funcmux-tegra210.c index 30d994a17ffa..d52b6150e590 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra210.c +++ b/drivers/pinctrl/tegra/funcmux-tegra210.c @@ -6,7 +6,6 @@
/* Tegra210 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra30.c b/drivers/pinctrl/tegra/funcmux-tegra30.c index c3ee787f33b1..e31b859beb8a 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra30.c +++ b/drivers/pinctrl/tegra/funcmux-tegra30.c @@ -5,7 +5,6 @@
/* Tegra30 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-common.c b/drivers/pinctrl/tegra/pinmux-common.c index 16b03bfe7b06..5266c8db4876 100644 --- a/drivers/pinctrl/tegra/pinmux-common.c +++ b/drivers/pinctrl/tegra/pinmux-common.c @@ -4,7 +4,6 @@ * Copyright (c) 2011 The Chromium OS Authors. */
-#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra114.c b/drivers/pinctrl/tegra/pinmux-tegra114.c index 11796602c548..15c6b653aed8 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra114.c +++ b/drivers/pinctrl/tegra/pinmux-tegra114.c @@ -3,7 +3,6 @@ * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra124.c b/drivers/pinctrl/tegra/pinmux-tegra124.c index 261ce64b205e..6d5b720aa0e6 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra124.c +++ b/drivers/pinctrl/tegra/pinmux-tegra124.c @@ -3,7 +3,6 @@ * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra20.c b/drivers/pinctrl/tegra/pinmux-tegra20.c index 0af39e74c53b..c1f86476b9ef 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra20.c +++ b/drivers/pinctrl/tegra/pinmux-tegra20.c @@ -5,7 +5,6 @@
/* Tegra20 pin multiplexing functions */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra30.c b/drivers/pinctrl/tegra/pinmux-tegra30.c index d11b2aa572df..59ce9cea4a97 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra30.c +++ b/drivers/pinctrl/tegra/pinmux-tegra30.c @@ -3,7 +3,6 @@ * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index bdca3f2f7156..eafb65496a3d 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c index a1a3cd73859a..778a9899483c 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c index 7a92a46c17f5..3ef10151dabf 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index d33e4d7dd259..9302e309e20f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c index 0e3eb131ecf7..f7c5bf3bcaed 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c index 7ba2266092f0..2704a50749e5 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c index 9ce2e2c270ef..655ec6e60573 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c index e8c2018097c2..226272c2b82f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c index 8a8f1269bb51..8df13ca209c7 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c @@ -5,7 +5,6 @@ * Author: Dai Okamura dai.okamura@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c index 04c06fb280e2..c045ae99ac53 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c @@ -4,7 +4,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>

On Thu, 2 May 2024 at 02:33, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Peter Robinson pbrobinson@gmail.com
Looks fine
Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Mark Kettenis kettenis@openbsd.org Cc: Sean Anderson seanga2@gmail.com Cc: Simon Glass sjg@chromium.org Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Robert Marko robert.marko@sartura.hr
drivers/pinctrl/aspeed/pinctrl_ast2500.c | 1 - drivers/pinctrl/aspeed/pinctrl_ast2600.c | 1 - drivers/pinctrl/ath79/pinctrl_ar933x.c | 1 - drivers/pinctrl/ath79/pinctrl_qca953x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm6838.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos7420.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 1 - drivers/pinctrl/intel/pinctrl.c | 1 - drivers/pinctrl/intel/pinctrl_apl.c | 1 - drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 1 - drivers/pinctrl/meson/pinctrl-meson-a1.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 - drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 - drivers/pinctrl/meson/pinctrl-meson.c | 1 - drivers/pinctrl/mscc/mscc-common.c | 1 - drivers/pinctrl/mscc/pinctrl-jr2.c | 1 - drivers/pinctrl/mscc/pinctrl-luton.c | 1 - drivers/pinctrl/mscc/pinctrl-ocelot.c | 1 - drivers/pinctrl/mscc/pinctrl-serval.c | 1 - drivers/pinctrl/mscc/pinctrl-servalt.c | 1 - drivers/pinctrl/mtmips/pinctrl-mt7628.c | 1 - drivers/pinctrl/mtmips/pinctrl-mtmips-common.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 1 - drivers/pinctrl/mvebu/pinctrl-mvebu.c | 1 - drivers/pinctrl/nexell/pinctrl-nexell.c | 1 - drivers/pinctrl/nexell/pinctrl-s5pxx18.c | 1 - drivers/pinctrl/nxp/pinctrl-imx.c | 1 - drivers/pinctrl/nxp/pinctrl-imx5.c | 1 - drivers/pinctrl/nxp/pinctrl-imx6.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imxrt.c | 1 - drivers/pinctrl/nxp/pinctrl-mxs.c | 1 - drivers/pinctrl/nxp/pinctrl-scu.c | 1 - drivers/pinctrl/nxp/pinctrl-vf610.c | 1 - drivers/pinctrl/pinctrl-apple.c | 1 - drivers/pinctrl/pinctrl-at91-pio4.c | 1 - drivers/pinctrl/pinctrl-at91.c | 1 - drivers/pinctrl/pinctrl-generic.c | 1 - drivers/pinctrl/pinctrl-k210.c | 1 - drivers/pinctrl/pinctrl-qe-io.c | 1 - drivers/pinctrl/pinctrl-sandbox.c | 1 - drivers/pinctrl/pinctrl-single.c | 1 - drivers/pinctrl/pinctrl-sti.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/pinctrl-uclass.c | 1 - drivers/pinctrl/pinctrl-zynqmp.c | 1 - drivers/pinctrl/pinctrl_pic32.c | 1 - drivers/pinctrl/pinctrl_stm32.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8096.c | 1 - drivers/pinctrl/qcom/pinctrl-ipq4019.c | 1 - drivers/pinctrl/qcom/pinctrl-qcom.c | 1 - drivers/pinctrl/qcom/pinctrl-qcs404.c | 1 - drivers/pinctrl/qcom/pinctrl-sdm845.c | 1 - drivers/pinctrl/rockchip/pinctrl-px30.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3036.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3066.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3128.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3188.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk322x.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3288.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3308.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3328.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3368.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3399.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3568.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3588.c | 1 - drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1108.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1126.c | 1 - drivers/pinctrl/starfive/pinctrl-starfive.c | 1 - drivers/pinctrl/tegra/funcmux-tegra114.c | 1 - drivers/pinctrl/tegra/funcmux-tegra124.c | 1 - drivers/pinctrl/tegra/funcmux-tegra20.c | 1 - drivers/pinctrl/tegra/funcmux-tegra210.c | 1 - drivers/pinctrl/tegra/funcmux-tegra30.c | 1 - drivers/pinctrl/tegra/pinmux-common.c | 1 - drivers/pinctrl/tegra/pinmux-tegra114.c | 1 - drivers/pinctrl/tegra/pinmux-tegra124.c | 1 - drivers/pinctrl/tegra/pinmux-tegra20.c | 1 - drivers/pinctrl/tegra/pinmux-tegra30.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 - 101 files changed, 101 deletions(-)
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index 93920a6389bf..9e7c347caf89 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -3,7 +3,6 @@
- Copyright 2017 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c index 8a4f9705ca93..bc12590e5836 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c @@ -3,7 +3,6 @@
- Copyright (C) ASPEED Technology Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2600.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index eb673a9f69cb..61e37a2e5598 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index 0d534268e966..e4f695fc4d44 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index e949cb70900a..cf9350c151e0 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <config.h> #include <errno.h> #include <dm.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c index 58f28a137096..7d0c09a130c6 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index 8a045cdf7aa8..b393127c642c 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -6,7 +6,6 @@ */
#include <log.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c index 77d510d8f600..8fdf60715a53 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c @@ -5,7 +5,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c index 1b696fdfd288..61b98443daf3 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c @@ -9,7 +9,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index 1607000dedc1..6cfe83a593a2 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -16,7 +16,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index 181a6ff27026..e554d2854353 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 0baef57c1c2f..37fc28bb7790 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -4,7 +4,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-a1.c b/drivers/pinctrl/meson/pinctrl-meson-a1.c index 30cf3bc0be4e..7e9ac6390b1e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-a1.c +++ b/drivers/pinctrl/meson/pinctrl-meson-a1.c @@ -6,7 +6,6 @@
- Author: Igor Prusov ivprusov@sberdevices.ru
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-a1-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index cfe94cf9e17d..52c726cf038e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/io.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 820a6c9bb1aa..94e09cd3f8a2 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -7,7 +7,6 @@
- Author: Xingyu Chen xingyu.chen@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-axg-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c index 90a4f8056cdb..24f47f825582 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c +++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c @@ -8,7 +8,6 @@
- Author: Yixun Lan yixun.lan@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-g12a-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index 99502d89c6c0..396b3a0e842e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -5,7 +5,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 93a895c9fa7f..03ae1f9f8a5d 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxbb-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index a44145e2d4e8..16517f95ddbf 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxl-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index ee362d8464fc..babf1bccc969 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 - Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 307ed1db8750..2af5587ec47a 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c index cb340581cc0f..4ef4040cd702 100644 --- a/drivers/pinctrl/mscc/pinctrl-jr2.c +++ b/drivers/pinctrl/mscc/pinctrl-jr2.c @@ -6,7 +6,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c index 325c9a9705b2..7707350aace6 100644 --- a/drivers/pinctrl/mscc/pinctrl-luton.c +++ b/drivers/pinctrl/mscc/pinctrl-luton.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c index 57e2ef0d7c16..826388c2f746 100644 --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c index a6b9796df81f..2081cd6750c8 100644 --- a/drivers/pinctrl/mscc/pinctrl-serval.c +++ b/drivers/pinctrl/mscc/pinctrl-serval.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c index 8e8678580db1..efa4e26d9f72 100644 --- a/drivers/pinctrl/mscc/pinctrl-servalt.c +++ b/drivers/pinctrl/mscc/pinctrl-servalt.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index 79c63c7caec6..dc7acec4a77f 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c index 869b78106851..bab34e97b615 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c +++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index e834dddfd137..64036296e24d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -16,7 +16,6 @@
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c index 252151f3e5d9..78184d2860a8 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later // (C) 2022 Pali Rohár pali@kernel.org
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index fd49a97b5b0a..0d5fa4ceb9ca 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <config.h> #include <fdtdec.h> #include <errno.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index 20497a746d26..d5be7baf50dd 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -5,7 +5,6 @@
- Bongyu, KOO freestyle@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index 863eb1455d23..e7d0994f29e7 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -7,7 +7,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 1596dcc4747e..ff466c491041 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c index b32b748cfc63..6b690fdce8fd 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx5.c +++ b/drivers/pinctrl/nxp/pinctrl-imx5.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx6.c b/drivers/pinctrl/nxp/pinctrl-imx6.c index 6994dbb61a3d..322eec87ff5d 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx6.c +++ b/drivers/pinctrl/nxp/pinctrl-imx6.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c index 77ddb8e0b9d5..a8275e26456b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c index 6da9ff7c5bce..7ea2dbe7d36b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 46af44ecb1f2..4e9a9ea68086 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -3,7 +3,6 @@
- Copyright 2018 NXP
*/
-#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c index 4e8fa08bc6e3..73d3c009d5b6 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imxrt.c b/drivers/pinctrl/nxp/pinctrl-imxrt.c index 53b70da869ec..23f07f8d1e05 100644 --- a/drivers/pinctrl/nxp/pinctrl-imxrt.c +++ b/drivers/pinctrl/nxp/pinctrl-imxrt.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index eb90e28d4b21..85ab5fdf6404 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c index 4959834c0fcd..42d5c96468c7 100644 --- a/drivers/pinctrl/nxp/pinctrl-scu.c +++ b/drivers/pinctrl/nxp/pinctrl-scu.c @@ -3,7 +3,6 @@
- Copyright 2018-2019 NXP
*/
-#include <common.h> #include <errno.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pinctrl/nxp/pinctrl-vf610.c b/drivers/pinctrl/nxp/pinctrl-vf610.c index 14e2e9d3ee61..adf3073f1be0 100644 --- a/drivers/pinctrl/nxp/pinctrl-vf610.c +++ b/drivers/pinctrl/nxp/pinctrl-vf610.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/pinctrl-apple.c b/drivers/pinctrl/pinctrl-apple.c index 62476358c349..f373afde58e4 100644 --- a/drivers/pinctrl/pinctrl-apple.c +++ b/drivers/pinctrl/pinctrl-apple.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 84b398619c47..c697a4c3456a 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index b7aab12f11c1..5038cb535e38 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c index 8909b57810af..2464acf0b854 100644 --- a/drivers/pinctrl/pinctrl-generic.c +++ b/drivers/pinctrl/pinctrl-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/compat.h> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index ee35dfe14203..dad036610c9e 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Sean Anderson seanga2@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-qe-io.c b/drivers/pinctrl/pinctrl-qe-io.c index dc0be7ce3bd6..61db9274cc3e 100644 --- a/drivers/pinctrl/pinctrl-qe-io.c +++ b/drivers/pinctrl/pinctrl-qe-io.c @@ -6,7 +6,6 @@
- based on source code of Shlomi Gridish
*/
-#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 776597745099..a5d056643a0f 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -4,7 +4,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/pinctrl/sandbox-pinmux.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index d1db377c1379..a3802d22d4f9 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <mapmem.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index 1ff7ea005551..4996b69d9afb 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <bitfield.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 509e2a80e9a5..61f335c4eb14 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <log.h> #include <i2c.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index fe2ba5021a78..d9bda7494e23 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <malloc.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index eb17a4290b7d..6fa203a3b861 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -8,7 +8,6 @@
- Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 54d97ac0ae37..9f38b56e9c0e 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -4,7 +4,6 @@
- Copyright (c) 2015 Microchip Technology Inc.
- Written by Purna Chandra Mandal purna.mandal@microchip.com
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 7120b8edba00..eada1001240c 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <log.h> diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index b14a8921af4f..0c7437822ff2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-apq8096.c b/drivers/pinctrl/qcom/pinctrl-apq8096.c index 9697cb5beb7a..132ece868bf2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8096.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8096.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c index 26ab487857fe..3215c677b263 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c @@ -7,7 +7,6 @@
- Author: Robert Marko robert.marko@sartura.hr
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c b/drivers/pinctrl/qcom/pinctrl-qcom.c index e68971b37ff0..3c3336e76358 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcom.c +++ b/drivers/pinctrl/qcom/pinctrl-qcom.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index 4b7c670c90b7..fb6defaeddf0 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcs404.c +++ b/drivers/pinctrl/qcom/pinctrl-qcs404.c @@ -5,7 +5,6 @@
- (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index c1e5cc01fded..f1a23f510999 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index 2c35491b24d8..cc7885bae408 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index afcd34396e27..b14386ccd937 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3066.c b/drivers/pinctrl/rockchip/pinctrl-rk3066.c index 598b63223e36..60e088a9a6f0 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3066.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3066.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 355c45eb7f8c..d00fc3da8b23 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 9a982cbfad9c..83db51f66ae4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index 351406da2d45..b804597c0484 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index a976b7aeeb27..3870c1b7a341 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index f9ac6347eaf1..2cd91b10a3bd 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 65a750076773..47c2e923a1bb 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index ba867a891748..9ae06ed19e9c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index ae785573baf5..b7a5092c032b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3568.c b/drivers/pinctrl/rockchip/pinctrl-rk3568.c index 1d4391982605..5deedc648a41 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3568.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3568.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3588.c b/drivers/pinctrl/rockchip/pinctrl-rk3588.c index 548cf09bcca4..98ababc7c907 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3588.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3588.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 8ef089994f46..3e74e2f14895 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 5b70b503d2b1..3eff5f59598c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1126.c b/drivers/pinctrl/rockchip/pinctrl-rv1126.c index eefb8b17768b..efa2408b204b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1126.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1126.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 9b09cc21cfaa..95b1a752de2e 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -7,7 +7,6 @@
- Author: Jianlong Huang jianlong.huang@starfivetech.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra114.c b/drivers/pinctrl/tegra/funcmux-tegra114.c index 23a27c868881..23e9e2383679 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra114.c +++ b/drivers/pinctrl/tegra/funcmux-tegra114.c @@ -5,7 +5,6 @@
/* Tegra114 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra124.c b/drivers/pinctrl/tegra/funcmux-tegra124.c index e7ad85fde2d0..b041cead3446 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra124.c +++ b/drivers/pinctrl/tegra/funcmux-tegra124.c @@ -6,7 +6,6 @@
/* Tegra124 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra20.c b/drivers/pinctrl/tegra/funcmux-tegra20.c index 90fe0cba8ea4..b8c913237853 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra20.c +++ b/drivers/pinctrl/tegra/funcmux-tegra20.c @@ -4,7 +4,6 @@ */
/* Tegra20 high-level function multiplexing */ -#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra210.c b/drivers/pinctrl/tegra/funcmux-tegra210.c index 30d994a17ffa..d52b6150e590 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra210.c +++ b/drivers/pinctrl/tegra/funcmux-tegra210.c @@ -6,7 +6,6 @@
/* Tegra210 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra30.c b/drivers/pinctrl/tegra/funcmux-tegra30.c index c3ee787f33b1..e31b859beb8a 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra30.c +++ b/drivers/pinctrl/tegra/funcmux-tegra30.c @@ -5,7 +5,6 @@
/* Tegra30 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-common.c b/drivers/pinctrl/tegra/pinmux-common.c index 16b03bfe7b06..5266c8db4876 100644 --- a/drivers/pinctrl/tegra/pinmux-common.c +++ b/drivers/pinctrl/tegra/pinmux-common.c @@ -4,7 +4,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra114.c b/drivers/pinctrl/tegra/pinmux-tegra114.c index 11796602c548..15c6b653aed8 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra114.c +++ b/drivers/pinctrl/tegra/pinmux-tegra114.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra124.c b/drivers/pinctrl/tegra/pinmux-tegra124.c index 261ce64b205e..6d5b720aa0e6 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra124.c +++ b/drivers/pinctrl/tegra/pinmux-tegra124.c @@ -3,7 +3,6 @@
- Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra20.c b/drivers/pinctrl/tegra/pinmux-tegra20.c index 0af39e74c53b..c1f86476b9ef 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra20.c +++ b/drivers/pinctrl/tegra/pinmux-tegra20.c @@ -5,7 +5,6 @@
/* Tegra20 pin multiplexing functions */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra30.c b/drivers/pinctrl/tegra/pinmux-tegra30.c index d11b2aa572df..59ce9cea4a97 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra30.c +++ b/drivers/pinctrl/tegra/pinmux-tegra30.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index bdca3f2f7156..eafb65496a3d 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c index a1a3cd73859a..778a9899483c 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c index 7a92a46c17f5..3ef10151dabf 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index d33e4d7dd259..9302e309e20f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c index 0e3eb131ecf7..f7c5bf3bcaed 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c index 7ba2266092f0..2704a50749e5 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c index 9ce2e2c270ef..655ec6e60573 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c index e8c2018097c2..226272c2b82f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c index 8a8f1269bb51..8df13ca209c7 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c @@ -5,7 +5,6 @@
- Author: Dai Okamura dai.okamura@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c index 04c06fb280e2..c045ae99ac53 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
-- 2.34.1

On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Mark Kettenis kettenis@openbsd.org Cc: Sean Anderson seanga2@gmail.com Cc: Simon Glass sjg@chromium.org Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Robert Marko robert.marko@sartura.hr
drivers/pinctrl/aspeed/pinctrl_ast2500.c | 1 - drivers/pinctrl/aspeed/pinctrl_ast2600.c | 1 - drivers/pinctrl/ath79/pinctrl_ar933x.c | 1 - drivers/pinctrl/ath79/pinctrl_qca953x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm6838.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos7420.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 1 - drivers/pinctrl/intel/pinctrl.c | 1 - drivers/pinctrl/intel/pinctrl_apl.c | 1 - drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 1 - drivers/pinctrl/meson/pinctrl-meson-a1.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 - drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 - drivers/pinctrl/meson/pinctrl-meson.c | 1 - drivers/pinctrl/mscc/mscc-common.c | 1 - drivers/pinctrl/mscc/pinctrl-jr2.c | 1 - drivers/pinctrl/mscc/pinctrl-luton.c | 1 - drivers/pinctrl/mscc/pinctrl-ocelot.c | 1 - drivers/pinctrl/mscc/pinctrl-serval.c | 1 - drivers/pinctrl/mscc/pinctrl-servalt.c | 1 - drivers/pinctrl/mtmips/pinctrl-mt7628.c | 1 - drivers/pinctrl/mtmips/pinctrl-mtmips-common.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 1 - drivers/pinctrl/mvebu/pinctrl-mvebu.c | 1 - drivers/pinctrl/nexell/pinctrl-nexell.c | 1 - drivers/pinctrl/nexell/pinctrl-s5pxx18.c | 1 - drivers/pinctrl/nxp/pinctrl-imx.c | 1 - drivers/pinctrl/nxp/pinctrl-imx5.c | 1 - drivers/pinctrl/nxp/pinctrl-imx6.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imxrt.c | 1 - drivers/pinctrl/nxp/pinctrl-mxs.c | 1 - drivers/pinctrl/nxp/pinctrl-scu.c | 1 - drivers/pinctrl/nxp/pinctrl-vf610.c | 1 - drivers/pinctrl/pinctrl-apple.c | 1 - drivers/pinctrl/pinctrl-at91-pio4.c | 1 - drivers/pinctrl/pinctrl-at91.c | 1 - drivers/pinctrl/pinctrl-generic.c | 1 - drivers/pinctrl/pinctrl-k210.c | 1 - drivers/pinctrl/pinctrl-qe-io.c | 1 - drivers/pinctrl/pinctrl-sandbox.c | 1 - drivers/pinctrl/pinctrl-single.c | 1 - drivers/pinctrl/pinctrl-sti.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/pinctrl-uclass.c | 1 - drivers/pinctrl/pinctrl-zynqmp.c | 1 - drivers/pinctrl/pinctrl_pic32.c | 1 - drivers/pinctrl/pinctrl_stm32.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8096.c | 1 - drivers/pinctrl/qcom/pinctrl-ipq4019.c | 1 - drivers/pinctrl/qcom/pinctrl-qcom.c | 1 - drivers/pinctrl/qcom/pinctrl-qcs404.c | 1 - drivers/pinctrl/qcom/pinctrl-sdm845.c | 1 - drivers/pinctrl/rockchip/pinctrl-px30.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3036.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3066.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3128.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3188.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk322x.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3288.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3308.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3328.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3368.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3399.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3568.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3588.c | 1 - drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1108.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1126.c | 1 - drivers/pinctrl/starfive/pinctrl-starfive.c | 1 - drivers/pinctrl/tegra/funcmux-tegra114.c | 1 - drivers/pinctrl/tegra/funcmux-tegra124.c | 1 - drivers/pinctrl/tegra/funcmux-tegra20.c | 1 - drivers/pinctrl/tegra/funcmux-tegra210.c | 1 - drivers/pinctrl/tegra/funcmux-tegra30.c | 1 - drivers/pinctrl/tegra/pinmux-common.c | 1 - drivers/pinctrl/tegra/pinmux-tegra114.c | 1 - drivers/pinctrl/tegra/pinmux-tegra124.c | 1 - drivers/pinctrl/tegra/pinmux-tegra20.c | 1 - drivers/pinctrl/tegra/pinmux-tegra30.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 - 101 files changed, 101 deletions(-)
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index 93920a6389bf..9e7c347caf89 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -3,7 +3,6 @@
- Copyright 2017 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c index 8a4f9705ca93..bc12590e5836 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c @@ -3,7 +3,6 @@
- Copyright (C) ASPEED Technology Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2600.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index eb673a9f69cb..61e37a2e5598 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index 0d534268e966..e4f695fc4d44 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index e949cb70900a..cf9350c151e0 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <config.h> #include <errno.h> #include <dm.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c index 58f28a137096..7d0c09a130c6 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index 8a045cdf7aa8..b393127c642c 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -6,7 +6,6 @@ */
#include <log.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c index 77d510d8f600..8fdf60715a53 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c @@ -5,7 +5,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c index 1b696fdfd288..61b98443daf3 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c @@ -9,7 +9,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index 1607000dedc1..6cfe83a593a2 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -16,7 +16,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index 181a6ff27026..e554d2854353 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 0baef57c1c2f..37fc28bb7790 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -4,7 +4,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-a1.c b/drivers/pinctrl/meson/pinctrl-meson-a1.c index 30cf3bc0be4e..7e9ac6390b1e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-a1.c +++ b/drivers/pinctrl/meson/pinctrl-meson-a1.c @@ -6,7 +6,6 @@
- Author: Igor Prusov ivprusov@sberdevices.ru
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-a1-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index cfe94cf9e17d..52c726cf038e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/io.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 820a6c9bb1aa..94e09cd3f8a2 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -7,7 +7,6 @@
- Author: Xingyu Chen xingyu.chen@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-axg-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c index 90a4f8056cdb..24f47f825582 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c +++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c @@ -8,7 +8,6 @@
- Author: Yixun Lan yixun.lan@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-g12a-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index 99502d89c6c0..396b3a0e842e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -5,7 +5,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 93a895c9fa7f..03ae1f9f8a5d 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxbb-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index a44145e2d4e8..16517f95ddbf 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxl-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index ee362d8464fc..babf1bccc969 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 - Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 307ed1db8750..2af5587ec47a 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c index cb340581cc0f..4ef4040cd702 100644 --- a/drivers/pinctrl/mscc/pinctrl-jr2.c +++ b/drivers/pinctrl/mscc/pinctrl-jr2.c @@ -6,7 +6,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c index 325c9a9705b2..7707350aace6 100644 --- a/drivers/pinctrl/mscc/pinctrl-luton.c +++ b/drivers/pinctrl/mscc/pinctrl-luton.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c index 57e2ef0d7c16..826388c2f746 100644 --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c index a6b9796df81f..2081cd6750c8 100644 --- a/drivers/pinctrl/mscc/pinctrl-serval.c +++ b/drivers/pinctrl/mscc/pinctrl-serval.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c index 8e8678580db1..efa4e26d9f72 100644 --- a/drivers/pinctrl/mscc/pinctrl-servalt.c +++ b/drivers/pinctrl/mscc/pinctrl-servalt.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index 79c63c7caec6..dc7acec4a77f 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c index 869b78106851..bab34e97b615 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c +++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index e834dddfd137..64036296e24d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -16,7 +16,6 @@
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c index 252151f3e5d9..78184d2860a8 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later // (C) 2022 Pali Rohár pali@kernel.org
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index fd49a97b5b0a..0d5fa4ceb9ca 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <config.h> #include <fdtdec.h> #include <errno.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index 20497a746d26..d5be7baf50dd 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -5,7 +5,6 @@
- Bongyu, KOO freestyle@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index 863eb1455d23..e7d0994f29e7 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -7,7 +7,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 1596dcc4747e..ff466c491041 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c index b32b748cfc63..6b690fdce8fd 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx5.c +++ b/drivers/pinctrl/nxp/pinctrl-imx5.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx6.c b/drivers/pinctrl/nxp/pinctrl-imx6.c index 6994dbb61a3d..322eec87ff5d 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx6.c +++ b/drivers/pinctrl/nxp/pinctrl-imx6.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c index 77ddb8e0b9d5..a8275e26456b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c index 6da9ff7c5bce..7ea2dbe7d36b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 46af44ecb1f2..4e9a9ea68086 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -3,7 +3,6 @@
- Copyright 2018 NXP
*/
-#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c index 4e8fa08bc6e3..73d3c009d5b6 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imxrt.c b/drivers/pinctrl/nxp/pinctrl-imxrt.c index 53b70da869ec..23f07f8d1e05 100644 --- a/drivers/pinctrl/nxp/pinctrl-imxrt.c +++ b/drivers/pinctrl/nxp/pinctrl-imxrt.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index eb90e28d4b21..85ab5fdf6404 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c index 4959834c0fcd..42d5c96468c7 100644 --- a/drivers/pinctrl/nxp/pinctrl-scu.c +++ b/drivers/pinctrl/nxp/pinctrl-scu.c @@ -3,7 +3,6 @@
- Copyright 2018-2019 NXP
*/
-#include <common.h> #include <errno.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pinctrl/nxp/pinctrl-vf610.c b/drivers/pinctrl/nxp/pinctrl-vf610.c index 14e2e9d3ee61..adf3073f1be0 100644 --- a/drivers/pinctrl/nxp/pinctrl-vf610.c +++ b/drivers/pinctrl/nxp/pinctrl-vf610.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/pinctrl-apple.c b/drivers/pinctrl/pinctrl-apple.c index 62476358c349..f373afde58e4 100644 --- a/drivers/pinctrl/pinctrl-apple.c +++ b/drivers/pinctrl/pinctrl-apple.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 84b398619c47..c697a4c3456a 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index b7aab12f11c1..5038cb535e38 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c index 8909b57810af..2464acf0b854 100644 --- a/drivers/pinctrl/pinctrl-generic.c +++ b/drivers/pinctrl/pinctrl-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/compat.h> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index ee35dfe14203..dad036610c9e 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Sean Anderson seanga2@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-qe-io.c b/drivers/pinctrl/pinctrl-qe-io.c index dc0be7ce3bd6..61db9274cc3e 100644 --- a/drivers/pinctrl/pinctrl-qe-io.c +++ b/drivers/pinctrl/pinctrl-qe-io.c @@ -6,7 +6,6 @@
- based on source code of Shlomi Gridish
*/
-#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 776597745099..a5d056643a0f 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -4,7 +4,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/pinctrl/sandbox-pinmux.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index d1db377c1379..a3802d22d4f9 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <mapmem.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index 1ff7ea005551..4996b69d9afb 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <bitfield.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 509e2a80e9a5..61f335c4eb14 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <log.h> #include <i2c.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index fe2ba5021a78..d9bda7494e23 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <malloc.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index eb17a4290b7d..6fa203a3b861 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -8,7 +8,6 @@
- Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 54d97ac0ae37..9f38b56e9c0e 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -4,7 +4,6 @@
- Copyright (c) 2015 Microchip Technology Inc.
- Written by Purna Chandra Mandal purna.mandal@microchip.com
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 7120b8edba00..eada1001240c 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <log.h> diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index b14a8921af4f..0c7437822ff2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-apq8096.c b/drivers/pinctrl/qcom/pinctrl-apq8096.c index 9697cb5beb7a..132ece868bf2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8096.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8096.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c index 26ab487857fe..3215c677b263 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c @@ -7,7 +7,6 @@
- Author: Robert Marko robert.marko@sartura.hr
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c b/drivers/pinctrl/qcom/pinctrl-qcom.c index e68971b37ff0..3c3336e76358 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcom.c +++ b/drivers/pinctrl/qcom/pinctrl-qcom.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index 4b7c670c90b7..fb6defaeddf0 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcs404.c +++ b/drivers/pinctrl/qcom/pinctrl-qcs404.c @@ -5,7 +5,6 @@
- (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index c1e5cc01fded..f1a23f510999 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index 2c35491b24d8..cc7885bae408 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index afcd34396e27..b14386ccd937 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3066.c b/drivers/pinctrl/rockchip/pinctrl-rk3066.c index 598b63223e36..60e088a9a6f0 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3066.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3066.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 355c45eb7f8c..d00fc3da8b23 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 9a982cbfad9c..83db51f66ae4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index 351406da2d45..b804597c0484 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index a976b7aeeb27..3870c1b7a341 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index f9ac6347eaf1..2cd91b10a3bd 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 65a750076773..47c2e923a1bb 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index ba867a891748..9ae06ed19e9c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index ae785573baf5..b7a5092c032b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3568.c b/drivers/pinctrl/rockchip/pinctrl-rk3568.c index 1d4391982605..5deedc648a41 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3568.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3568.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3588.c b/drivers/pinctrl/rockchip/pinctrl-rk3588.c index 548cf09bcca4..98ababc7c907 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3588.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3588.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 8ef089994f46..3e74e2f14895 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 5b70b503d2b1..3eff5f59598c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1126.c b/drivers/pinctrl/rockchip/pinctrl-rv1126.c index eefb8b17768b..efa2408b204b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1126.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1126.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 9b09cc21cfaa..95b1a752de2e 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -7,7 +7,6 @@
- Author: Jianlong Huang jianlong.huang@starfivetech.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra114.c b/drivers/pinctrl/tegra/funcmux-tegra114.c index 23a27c868881..23e9e2383679 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra114.c +++ b/drivers/pinctrl/tegra/funcmux-tegra114.c @@ -5,7 +5,6 @@
/* Tegra114 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra124.c b/drivers/pinctrl/tegra/funcmux-tegra124.c index e7ad85fde2d0..b041cead3446 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra124.c +++ b/drivers/pinctrl/tegra/funcmux-tegra124.c @@ -6,7 +6,6 @@
/* Tegra124 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra20.c b/drivers/pinctrl/tegra/funcmux-tegra20.c index 90fe0cba8ea4..b8c913237853 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra20.c +++ b/drivers/pinctrl/tegra/funcmux-tegra20.c @@ -4,7 +4,6 @@ */
/* Tegra20 high-level function multiplexing */ -#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra210.c b/drivers/pinctrl/tegra/funcmux-tegra210.c index 30d994a17ffa..d52b6150e590 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra210.c +++ b/drivers/pinctrl/tegra/funcmux-tegra210.c @@ -6,7 +6,6 @@
/* Tegra210 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra30.c b/drivers/pinctrl/tegra/funcmux-tegra30.c index c3ee787f33b1..e31b859beb8a 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra30.c +++ b/drivers/pinctrl/tegra/funcmux-tegra30.c @@ -5,7 +5,6 @@
/* Tegra30 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-common.c b/drivers/pinctrl/tegra/pinmux-common.c index 16b03bfe7b06..5266c8db4876 100644 --- a/drivers/pinctrl/tegra/pinmux-common.c +++ b/drivers/pinctrl/tegra/pinmux-common.c @@ -4,7 +4,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra114.c b/drivers/pinctrl/tegra/pinmux-tegra114.c index 11796602c548..15c6b653aed8 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra114.c +++ b/drivers/pinctrl/tegra/pinmux-tegra114.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra124.c b/drivers/pinctrl/tegra/pinmux-tegra124.c index 261ce64b205e..6d5b720aa0e6 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra124.c +++ b/drivers/pinctrl/tegra/pinmux-tegra124.c @@ -3,7 +3,6 @@
- Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra20.c b/drivers/pinctrl/tegra/pinmux-tegra20.c index 0af39e74c53b..c1f86476b9ef 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra20.c +++ b/drivers/pinctrl/tegra/pinmux-tegra20.c @@ -5,7 +5,6 @@
/* Tegra20 pin multiplexing functions */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra30.c b/drivers/pinctrl/tegra/pinmux-tegra30.c index d11b2aa572df..59ce9cea4a97 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra30.c +++ b/drivers/pinctrl/tegra/pinmux-tegra30.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index bdca3f2f7156..eafb65496a3d 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c index a1a3cd73859a..778a9899483c 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c index 7a92a46c17f5..3ef10151dabf 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index d33e4d7dd259..9302e309e20f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c index 0e3eb131ecf7..f7c5bf3bcaed 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c index 7ba2266092f0..2704a50749e5 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c index 9ce2e2c270ef..655ec6e60573 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c index e8c2018097c2..226272c2b82f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c index 8a8f1269bb51..8df13ca209c7 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c @@ -5,7 +5,6 @@
- Author: Dai Okamura dai.okamura@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c index 04c06fb280e2..c045ae99ac53 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Stefan Roese sr@denx.de Cc: Stefan Bosch stefan_b@posteo.net Cc: Mark Kettenis kettenis@openbsd.org Cc: Sean Anderson seanga2@gmail.com Cc: Simon Glass sjg@chromium.org Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Michal Simek michal.simek@amd.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Minkyu Kang mk7.kang@samsung.com Cc: Sam Protsenko semen.protsenko@linaro.org Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Matthias Schiffer matthias.schiffer@ew.tq-group.com Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Volodymyr Babchuk Volodymyr_Babchuk@epam.com Cc: Robert Marko robert.marko@sartura.hr
drivers/pinctrl/aspeed/pinctrl_ast2500.c | 1 - drivers/pinctrl/aspeed/pinctrl_ast2600.c | 1 - drivers/pinctrl/ath79/pinctrl_ar933x.c | 1 - drivers/pinctrl/ath79/pinctrl_qca953x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 1 - drivers/pinctrl/broadcom/pinctrl-bcm6838.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos7420.c | 1 - drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 1 - drivers/pinctrl/intel/pinctrl.c | 1 - drivers/pinctrl/intel/pinctrl_apl.c | 1 - drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 1 - drivers/pinctrl/meson/pinctrl-meson-a1.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 - drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 - drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 - drivers/pinctrl/meson/pinctrl-meson.c | 1 - drivers/pinctrl/mscc/mscc-common.c | 1 - drivers/pinctrl/mscc/pinctrl-jr2.c | 1 - drivers/pinctrl/mscc/pinctrl-luton.c | 1 - drivers/pinctrl/mscc/pinctrl-ocelot.c | 1 - drivers/pinctrl/mscc/pinctrl-serval.c | 1 - drivers/pinctrl/mscc/pinctrl-servalt.c | 1 - drivers/pinctrl/mtmips/pinctrl-mt7628.c | 1 - drivers/pinctrl/mtmips/pinctrl-mtmips-common.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 - drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 1 - drivers/pinctrl/mvebu/pinctrl-mvebu.c | 1 - drivers/pinctrl/nexell/pinctrl-nexell.c | 1 - drivers/pinctrl/nexell/pinctrl-s5pxx18.c | 1 - drivers/pinctrl/nxp/pinctrl-imx.c | 1 - drivers/pinctrl/nxp/pinctrl-imx5.c | 1 - drivers/pinctrl/nxp/pinctrl-imx6.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7.c | 1 - drivers/pinctrl/nxp/pinctrl-imx7ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8.c | 1 - drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 1 - drivers/pinctrl/nxp/pinctrl-imxrt.c | 1 - drivers/pinctrl/nxp/pinctrl-mxs.c | 1 - drivers/pinctrl/nxp/pinctrl-scu.c | 1 - drivers/pinctrl/nxp/pinctrl-vf610.c | 1 - drivers/pinctrl/pinctrl-apple.c | 1 - drivers/pinctrl/pinctrl-at91-pio4.c | 1 - drivers/pinctrl/pinctrl-at91.c | 1 - drivers/pinctrl/pinctrl-generic.c | 1 - drivers/pinctrl/pinctrl-k210.c | 1 - drivers/pinctrl/pinctrl-qe-io.c | 1 - drivers/pinctrl/pinctrl-sandbox.c | 1 - drivers/pinctrl/pinctrl-single.c | 1 - drivers/pinctrl/pinctrl-sti.c | 1 - drivers/pinctrl/pinctrl-stmfx.c | 1 - drivers/pinctrl/pinctrl-uclass.c | 1 - drivers/pinctrl/pinctrl-zynqmp.c | 1 - drivers/pinctrl/pinctrl_pic32.c | 1 - drivers/pinctrl/pinctrl_stm32.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 - drivers/pinctrl/qcom/pinctrl-apq8096.c | 1 - drivers/pinctrl/qcom/pinctrl-ipq4019.c | 1 - drivers/pinctrl/qcom/pinctrl-qcom.c | 1 - drivers/pinctrl/qcom/pinctrl-qcs404.c | 1 - drivers/pinctrl/qcom/pinctrl-sdm845.c | 1 - drivers/pinctrl/rockchip/pinctrl-px30.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3036.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3066.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3128.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3188.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk322x.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3288.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3308.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3328.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3368.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3399.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3568.c | 1 - drivers/pinctrl/rockchip/pinctrl-rk3588.c | 1 - drivers/pinctrl/rockchip/pinctrl-rockchip-core.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1108.c | 1 - drivers/pinctrl/rockchip/pinctrl-rv1126.c | 1 - drivers/pinctrl/starfive/pinctrl-starfive.c | 1 - drivers/pinctrl/tegra/funcmux-tegra114.c | 1 - drivers/pinctrl/tegra/funcmux-tegra124.c | 1 - drivers/pinctrl/tegra/funcmux-tegra20.c | 1 - drivers/pinctrl/tegra/funcmux-tegra210.c | 1 - drivers/pinctrl/tegra/funcmux-tegra30.c | 1 - drivers/pinctrl/tegra/pinmux-common.c | 1 - drivers/pinctrl/tegra/pinmux-tegra114.c | 1 - drivers/pinctrl/tegra/pinmux-tegra124.c | 1 - drivers/pinctrl/tegra/pinmux-tegra20.c | 1 - drivers/pinctrl/tegra/pinmux-tegra30.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 - drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 - 101 files changed, 101 deletions(-)
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index 93920a6389bf..9e7c347caf89 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -3,7 +3,6 @@
- Copyright 2017 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c index 8a4f9705ca93..bc12590e5836 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c @@ -3,7 +3,6 @@
- Copyright (C) ASPEED Technology Inc.
*/
-#include <common.h> #include <errno.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2600.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index eb673a9f69cb..61e37a2e5598 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index 0d534268e966..e4f695fc4d44 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index e949cb70900a..cf9350c151e0 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -10,7 +10,6 @@
*/
-#include <common.h> #include <config.h> #include <errno.h> #include <dm.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c index 58f28a137096..7d0c09a130c6 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index 8a045cdf7aa8..b393127c642c 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -6,7 +6,6 @@ */
#include <log.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c index 77d510d8f600..8fdf60715a53 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c @@ -5,7 +5,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c index 1b696fdfd288..61b98443daf3 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c @@ -9,7 +9,6 @@
- Thomas Abraham thomas.ab@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index 1607000dedc1..6cfe83a593a2 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -16,7 +16,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index 181a6ff27026..e554d2854353 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_GPIO
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 0baef57c1c2f..37fc28bb7790 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -4,7 +4,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-a1.c b/drivers/pinctrl/meson/pinctrl-meson-a1.c index 30cf3bc0be4e..7e9ac6390b1e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-a1.c +++ b/drivers/pinctrl/meson/pinctrl-meson-a1.c @@ -6,7 +6,6 @@
- Author: Igor Prusov ivprusov@sberdevices.ru
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-a1-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index cfe94cf9e17d..52c726cf038e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -6,7 +6,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/io.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 820a6c9bb1aa..94e09cd3f8a2 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -7,7 +7,6 @@
- Author: Xingyu Chen xingyu.chen@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-axg-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c index 90a4f8056cdb..24f47f825582 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c +++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c @@ -8,7 +8,6 @@
- Author: Yixun Lan yixun.lan@amlogic.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-g12a-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index 99502d89c6c0..396b3a0e842e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -5,7 +5,6 @@
#include <log.h> #include <asm/gpio.h> -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 93a895c9fa7f..03ae1f9f8a5d 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxbb-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index a44145e2d4e8..16517f95ddbf 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -6,7 +6,6 @@
- Copyright (C) 2016 Endless Mobile, Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxl-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index ee362d8464fc..babf1bccc969 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 - Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 307ed1db8750..2af5587ec47a 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c index cb340581cc0f..4ef4040cd702 100644 --- a/drivers/pinctrl/mscc/pinctrl-jr2.c +++ b/drivers/pinctrl/mscc/pinctrl-jr2.c @@ -6,7 +6,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c index 325c9a9705b2..7707350aace6 100644 --- a/drivers/pinctrl/mscc/pinctrl-luton.c +++ b/drivers/pinctrl/mscc/pinctrl-luton.c @@ -7,7 +7,6 @@
- Copyright (c) 2018 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c index 57e2ef0d7c16..826388c2f746 100644 --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c @@ -10,7 +10,6 @@
#include <asm/gpio.h> #include <asm/system.h> -#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c index a6b9796df81f..2081cd6750c8 100644 --- a/drivers/pinctrl/mscc/pinctrl-serval.c +++ b/drivers/pinctrl/mscc/pinctrl-serval.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c index 8e8678580db1..efa4e26d9f72 100644 --- a/drivers/pinctrl/mscc/pinctrl-servalt.c +++ b/drivers/pinctrl/mscc/pinctrl-servalt.c @@ -6,7 +6,6 @@
- Copyright (c) 2019 Microsemi Corporation
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index 79c63c7caec6..dc7acec4a77f 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c index 869b78106851..bab34e97b615 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c +++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index e834dddfd137..64036296e24d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -16,7 +16,6 @@
*/
-#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c index 252151f3e5d9..78184d2860a8 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later // (C) 2022 Pali Rohár pali@kernel.org
-#include <common.h> #include <config.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index fd49a97b5b0a..0d5fa4ceb9ca 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <config.h> #include <fdtdec.h> #include <errno.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index 20497a746d26..d5be7baf50dd 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -5,7 +5,6 @@
- Bongyu, KOO freestyle@nexell.co.kr
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index 863eb1455d23..e7d0994f29e7 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -7,7 +7,6 @@
- (C) Copyright 2019 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 1596dcc4747e..ff466c491041 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <malloc.h> #include <mapmem.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c index b32b748cfc63..6b690fdce8fd 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx5.c +++ b/drivers/pinctrl/nxp/pinctrl-imx5.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx6.c b/drivers/pinctrl/nxp/pinctrl-imx6.c index 6994dbb61a3d..322eec87ff5d 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx6.c +++ b/drivers/pinctrl/nxp/pinctrl-imx6.c @@ -4,7 +4,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c index 77ddb8e0b9d5..a8275e26456b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Peng Fan van.freenix@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c index 6da9ff7c5bce..7ea2dbe7d36b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 46af44ecb1f2..4e9a9ea68086 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -3,7 +3,6 @@
- Copyright 2018 NXP
*/
-#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c index 4e8fa08bc6e3..73d3c009d5b6 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-imxrt.c b/drivers/pinctrl/nxp/pinctrl-imxrt.c index 53b70da869ec..23f07f8d1e05 100644 --- a/drivers/pinctrl/nxp/pinctrl-imxrt.c +++ b/drivers/pinctrl/nxp/pinctrl-imxrt.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index eb90e28d4b21..85ab5fdf6404 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c index 4959834c0fcd..42d5c96468c7 100644 --- a/drivers/pinctrl/nxp/pinctrl-scu.c +++ b/drivers/pinctrl/nxp/pinctrl-scu.c @@ -3,7 +3,6 @@
- Copyright 2018-2019 NXP
*/
-#include <common.h> #include <errno.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pinctrl/nxp/pinctrl-vf610.c b/drivers/pinctrl/nxp/pinctrl-vf610.c index 14e2e9d3ee61..adf3073f1be0 100644 --- a/drivers/pinctrl/nxp/pinctrl-vf610.c +++ b/drivers/pinctrl/nxp/pinctrl-vf610.c @@ -4,7 +4,6 @@
- Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/pinctrl-apple.c b/drivers/pinctrl/pinctrl-apple.c index 62476358c349..f373afde58e4 100644 --- a/drivers/pinctrl/pinctrl-apple.c +++ b/drivers/pinctrl/pinctrl-apple.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 84b398619c47..c697a4c3456a 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index b7aab12f11c1..5038cb535e38 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -6,7 +6,6 @@
Wenyou.Yang <wenyou.yang@atmel.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c index 8909b57810af..2464acf0b854 100644 --- a/drivers/pinctrl/pinctrl-generic.c +++ b/drivers/pinctrl/pinctrl-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/compat.h> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index ee35dfe14203..dad036610c9e 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Sean Anderson seanga2@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-qe-io.c b/drivers/pinctrl/pinctrl-qe-io.c index dc0be7ce3bd6..61db9274cc3e 100644 --- a/drivers/pinctrl/pinctrl-qe-io.c +++ b/drivers/pinctrl/pinctrl-qe-io.c @@ -6,7 +6,6 @@
- based on source code of Shlomi Gridish
*/
-#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 776597745099..a5d056643a0f 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -4,7 +4,6 @@
- Copyright (C) 2015 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/pinctrl/sandbox-pinmux.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index d1db377c1379..a3802d22d4f9 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <mapmem.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index 1ff7ea005551..4996b69d9afb 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <bitfield.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 509e2a80e9a5..61f335c4eb14 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <log.h> #include <i2c.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index fe2ba5021a78..d9bda7494e23 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <malloc.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index eb17a4290b7d..6fa203a3b861 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -8,7 +8,6 @@
- Copyright (C) 2021 Xilinx, Inc. All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 54d97ac0ae37..9f38b56e9c0e 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -4,7 +4,6 @@
- Copyright (c) 2015 Microchip Technology Inc.
- Written by Purna Chandra Mandal purna.mandal@microchip.com
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 7120b8edba00..eada1001240c 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_PINCTRL
-#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <log.h> diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index b14a8921af4f..0c7437822ff2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-apq8096.c b/drivers/pinctrl/qcom/pinctrl-apq8096.c index 9697cb5beb7a..132ece868bf2 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8096.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8096.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c index 26ab487857fe..3215c677b263 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c @@ -7,7 +7,6 @@
- Author: Robert Marko robert.marko@sartura.hr
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c b/drivers/pinctrl/qcom/pinctrl-qcom.c index e68971b37ff0..3c3336e76358 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcom.c +++ b/drivers/pinctrl/qcom/pinctrl-qcom.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index 4b7c670c90b7..fb6defaeddf0 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcs404.c +++ b/drivers/pinctrl/qcom/pinctrl-qcs404.c @@ -5,7 +5,6 @@
- (C) Copyright 2022 Sumit Garg sumit.garg@linaro.org
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index c1e5cc01fded..f1a23f510999 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h>
#include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index 2c35491b24d8..cc7885bae408 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index afcd34396e27..b14386ccd937 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3066.c b/drivers/pinctrl/rockchip/pinctrl-rk3066.c index 598b63223e36..60e088a9a6f0 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3066.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3066.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 355c45eb7f8c..d00fc3da8b23 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 9a982cbfad9c..83db51f66ae4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index 351406da2d45..b804597c0484 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index a976b7aeeb27..3870c1b7a341 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index f9ac6347eaf1..2cd91b10a3bd 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 65a750076773..47c2e923a1bb 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index ba867a891748..9ae06ed19e9c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index ae785573baf5..b7a5092c032b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3568.c b/drivers/pinctrl/rockchip/pinctrl-rk3568.c index 1d4391982605..5deedc648a41 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3568.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3568.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3588.c b/drivers/pinctrl/rockchip/pinctrl-rk3588.c index 548cf09bcca4..98ababc7c907 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3588.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3588.c @@ -3,7 +3,6 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 8ef089994f46..3e74e2f14895 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 5b70b503d2b1..3eff5f59598c 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -3,7 +3,6 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1126.c b/drivers/pinctrl/rockchip/pinctrl-rv1126.c index eefb8b17768b..efa2408b204b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1126.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1126.c @@ -3,7 +3,6 @@
- (C) Copyright 2020 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 9b09cc21cfaa..95b1a752de2e 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -7,7 +7,6 @@
- Author: Jianlong Huang jianlong.huang@starfivetech.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra114.c b/drivers/pinctrl/tegra/funcmux-tegra114.c index 23a27c868881..23e9e2383679 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra114.c +++ b/drivers/pinctrl/tegra/funcmux-tegra114.c @@ -5,7 +5,6 @@
/* Tegra114 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra124.c b/drivers/pinctrl/tegra/funcmux-tegra124.c index e7ad85fde2d0..b041cead3446 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra124.c +++ b/drivers/pinctrl/tegra/funcmux-tegra124.c @@ -6,7 +6,6 @@
/* Tegra124 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra20.c b/drivers/pinctrl/tegra/funcmux-tegra20.c index 90fe0cba8ea4..b8c913237853 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra20.c +++ b/drivers/pinctrl/tegra/funcmux-tegra20.c @@ -4,7 +4,6 @@ */
/* Tegra20 high-level function multiplexing */ -#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra210.c b/drivers/pinctrl/tegra/funcmux-tegra210.c index 30d994a17ffa..d52b6150e590 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra210.c +++ b/drivers/pinctrl/tegra/funcmux-tegra210.c @@ -6,7 +6,6 @@
/* Tegra210 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra30.c b/drivers/pinctrl/tegra/funcmux-tegra30.c index c3ee787f33b1..e31b859beb8a 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra30.c +++ b/drivers/pinctrl/tegra/funcmux-tegra30.c @@ -5,7 +5,6 @@
/* Tegra30 high-level function multiplexing */
-#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-common.c b/drivers/pinctrl/tegra/pinmux-common.c index 16b03bfe7b06..5266c8db4876 100644 --- a/drivers/pinctrl/tegra/pinmux-common.c +++ b/drivers/pinctrl/tegra/pinmux-common.c @@ -4,7 +4,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra114.c b/drivers/pinctrl/tegra/pinmux-tegra114.c index 11796602c548..15c6b653aed8 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra114.c +++ b/drivers/pinctrl/tegra/pinmux-tegra114.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra124.c b/drivers/pinctrl/tegra/pinmux-tegra124.c index 261ce64b205e..6d5b720aa0e6 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra124.c +++ b/drivers/pinctrl/tegra/pinmux-tegra124.c @@ -3,7 +3,6 @@
- Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra20.c b/drivers/pinctrl/tegra/pinmux-tegra20.c index 0af39e74c53b..c1f86476b9ef 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra20.c +++ b/drivers/pinctrl/tegra/pinmux-tegra20.c @@ -5,7 +5,6 @@
/* Tegra20 pin multiplexing functions */
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/tegra/pinmux-tegra30.c b/drivers/pinctrl/tegra/pinmux-tegra30.c index d11b2aa572df..59ce9cea4a97 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra30.c +++ b/drivers/pinctrl/tegra/pinmux-tegra30.c @@ -3,7 +3,6 @@
- Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index bdca3f2f7156..eafb65496a3d 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c index a1a3cd73859a..778a9899483c 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c index 7a92a46c17f5..3ef10151dabf 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index d33e4d7dd259..9302e309e20f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c index 0e3eb131ecf7..f7c5bf3bcaed 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c index 7ba2266092f0..2704a50749e5 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c index 9ce2e2c270ef..655ec6e60573 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c index e8c2018097c2..226272c2b82f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c index 8a8f1269bb51..8df13ca209c7 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c @@ -5,7 +5,6 @@
- Author: Dai Okamura dai.okamura@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c index 04c06fb280e2..c045ae99ac53 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c @@ -4,7 +4,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <dm/pinctrl.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Michal Simek michal.simek@amd.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Fabio Estevam festevam@denx.de Cc: Marek Vasut marex@denx.de Cc: Sean Anderson seanga2@gmail.com Cc: Bryan Brattlof bb@ti.com Cc: Nishanth Menon nm@ti.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Igor Opaniuk igor.opaniuk@foundries.io Cc: Roger Quadros rogerq@kernel.org Cc: Apurva Nandan a-nandan@ti.com Cc: Simon Glass sjg@chromium.org Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Bhargav Raviprakash bhargav.r@ltts.com Cc: Udit Kumar u-kumar1@ti.com Cc: Dhruva Gole d-gole@ti.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Joseph Chen chenjh@rock-chips.com Cc: shengfei Xu xsf@rock-chips.com Cc: William Wu william.wu@rock-chips.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com Cc: Etienne Carriere etienne.carriere@foss.st.com --- drivers/power/acpi_pmc/acpi-pmc-uclass.c | 1 - drivers/power/acpi_pmc/pmc_emul.c | 1 - drivers/power/acpi_pmc/sandbox.c | 1 - drivers/power/axp152.c | 2 +- drivers/power/axp209.c | 2 +- drivers/power/axp221.c | 1 - drivers/power/axp305.c | 1 - drivers/power/axp313.c | 1 - drivers/power/axp809.c | 1 - drivers/power/axp818.c | 1 - drivers/power/domain/apple-pmgr.c | 1 - drivers/power/domain/bcm6328-power-domain.c | 1 - drivers/power/domain/imx8-power-domain-legacy.c | 1 - drivers/power/domain/imx8-power-domain.c | 1 - drivers/power/domain/imx8m-power-domain.c | 1 - drivers/power/domain/imx8mp-hsiomix.c | 1 - drivers/power/domain/meson-ee-pwrc.c | 1 - drivers/power/domain/meson-gx-pwrc-vpu.c | 1 - drivers/power/domain/mtk-power-domain.c | 1 - drivers/power/domain/power-domain-uclass.c | 1 - drivers/power/domain/sandbox-power-domain-test.c | 1 - drivers/power/domain/sandbox-power-domain.c | 1 - drivers/power/domain/tegra186-power-domain.c | 1 - drivers/power/domain/ti-power-domain.c | 1 - drivers/power/domain/ti-sci-power-domain.c | 1 - drivers/power/domain/zynqmp-power-domain.c | 1 - drivers/power/exynos-tmu.c | 3 ++- drivers/power/mt6323.c | 1 - drivers/power/pmic/ab8500.c | 1 - drivers/power/pmic/act8846.c | 1 - drivers/power/pmic/as3722.c | 1 - drivers/power/pmic/as3722_gpio.c | 1 - drivers/power/pmic/bd71837.c | 1 - drivers/power/pmic/da9063.c | 1 - drivers/power/pmic/fan53555.c | 1 - drivers/power/pmic/i2c_pmic_emul.c | 1 - drivers/power/pmic/lp873x.c | 1 - drivers/power/pmic/lp87565.c | 1 - drivers/power/pmic/max77686.c | 1 - drivers/power/pmic/max8997.c | 1 - drivers/power/pmic/max8998.c | 1 - drivers/power/pmic/mc34708.c | 1 - drivers/power/pmic/mp5416.c | 1 - drivers/power/pmic/palmas.c | 1 - drivers/power/pmic/pca9450.c | 1 - drivers/power/pmic/pfuze100.c | 1 - drivers/power/pmic/pmic-uclass.c | 1 - drivers/power/pmic/pmic_hi6553.c | 1 - drivers/power/pmic/pmic_ltc3676.c | 1 - drivers/power/pmic/pmic_mc34vr500.c | 1 - drivers/power/pmic/pmic_pca9450.c | 1 - drivers/power/pmic/pmic_pfuze100.c | 1 - drivers/power/pmic/pmic_pfuze3000.c | 1 - drivers/power/pmic/pmic_qcom.c | 1 - drivers/power/pmic/pmic_tps62362.c | 1 - drivers/power/pmic/pmic_tps65217.c | 1 - drivers/power/pmic/pmic_tps65218.c | 1 - drivers/power/pmic/pmic_tps65910.c | 1 - drivers/power/pmic/pmic_tps65910_dm.c | 1 - drivers/power/pmic/rk8xx.c | 1 - drivers/power/pmic/rn5t567.c | 1 - drivers/power/pmic/s2mps11.c | 1 - drivers/power/pmic/s5m8767.c | 1 - drivers/power/pmic/sandbox.c | 1 - drivers/power/pmic/stpmic1.c | 1 - drivers/power/pmic/tps65090.c | 1 - drivers/power/pmic/tps65219.c | 1 - drivers/power/pmic/tps65941.c | 1 - drivers/power/power_core.c | 1 - drivers/power/power_dialog.c | 2 +- drivers/power/power_fsl.c | 2 +- drivers/power/power_i2c.c | 1 - drivers/power/power_spi.c | 1 - drivers/power/regulator/act8846.c | 1 - drivers/power/regulator/anatop_regulator.c | 1 - drivers/power/regulator/as3722_regulator.c | 1 - drivers/power/regulator/bd71837.c | 1 - drivers/power/regulator/da9063.c | 1 - drivers/power/regulator/fan53555.c | 1 - drivers/power/regulator/fixed.c | 1 - drivers/power/regulator/gpio-regulator.c | 1 - drivers/power/regulator/lp873x_regulator.c | 1 - drivers/power/regulator/lp87565_regulator.c | 1 - drivers/power/regulator/max77686.c | 1 - drivers/power/regulator/npcm8xx_regulator.c | 1 - drivers/power/regulator/palmas_regulator.c | 1 - drivers/power/regulator/pbias_regulator.c | 1 - drivers/power/regulator/pca9450.c | 1 - drivers/power/regulator/pfuze100.c | 1 - drivers/power/regulator/pwm_regulator.c | 1 - drivers/power/regulator/regulator-uclass.c | 1 - drivers/power/regulator/regulator_common.c | 1 - drivers/power/regulator/rk8xx.c | 1 - drivers/power/regulator/s2mps11_regulator.c | 1 - drivers/power/regulator/s5m8767.c | 1 - drivers/power/regulator/sandbox.c | 1 - drivers/power/regulator/scmi_regulator.c | 1 - drivers/power/regulator/stm32-vrefbuf.c | 1 - drivers/power/regulator/stpmic1.c | 1 - drivers/power/regulator/tps62360_regulator.c | 1 - drivers/power/regulator/tps65090_regulator.c | 2 +- drivers/power/regulator/tps65219_regulator.c | 1 - drivers/power/regulator/tps65910_regulator.c | 1 - drivers/power/regulator/tps65941_regulator.c | 1 - drivers/power/sy8106a.c | 1 - drivers/power/tps6586x.c | 2 +- 106 files changed, 8 insertions(+), 106 deletions(-)
diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c index 34446a34e60d..c289cede15b8 100644 --- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c +++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_ACPI_PMC
-#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c index 8015031da859..8eff3d9fa7ac 100644 --- a/drivers/power/acpi_pmc/pmc_emul.c +++ b/drivers/power/acpi_pmc/pmc_emul.c @@ -6,7 +6,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c index 8cf03f737c08..ed1bb1980931 100644 --- a/drivers/power/acpi_pmc/sandbox.c +++ b/drivers/power/acpi_pmc/sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_ACPI_PMC
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c index a93987c15382..5a62382ab86e 100644 --- a/drivers/power/axp152.c +++ b/drivers/power/axp152.c @@ -3,8 +3,8 @@ * (C) Copyright 2012 * Henrik Nordstrom henrik@henriknordstrom.net */ -#include <common.h> #include <command.h> +#include <linux/errno.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h>
diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index 3447b9f0113a..6ae416982ebe 100644 --- a/drivers/power/axp209.c +++ b/drivers/power/axp209.c @@ -4,11 +4,11 @@ * Henrik Nordstrom henrik@henriknordstrom.net */
-#include <common.h> #include <command.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h> #include <linux/delay.h> +#include <linux/errno.h>
#ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08 # define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c index d251c314b987..c22ca03f4694 100644 --- a/drivers/power/axp221.c +++ b/drivers/power/axp221.c @@ -9,7 +9,6 @@ * (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl */
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp305.c b/drivers/power/axp305.c index 049ef07f7467..0312ad9af763 100644 --- a/drivers/power/axp305.c +++ b/drivers/power/axp305.c @@ -9,7 +9,6 @@ * (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl */
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp313.c b/drivers/power/axp313.c index bbc9e911115f..09ecb5b1ec28 100644 --- a/drivers/power/axp313.c +++ b/drivers/power/axp313.c @@ -10,7 +10,6 @@ * (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl */
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c index d327a584ded0..9e38e1a74508 100644 --- a/drivers/power/axp809.c +++ b/drivers/power/axp809.c @@ -10,7 +10,6 @@ * (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl */
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c index 08286ea3b550..83ae6ecc138d 100644 --- a/drivers/power/axp818.c +++ b/drivers/power/axp818.c @@ -10,7 +10,6 @@ * (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl */
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/domain/apple-pmgr.c b/drivers/power/domain/apple-pmgr.c index 402c5b1fd188..bf9940621ee7 100644 --- a/drivers/power/domain/apple-pmgr.c +++ b/drivers/power/domain/apple-pmgr.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org */
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/power/domain/bcm6328-power-domain.c b/drivers/power/domain/bcm6328-power-domain.c index 80144dd97725..36b5a9337480 100644 --- a/drivers/power/domain/bcm6328-power-domain.c +++ b/drivers/power/domain/bcm6328-power-domain.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index c8ca2665752f..713a51d7807d 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -3,7 +3,6 @@ * Copyright 2017 NXP */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8-power-domain.c b/drivers/power/domain/imx8-power-domain.c index b45e468756bf..e8dcc057fee0 100644 --- a/drivers/power/domain/imx8-power-domain.c +++ b/drivers/power/domain/imx8-power-domain.c @@ -4,7 +4,6 @@ */
#define DEBUG -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index df5d7d695621..8b6870c86463 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -3,7 +3,6 @@ * Copyright 2017 NXP */
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8mp-hsiomix.c b/drivers/power/domain/imx8mp-hsiomix.c index 6188a04c45ed..455ad53ef525 100644 --- a/drivers/power/domain/imx8mp-hsiomix.c +++ b/drivers/power/domain/imx8mp-hsiomix.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Marek Vasut marex@denx.de */
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <clk-uclass.h> diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c index 676fded8080a..20e9f32b3819 100644 --- a/drivers/power/domain/meson-ee-pwrc.c +++ b/drivers/power/domain/meson-ee-pwrc.c @@ -4,7 +4,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c index 612660ce89f9..1c56e8508c32 100644 --- a/drivers/power/domain/meson-gx-pwrc-vpu.c +++ b/drivers/power/domain/meson-gx-pwrc-vpu.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 3b84147d4814..2d1ba1855a5b 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c index f6286c70c1d7..938bd8cbc9ff 100644 --- a/drivers/power/domain/power-domain-uclass.c +++ b/drivers/power/domain/power-domain-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_POWER_DOMAIN
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/sandbox-power-domain-test.c b/drivers/power/domain/sandbox-power-domain-test.c index 1bf52f1d861c..08c15ef342b3 100644 --- a/drivers/power/domain/sandbox-power-domain-test.c +++ b/drivers/power/domain/sandbox-power-domain-test.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain.h> diff --git a/drivers/power/domain/sandbox-power-domain.c b/drivers/power/domain/sandbox-power-domain.c index 04a071044f3b..9dd490b14a3f 100644 --- a/drivers/power/domain/sandbox-power-domain.c +++ b/drivers/power/domain/sandbox-power-domain.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/tegra186-power-domain.c b/drivers/power/domain/tegra186-power-domain.c index 46da541b75a8..334c460c805f 100644 --- a/drivers/power/domain/tegra186-power-domain.c +++ b/drivers/power/domain/tegra186-power-domain.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c index 8996c40ddc03..b059dd37376d 100644 --- a/drivers/power/domain/ti-power-domain.c +++ b/drivers/power/domain/ti-power-domain.c @@ -7,7 +7,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c index 8d6abe13dbc6..0a9f498b97b1 100644 --- a/drivers/power/domain/ti-sci-power-domain.c +++ b/drivers/power/domain/ti-sci-power-domain.c @@ -8,7 +8,6 @@ * Loosely based on Linux kernel ti_sci_pm_domains.c... */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c index 5ee9e020fb3b..ac93934eb420 100644 --- a/drivers/power/domain/zynqmp-power-domain.c +++ b/drivers/power/domain/zynqmp-power-domain.c @@ -3,7 +3,6 @@ * Copyright (c) 2021, Xilinx. Inc. */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/power/exynos-tmu.c b/drivers/power/exynos-tmu.c index 6d62f6cae40d..21c2fabce1b8 100644 --- a/drivers/power/exynos-tmu.c +++ b/drivers/power/exynos-tmu.c @@ -17,11 +17,12 @@ * MA 02111-1307 USA */
-#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h> +#include <time.h> #include <tmu.h> +#include <asm/io.h> #include <asm/arch/tmu.h> #include <asm/arch/power.h>
diff --git a/drivers/power/mt6323.c b/drivers/power/mt6323.c index 354817a03780..dd6cbcf18206 100644 --- a/drivers/power/mt6323.c +++ b/drivers/power/mt6323.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 Frank Wunderlich frank-w@public-files.de */
-#include <common.h> #include <command.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/power/pmic/ab8500.c b/drivers/power/pmic/ab8500.c index 1f64f217c345..9ba096711e14 100644 --- a/drivers/power/pmic/ab8500.c +++ b/drivers/power/pmic/ab8500.c @@ -7,7 +7,6 @@ * Copyright (C) ST-Ericsson SA 2010 */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/power/pmic/act8846.c b/drivers/power/pmic/act8846.c index 8f0f5a6d96e5..3058ef0f893d 100644 --- a/drivers/power/pmic/act8846.c +++ b/drivers/power/pmic/act8846.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722.c b/drivers/power/pmic/as3722.c index c7dd9705d189..9b0f4fb97363 100644 --- a/drivers/power/pmic/as3722.c +++ b/drivers/power/pmic/as3722.c @@ -5,7 +5,6 @@
#define pr_fmt(fmt) "as3722: " fmt
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722_gpio.c b/drivers/power/pmic/as3722_gpio.c index 987fbdf9bc08..52d8bd00b1fd 100644 --- a/drivers/power/pmic/as3722_gpio.c +++ b/drivers/power/pmic/as3722_gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2014 NVIDIA Corporation */
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index ee6ae78e5c4c..a5df2570fc3e 100644 --- a/drivers/power/pmic/bd71837.c +++ b/drivers/power/pmic/bd71837.c @@ -3,7 +3,6 @@ * Copyright 2018 NXP */
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/da9063.c b/drivers/power/pmic/da9063.c index ca95b82e6d01..7bd3df391421 100644 --- a/drivers/power/pmic/da9063.c +++ b/drivers/power/pmic/da9063.c @@ -4,7 +4,6 @@ * Martin Fuzzey martin.fuzzey@flowbird.group */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/fan53555.c b/drivers/power/pmic/fan53555.c index d556b9a5878a..95bf600cbc3f 100644 --- a/drivers/power/pmic/fan53555.c +++ b/drivers/power/pmic/fan53555.c @@ -3,7 +3,6 @@ * (C) 2018 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/power/pmic/i2c_pmic_emul.c b/drivers/power/pmic/i2c_pmic_emul.c index f0a03742f87b..6e81b9c34279 100644 --- a/drivers/power/pmic/i2c_pmic_emul.c +++ b/drivers/power/pmic/i2c_pmic_emul.c @@ -4,7 +4,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c index fda5bc151642..2c8fa4ea312f 100644 --- a/drivers/power/pmic/lp873x.c +++ b/drivers/power/pmic/lp873x.c @@ -4,7 +4,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/lp87565.c b/drivers/power/pmic/lp87565.c index 904e02c4d818..c2ff75bbcdcd 100644 --- a/drivers/power/pmic/lp87565.c +++ b/drivers/power/pmic/lp87565.c @@ -4,7 +4,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max77686.c b/drivers/power/pmic/max77686.c index 7e6f7d1966f1..bfe57b386d3d 100644 --- a/drivers/power/pmic/max77686.c +++ b/drivers/power/pmic/max77686.c @@ -4,7 +4,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max8997.c b/drivers/power/pmic/max8997.c index 504a63bf7431..4afa6c84ef82 100644 --- a/drivers/power/pmic/max8997.c +++ b/drivers/power/pmic/max8997.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/max8998.c b/drivers/power/pmic/max8998.c index d155474447f5..05669023753e 100644 --- a/drivers/power/pmic/max8998.c +++ b/drivers/power/pmic/max8998.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c index 40d732224b6c..43badb5767a5 100644 --- a/drivers/power/pmic/mc34708.c +++ b/drivers/power/pmic/mc34708.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fsl_pmic.h> diff --git a/drivers/power/pmic/mp5416.c b/drivers/power/pmic/mp5416.c index 6180adf77e2d..9d44f0ae655e 100644 --- a/drivers/power/pmic/mp5416.c +++ b/drivers/power/pmic/mp5416.c @@ -2,7 +2,6 @@ /* * Copyright 2020 Gateworks Corporation */ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c index e340a32279fb..f676bf641694 100644 --- a/drivers/power/pmic/palmas.c +++ b/drivers/power/pmic/palmas.c @@ -4,7 +4,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c index 0bbe98cd8a29..07af6273d8ae 100644 --- a/drivers/power/pmic/pca9450.c +++ b/drivers/power/pmic/pca9450.c @@ -3,7 +3,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c index 15420acb4725..9e09805d251f 100644 --- a/drivers/power/pmic/pfuze100.c +++ b/drivers/power/pmic/pfuze100.c @@ -4,7 +4,6 @@ * Peng Fan Peng.Fan@freescale.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index 0e2f5e1f4111..bb459816d143 100644 --- a/drivers/power/pmic/pmic-uclass.c +++ b/drivers/power/pmic/pmic-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PMIC
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic_hi6553.c b/drivers/power/pmic/pmic_hi6553.c index 80b9078cf8f0..05305013882d 100644 --- a/drivers/power/pmic/pmic_hi6553.c +++ b/drivers/power/pmic/pmic_hi6553.c @@ -4,7 +4,6 @@ * Peter Griffin peter.griffin@linaro.org */ #include <asm/io.h> -#include <common.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/max8997_muic.h> diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c index af94f37b0f10..145a631b6b24 100644 --- a/drivers/power/pmic/pmic_ltc3676.c +++ b/drivers/power/pmic/pmic_ltc3676.c @@ -4,7 +4,6 @@ * Tim Harvey tharvey@gateworks.com */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_mc34vr500.c b/drivers/power/pmic/pmic_mc34vr500.c index 9dd1c46ea220..0dfdfbdf3dca 100644 --- a/drivers/power/pmic/pmic_mc34vr500.c +++ b/drivers/power/pmic/pmic_mc34vr500.c @@ -4,7 +4,6 @@ * Hou Zhiqiang Zhiqiang.Hou@freescale.com */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pca9450.c b/drivers/power/pmic/pmic_pca9450.c index 8c4d0a92306b..12500ba99901 100644 --- a/drivers/power/pmic/pmic_pca9450.c +++ b/drivers/power/pmic/pmic_pca9450.c @@ -3,7 +3,6 @@ * Copyright 2019 NXP */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze100.c b/drivers/power/pmic/pmic_pfuze100.c index 5115b55e49dc..a266709d8d07 100644 --- a/drivers/power/pmic/pmic_pfuze100.c +++ b/drivers/power/pmic/pmic_pfuze100.c @@ -4,7 +4,6 @@ * Tim Harvey tharvey@gateworks.com */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze3000.c b/drivers/power/pmic/pmic_pfuze3000.c index a6d97252bc9e..602c4744aa6c 100644 --- a/drivers/power/pmic/pmic_pfuze3000.c +++ b/drivers/power/pmic/pmic_pfuze3000.c @@ -4,7 +4,6 @@ * Peng Fan Peng.Fan@freescale.com */
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_qcom.c b/drivers/power/pmic/pmic_qcom.c index f2ac6494811d..92d0a95859b0 100644 --- a/drivers/power/pmic/pmic_qcom.c +++ b/drivers/power/pmic/pmic_qcom.c @@ -4,7 +4,6 @@ * * (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com */ -#include <common.h> #include <dm.h> #include <power/pmic.h> #include <spmi/spmi.h> diff --git a/drivers/power/pmic/pmic_tps62362.c b/drivers/power/pmic/pmic_tps62362.c index 6426d1488a5c..4f0e406d5606 100644 --- a/drivers/power/pmic/pmic_tps62362.c +++ b/drivers/power/pmic/pmic_tps62362.c @@ -4,7 +4,6 @@ * Author: Felipe Balbi balbi@ti.com */
-#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65217.c b/drivers/power/pmic/pmic_tps65217.c index ccbf2235933d..bd44e0d9ae05 100644 --- a/drivers/power/pmic/pmic_tps65217.c +++ b/drivers/power/pmic/pmic_tps65217.c @@ -4,7 +4,6 @@ * Texas Instruments, <www.ti.com> */
-#include <common.h> #include <i2c.h> #include <dm.h> #include <errno.h> diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c index 671749018041..49d07e95cd7c 100644 --- a/drivers/power/pmic/pmic_tps65218.c +++ b/drivers/power/pmic/pmic_tps65218.c @@ -4,7 +4,6 @@ * Texas Instruments, <www.ti.com> */
-#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65910.c b/drivers/power/pmic/pmic_tps65910.c index e3de73082150..df9bb66a7f9c 100644 --- a/drivers/power/pmic/pmic_tps65910.c +++ b/drivers/power/pmic/pmic_tps65910.c @@ -4,7 +4,6 @@ * Texas Instruments, <www.ti.com> */
-#include <common.h> #include <i2c.h> #include <power/tps65910.h>
diff --git a/drivers/power/pmic/pmic_tps65910_dm.c b/drivers/power/pmic/pmic_tps65910_dm.c index ecf836eb0e65..de8d805566aa 100644 --- a/drivers/power/pmic/pmic_tps65910_dm.c +++ b/drivers/power/pmic/pmic_tps65910_dm.c @@ -3,7 +3,6 @@ * Copyright (C) EETS GmbH, 2017, Felix Brack f.brack@eets.ch */
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <i2c.h> diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 3a8261d1749f..12ff26a08558 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/power/pmic/rn5t567.c b/drivers/power/pmic/rn5t567.c index 9d103dd84057..0124d84a7295 100644 --- a/drivers/power/pmic/rn5t567.c +++ b/drivers/power/pmic/rn5t567.c @@ -4,7 +4,6 @@ * Stefan Agner stefan.agner@toradex.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/s2mps11.c b/drivers/power/pmic/s2mps11.c index 5ff4f2052113..17780017035b 100644 --- a/drivers/power/pmic/s2mps11.c +++ b/drivers/power/pmic/s2mps11.c @@ -4,7 +4,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/s5m8767.c b/drivers/power/pmic/s5m8767.c index eea072ae824f..799d00125409 100644 --- a/drivers/power/pmic/s5m8767.c +++ b/drivers/power/pmic/s5m8767.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Google, Inc */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/sandbox.c b/drivers/power/pmic/sandbox.c index 14b82455f5fb..ddc11d6df86f 100644 --- a/drivers/power/pmic/sandbox.c +++ b/drivers/power/pmic/sandbox.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PMIC
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index 8701d4f971c9..c99a0c27b336 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/drivers/power/pmic/stpmic1.c @@ -3,7 +3,6 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/tps65090.c b/drivers/power/pmic/tps65090.c index 2a04d5948a5e..ad2ab34719e5 100644 --- a/drivers/power/pmic/tps65090.c +++ b/drivers/power/pmic/tps65090.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/tps65219.c b/drivers/power/pmic/tps65219.c index 9462afee77fd..0716af027a3a 100644 --- a/drivers/power/pmic/tps65219.c +++ b/drivers/power/pmic/tps65219.c @@ -4,7 +4,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index 943d845086c3..c3490db2a089 100644 --- a/drivers/power/pmic/tps65941.c +++ b/drivers/power/pmic/tps65941.c @@ -4,7 +4,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c index 4f7ba099cd91..1caf9f093468 100644 --- a/drivers/power/power_core.c +++ b/drivers/power/power_core.c @@ -9,7 +9,6 @@ * (C) Copyright 2008-2009 Freescale Semiconductor, Inc. */
-#include <common.h> #include <command.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/power_dialog.c b/drivers/power/power_dialog.c index ad7aaf35a9a0..a5c7ea34c4ae 100644 --- a/drivers/power/power_dialog.c +++ b/drivers/power/power_dialog.c @@ -4,7 +4,7 @@ * Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> +#include <config.h> #include <log.h> #include <power/pmic.h> #include <dialog_pmic.h> diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c index 9dc930fb305a..a10a14a79616 100644 --- a/drivers/power/power_fsl.c +++ b/drivers/power/power_fsl.c @@ -4,7 +4,7 @@ * Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> +#include <config.h> #include <spi.h> #include <power/pmic.h> #include <fsl_pmic.h> diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index b67ac2f027b5..a871fc419872 100644 --- a/drivers/power/power_i2c.c +++ b/drivers/power/power_i2c.c @@ -10,7 +10,6 @@ * (C) Copyright 2019 NXP */
-#include <common.h> #include <log.h> #include <linux/types.h> #include <power/pmic.h> diff --git a/drivers/power/power_spi.c b/drivers/power/power_spi.c index 1eaf9773ef8b..54427316ce42 100644 --- a/drivers/power/power_spi.c +++ b/drivers/power/power_spi.c @@ -9,7 +9,6 @@ * (C) Copyright 2008-2009 Freescale Semiconductor, Inc. */
-#include <common.h> #include <linux/types.h> #include <power/pmic.h> #include <spi.h> diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c index bdce97365dd0..d3e72da0d35a 100644 --- a/drivers/power/regulator/act8846.c +++ b/drivers/power/regulator/act8846.c @@ -8,7 +8,6 @@ * zyw zyw@rock-chips.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <power/act8846_pmic.h> diff --git a/drivers/power/regulator/anatop_regulator.c b/drivers/power/regulator/anatop_regulator.c index 096a1565d5a7..824a753db161 100644 --- a/drivers/power/regulator/anatop_regulator.c +++ b/drivers/power/regulator/anatop_regulator.c @@ -4,7 +4,6 @@ * Copyright (C) 2021 Linaro */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/as3722_regulator.c b/drivers/power/regulator/as3722_regulator.c index ec0776b440bb..8d60965fe9ac 100644 --- a/drivers/power/regulator/as3722_regulator.c +++ b/drivers/power/regulator/as3722_regulator.c @@ -6,7 +6,6 @@ * Placeholder regulator driver for as3722. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c index 913ed88d45f7..59aec1a7313e 100644 --- a/drivers/power/regulator/bd71837.c +++ b/drivers/power/regulator/bd71837.c @@ -5,7 +5,6 @@ * ROHM BD71837 regulator driver */
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/da9063.c b/drivers/power/regulator/da9063.c index 8df1abcf7885..5d566b06a522 100644 --- a/drivers/power/regulator/da9063.c +++ b/drivers/power/regulator/da9063.c @@ -4,7 +4,6 @@ * Martin Fuzzey martin.fuzzey@flowbird.group */
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <power/da9063_pmic.h> diff --git a/drivers/power/regulator/fan53555.c b/drivers/power/regulator/fan53555.c index fa8d88f2e0dc..5cba58f91cac 100644 --- a/drivers/power/regulator/fan53555.c +++ b/drivers/power/regulator/fan53555.c @@ -3,7 +3,6 @@ * (C) 2018 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> #include <bitfield.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 590c288d6575..98c89bf2aff6 100644 --- a/drivers/power/regulator/fixed.c +++ b/drivers/power/regulator/fixed.c @@ -5,7 +5,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <clk.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c index 74137b7b876f..38b22535c3dd 100644 --- a/drivers/power/regulator/gpio-regulator.c +++ b/drivers/power/regulator/gpio-regulator.c @@ -4,7 +4,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c index c326f8efa471..c59d77118ada 100644 --- a/drivers/power/regulator/lp873x_regulator.c +++ b/drivers/power/regulator/lp873x_regulator.c @@ -6,7 +6,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 6bbc831d2c8a..d622d9568156 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -6,7 +6,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c index 3a2080399340..4e0ba12a0ef8 100644 --- a/drivers/power/regulator/max77686.c +++ b/drivers/power/regulator/max77686.c @@ -6,7 +6,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/npcm8xx_regulator.c b/drivers/power/regulator/npcm8xx_regulator.c index fcd1058cdf52..30d1b8945cb7 100644 --- a/drivers/power/regulator/npcm8xx_regulator.c +++ b/drivers/power/regulator/npcm8xx_regulator.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index d615e9473403..2286eac93fbe 100644 --- a/drivers/power/regulator/palmas_regulator.c +++ b/drivers/power/regulator/palmas_regulator.c @@ -6,7 +6,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pbias_regulator.c b/drivers/power/regulator/pbias_regulator.c index cf4e2858443d..8f599cab6899 100644 --- a/drivers/power/regulator/pbias_regulator.c +++ b/drivers/power/regulator/pbias_regulator.c @@ -4,7 +4,6 @@ * Jean-Jacques Hiblot jjhiblot@ti.com */
-#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/pca9450.c b/drivers/power/regulator/pca9450.c index 7ca20d1f7f87..9faf1eab5f90 100644 --- a/drivers/power/regulator/pca9450.c +++ b/drivers/power/regulator/pca9450.c @@ -7,7 +7,6 @@ * ROHM BD71837 regulator driver */
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c index 1d926689b3b0..bf3a7019411e 100644 --- a/drivers/power/regulator/pfuze100.c +++ b/drivers/power/regulator/pfuze100.c @@ -5,7 +5,6 @@ * Peng Fan peng.fan@nxp.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c index ca59f3ae3e18..ff738faadc52 100644 --- a/drivers/power/regulator/pwm_regulator.c +++ b/drivers/power/regulator/pwm_regulator.c @@ -7,7 +7,6 @@ * Author: Lee Jones lee.jones@linaro.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 77d101f262e2..66fd531da043 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 0116fa01bbfe..e3565d32a019 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -4,7 +4,6 @@ * Sven Schwermer sven.svenschwermer@disruptive-technologies.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c index 1bd4605d43a0..bf3af7815279 100644 --- a/drivers/power/regulator/rk8xx.c +++ b/drivers/power/regulator/rk8xx.c @@ -8,7 +8,6 @@ * zyw zyw@rock-chips.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/s2mps11_regulator.c b/drivers/power/regulator/s2mps11_regulator.c index 987a1f9d8638..96de55065feb 100644 --- a/drivers/power/regulator/s2mps11_regulator.c +++ b/drivers/power/regulator/s2mps11_regulator.c @@ -4,7 +4,6 @@ * Jaehoon Chung jh80.chung@samsung.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/s5m8767.c b/drivers/power/regulator/s5m8767.c index 23575831f382..0dcf0990802b 100644 --- a/drivers/power/regulator/s5m8767.c +++ b/drivers/power/regulator/s5m8767.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Google, Inc */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/sandbox.c b/drivers/power/regulator/sandbox.c index 71ef0c5441af..80a68f5a30d5 100644 --- a/drivers/power/regulator/sandbox.c +++ b/drivers/power/regulator/sandbox.c @@ -4,7 +4,6 @@ * Przemyslaw Marczak p.marczak@samsung.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c index 9c72c35d039e..99f6506f1628 100644 --- a/drivers/power/regulator/scmi_regulator.c +++ b/drivers/power/regulator/scmi_regulator.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c index c37998a4bac4..dd8a33f15bea 100644 --- a/drivers/power/regulator/stm32-vrefbuf.c +++ b/drivers/power/regulator/stm32-vrefbuf.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c index 4839d834316a..b5ffa1cd5895 100644 --- a/drivers/power/regulator/stpmic1.c +++ b/drivers/power/regulator/stpmic1.c @@ -4,7 +4,6 @@ * Author: Christophe Kerello christophe.kerello@st.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/power/regulator/tps62360_regulator.c b/drivers/power/regulator/tps62360_regulator.c index 7014b1982d00..9acc6b905497 100644 --- a/drivers/power/regulator/tps62360_regulator.c +++ b/drivers/power/regulator/tps62360_regulator.c @@ -4,7 +4,6 @@ * Tero Kristo t-kristo@ti.com */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/tps65090_regulator.c b/drivers/power/regulator/tps65090_regulator.c index fa15e61a10e0..2d414de14907 100644 --- a/drivers/power/regulator/tps65090_regulator.c +++ b/drivers/power/regulator/tps65090_regulator.c @@ -3,10 +3,10 @@ * Copyright (c) 2015 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> +#include <time.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/tps65219_regulator.c b/drivers/power/regulator/tps65219_regulator.c index f87d07e61fbf..b7124fed0245 100644 --- a/drivers/power/regulator/tps65219_regulator.c +++ b/drivers/power/regulator/tps65219_regulator.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c index a4b9d449274b..562fd7db1908 100644 --- a/drivers/power/regulator/tps65910_regulator.c +++ b/drivers/power/regulator/tps65910_regulator.c @@ -3,7 +3,6 @@ * Copyright (C) EETS GmbH, 2017, Felix Brack f.brack@eets.ch */
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/printk.h> diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c index 5809a53fa214..bc4d153fd844 100644 --- a/drivers/power/regulator/tps65941_regulator.c +++ b/drivers/power/regulator/tps65941_regulator.c @@ -6,7 +6,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/sy8106a.c b/drivers/power/sy8106a.c index 45f47939869a..fb6028de71af 100644 --- a/drivers/power/sy8106a.c +++ b/drivers/power/sy8106a.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 * Jelle van der Waa jelle@vdwaa.nl */ -#include <common.h> #include <i2c.h> #include <sy8106a.h>
diff --git a/drivers/power/tps6586x.c b/drivers/power/tps6586x.c index 37f1c459a637..4034a9b49dd0 100644 --- a/drivers/power/tps6586x.c +++ b/drivers/power/tps6586x.c @@ -4,12 +4,12 @@ * (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com> */
-#include <common.h> #include <log.h> #include <tps6586x.h> #include <asm/io.h> #include <i2c.h> #include <linux/delay.h> +#include <linux/errno.h>
static struct udevice *tps6586x_dev;

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Michal Simek michal.simek@amd.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de Cc: Fabio Estevam festevam@denx.de Cc: Marek Vasut marex@denx.de Cc: Sean Anderson seanga2@gmail.com Cc: Bryan Brattlof bb@ti.com Cc: Nishanth Menon nm@ti.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Igor Opaniuk igor.opaniuk@foundries.io Cc: Roger Quadros rogerq@kernel.org Cc: Apurva Nandan a-nandan@ti.com Cc: Simon Glass sjg@chromium.org Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Quentin Schulz quentin.schulz@theobroma-systems.com Cc: Bhargav Raviprakash bhargav.r@ltts.com Cc: Udit Kumar u-kumar1@ti.com Cc: Dhruva Gole d-gole@ti.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Joseph Chen chenjh@rock-chips.com Cc: shengfei Xu xsf@rock-chips.com Cc: William Wu william.wu@rock-chips.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com Cc: Etienne Carriere etienne.carriere@foss.st.com
drivers/power/acpi_pmc/acpi-pmc-uclass.c | 1 - drivers/power/acpi_pmc/pmc_emul.c | 1 - drivers/power/acpi_pmc/sandbox.c | 1 - drivers/power/axp152.c | 2 +- drivers/power/axp209.c | 2 +- drivers/power/axp221.c | 1 - drivers/power/axp305.c | 1 - drivers/power/axp313.c | 1 - drivers/power/axp809.c | 1 - drivers/power/axp818.c | 1 - drivers/power/domain/apple-pmgr.c | 1 - drivers/power/domain/bcm6328-power-domain.c | 1 - drivers/power/domain/imx8-power-domain-legacy.c | 1 - drivers/power/domain/imx8-power-domain.c | 1 - drivers/power/domain/imx8m-power-domain.c | 1 - drivers/power/domain/imx8mp-hsiomix.c | 1 - drivers/power/domain/meson-ee-pwrc.c | 1 - drivers/power/domain/meson-gx-pwrc-vpu.c | 1 - drivers/power/domain/mtk-power-domain.c | 1 - drivers/power/domain/power-domain-uclass.c | 1 - drivers/power/domain/sandbox-power-domain-test.c | 1 - drivers/power/domain/sandbox-power-domain.c | 1 - drivers/power/domain/tegra186-power-domain.c | 1 - drivers/power/domain/ti-power-domain.c | 1 - drivers/power/domain/ti-sci-power-domain.c | 1 - drivers/power/domain/zynqmp-power-domain.c | 1 - drivers/power/exynos-tmu.c | 3 ++- drivers/power/mt6323.c | 1 - drivers/power/pmic/ab8500.c | 1 - drivers/power/pmic/act8846.c | 1 - drivers/power/pmic/as3722.c | 1 - drivers/power/pmic/as3722_gpio.c | 1 - drivers/power/pmic/bd71837.c | 1 - drivers/power/pmic/da9063.c | 1 - drivers/power/pmic/fan53555.c | 1 - drivers/power/pmic/i2c_pmic_emul.c | 1 - drivers/power/pmic/lp873x.c | 1 - drivers/power/pmic/lp87565.c | 1 - drivers/power/pmic/max77686.c | 1 - drivers/power/pmic/max8997.c | 1 - drivers/power/pmic/max8998.c | 1 - drivers/power/pmic/mc34708.c | 1 - drivers/power/pmic/mp5416.c | 1 - drivers/power/pmic/palmas.c | 1 - drivers/power/pmic/pca9450.c | 1 - drivers/power/pmic/pfuze100.c | 1 - drivers/power/pmic/pmic-uclass.c | 1 - drivers/power/pmic/pmic_hi6553.c | 1 - drivers/power/pmic/pmic_ltc3676.c | 1 - drivers/power/pmic/pmic_mc34vr500.c | 1 - drivers/power/pmic/pmic_pca9450.c | 1 - drivers/power/pmic/pmic_pfuze100.c | 1 - drivers/power/pmic/pmic_pfuze3000.c | 1 - drivers/power/pmic/pmic_qcom.c | 1 - drivers/power/pmic/pmic_tps62362.c | 1 - drivers/power/pmic/pmic_tps65217.c | 1 - drivers/power/pmic/pmic_tps65218.c | 1 - drivers/power/pmic/pmic_tps65910.c | 1 - drivers/power/pmic/pmic_tps65910_dm.c | 1 - drivers/power/pmic/rk8xx.c | 1 - drivers/power/pmic/rn5t567.c | 1 - drivers/power/pmic/s2mps11.c | 1 - drivers/power/pmic/s5m8767.c | 1 - drivers/power/pmic/sandbox.c | 1 - drivers/power/pmic/stpmic1.c | 1 - drivers/power/pmic/tps65090.c | 1 - drivers/power/pmic/tps65219.c | 1 - drivers/power/pmic/tps65941.c | 1 - drivers/power/power_core.c | 1 - drivers/power/power_dialog.c | 2 +- drivers/power/power_fsl.c | 2 +- drivers/power/power_i2c.c | 1 - drivers/power/power_spi.c | 1 - drivers/power/regulator/act8846.c | 1 - drivers/power/regulator/anatop_regulator.c | 1 - drivers/power/regulator/as3722_regulator.c | 1 - drivers/power/regulator/bd71837.c | 1 - drivers/power/regulator/da9063.c | 1 - drivers/power/regulator/fan53555.c | 1 - drivers/power/regulator/fixed.c | 1 - drivers/power/regulator/gpio-regulator.c | 1 - drivers/power/regulator/lp873x_regulator.c | 1 - drivers/power/regulator/lp87565_regulator.c | 1 - drivers/power/regulator/max77686.c | 1 - drivers/power/regulator/npcm8xx_regulator.c | 1 - drivers/power/regulator/palmas_regulator.c | 1 - drivers/power/regulator/pbias_regulator.c | 1 - drivers/power/regulator/pca9450.c | 1 - drivers/power/regulator/pfuze100.c | 1 - drivers/power/regulator/pwm_regulator.c | 1 - drivers/power/regulator/regulator-uclass.c | 1 - drivers/power/regulator/regulator_common.c | 1 - drivers/power/regulator/rk8xx.c | 1 - drivers/power/regulator/s2mps11_regulator.c | 1 - drivers/power/regulator/s5m8767.c | 1 - drivers/power/regulator/sandbox.c | 1 - drivers/power/regulator/scmi_regulator.c | 1 - drivers/power/regulator/stm32-vrefbuf.c | 1 - drivers/power/regulator/stpmic1.c | 1 - drivers/power/regulator/tps62360_regulator.c | 1 - drivers/power/regulator/tps65090_regulator.c | 2 +- drivers/power/regulator/tps65219_regulator.c | 1 - drivers/power/regulator/tps65910_regulator.c | 1 - drivers/power/regulator/tps65941_regulator.c | 1 - drivers/power/sy8106a.c | 1 - drivers/power/tps6586x.c | 2 +- 106 files changed, 8 insertions(+), 106 deletions(-)
diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c index 34446a34e60d..c289cede15b8 100644 --- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c +++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_ACPI_PMC
-#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c index 8015031da859..8eff3d9fa7ac 100644 --- a/drivers/power/acpi_pmc/pmc_emul.c +++ b/drivers/power/acpi_pmc/pmc_emul.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c index 8cf03f737c08..ed1bb1980931 100644 --- a/drivers/power/acpi_pmc/sandbox.c +++ b/drivers/power/acpi_pmc/sandbox.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_ACPI_PMC
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c index a93987c15382..5a62382ab86e 100644 --- a/drivers/power/axp152.c +++ b/drivers/power/axp152.c @@ -3,8 +3,8 @@
- (C) Copyright 2012
- Henrik Nordstrom henrik@henriknordstrom.net
*/ -#include <common.h> #include <command.h> +#include <linux/errno.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h>
diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index 3447b9f0113a..6ae416982ebe 100644 --- a/drivers/power/axp209.c +++ b/drivers/power/axp209.c @@ -4,11 +4,11 @@
- Henrik Nordstrom henrik@henriknordstrom.net
*/
-#include <common.h> #include <command.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h> #include <linux/delay.h> +#include <linux/errno.h>
#ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08 # define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c index d251c314b987..c22ca03f4694 100644 --- a/drivers/power/axp221.c +++ b/drivers/power/axp221.c @@ -9,7 +9,6 @@
- (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl
*/
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp305.c b/drivers/power/axp305.c index 049ef07f7467..0312ad9af763 100644 --- a/drivers/power/axp305.c +++ b/drivers/power/axp305.c @@ -9,7 +9,6 @@
- (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl
*/
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp313.c b/drivers/power/axp313.c index bbc9e911115f..09ecb5b1ec28 100644 --- a/drivers/power/axp313.c +++ b/drivers/power/axp313.c @@ -10,7 +10,6 @@
- (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl
*/
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c index d327a584ded0..9e38e1a74508 100644 --- a/drivers/power/axp809.c +++ b/drivers/power/axp809.c @@ -10,7 +10,6 @@
- (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl
*/
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c index 08286ea3b550..83ae6ecc138d 100644 --- a/drivers/power/axp818.c +++ b/drivers/power/axp818.c @@ -10,7 +10,6 @@
- (C) Copyright 2013 Oliver Schinagl oliver@schinagl.nl
*/
-#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/domain/apple-pmgr.c b/drivers/power/domain/apple-pmgr.c index 402c5b1fd188..bf9940621ee7 100644 --- a/drivers/power/domain/apple-pmgr.c +++ b/drivers/power/domain/apple-pmgr.c @@ -3,7 +3,6 @@
- Copyright (C) 2021 Mark Kettenis kettenis@openbsd.org
*/
-#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/power/domain/bcm6328-power-domain.c b/drivers/power/domain/bcm6328-power-domain.c index 80144dd97725..36b5a9337480 100644 --- a/drivers/power/domain/bcm6328-power-domain.c +++ b/drivers/power/domain/bcm6328-power-domain.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index c8ca2665752f..713a51d7807d 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -3,7 +3,6 @@
- Copyright 2017 NXP
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8-power-domain.c b/drivers/power/domain/imx8-power-domain.c index b45e468756bf..e8dcc057fee0 100644 --- a/drivers/power/domain/imx8-power-domain.c +++ b/drivers/power/domain/imx8-power-domain.c @@ -4,7 +4,6 @@ */
#define DEBUG -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index df5d7d695621..8b6870c86463 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -3,7 +3,6 @@
- Copyright 2017 NXP
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8mp-hsiomix.c b/drivers/power/domain/imx8mp-hsiomix.c index 6188a04c45ed..455ad53ef525 100644 --- a/drivers/power/domain/imx8mp-hsiomix.c +++ b/drivers/power/domain/imx8mp-hsiomix.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <clk-uclass.h> diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c index 676fded8080a..20e9f32b3819 100644 --- a/drivers/power/domain/meson-ee-pwrc.c +++ b/drivers/power/domain/meson-ee-pwrc.c @@ -4,7 +4,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c index 612660ce89f9..1c56e8508c32 100644 --- a/drivers/power/domain/meson-gx-pwrc-vpu.c +++ b/drivers/power/domain/meson-gx-pwrc-vpu.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 3b84147d4814..2d1ba1855a5b 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c index f6286c70c1d7..938bd8cbc9ff 100644 --- a/drivers/power/domain/power-domain-uclass.c +++ b/drivers/power/domain/power-domain-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_POWER_DOMAIN
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/sandbox-power-domain-test.c b/drivers/power/domain/sandbox-power-domain-test.c index 1bf52f1d861c..08c15ef342b3 100644 --- a/drivers/power/domain/sandbox-power-domain-test.c +++ b/drivers/power/domain/sandbox-power-domain-test.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain.h> diff --git a/drivers/power/domain/sandbox-power-domain.c b/drivers/power/domain/sandbox-power-domain.c index 04a071044f3b..9dd490b14a3f 100644 --- a/drivers/power/domain/sandbox-power-domain.c +++ b/drivers/power/domain/sandbox-power-domain.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/tegra186-power-domain.c b/drivers/power/domain/tegra186-power-domain.c index 46da541b75a8..334c460c805f 100644 --- a/drivers/power/domain/tegra186-power-domain.c +++ b/drivers/power/domain/tegra186-power-domain.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c index 8996c40ddc03..b059dd37376d 100644 --- a/drivers/power/domain/ti-power-domain.c +++ b/drivers/power/domain/ti-power-domain.c @@ -7,7 +7,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c index 8d6abe13dbc6..0a9f498b97b1 100644 --- a/drivers/power/domain/ti-sci-power-domain.c +++ b/drivers/power/domain/ti-sci-power-domain.c @@ -8,7 +8,6 @@
- Loosely based on Linux kernel ti_sci_pm_domains.c...
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c index 5ee9e020fb3b..ac93934eb420 100644 --- a/drivers/power/domain/zynqmp-power-domain.c +++ b/drivers/power/domain/zynqmp-power-domain.c @@ -3,7 +3,6 @@
- Copyright (c) 2021, Xilinx. Inc.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/power/exynos-tmu.c b/drivers/power/exynos-tmu.c index 6d62f6cae40d..21c2fabce1b8 100644 --- a/drivers/power/exynos-tmu.c +++ b/drivers/power/exynos-tmu.c @@ -17,11 +17,12 @@
- MA 02111-1307 USA
*/
-#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h> +#include <time.h> #include <tmu.h> +#include <asm/io.h> #include <asm/arch/tmu.h> #include <asm/arch/power.h>
diff --git a/drivers/power/mt6323.c b/drivers/power/mt6323.c index 354817a03780..dd6cbcf18206 100644 --- a/drivers/power/mt6323.c +++ b/drivers/power/mt6323.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Frank Wunderlich frank-w@public-files.de
*/
-#include <common.h> #include <command.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/power/pmic/ab8500.c b/drivers/power/pmic/ab8500.c index 1f64f217c345..9ba096711e14 100644 --- a/drivers/power/pmic/ab8500.c +++ b/drivers/power/pmic/ab8500.c @@ -7,7 +7,6 @@
- Copyright (C) ST-Ericsson SA 2010
*/
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/power/pmic/act8846.c b/drivers/power/pmic/act8846.c index 8f0f5a6d96e5..3058ef0f893d 100644 --- a/drivers/power/pmic/act8846.c +++ b/drivers/power/pmic/act8846.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722.c b/drivers/power/pmic/as3722.c index c7dd9705d189..9b0f4fb97363 100644 --- a/drivers/power/pmic/as3722.c +++ b/drivers/power/pmic/as3722.c @@ -5,7 +5,6 @@
#define pr_fmt(fmt) "as3722: " fmt
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722_gpio.c b/drivers/power/pmic/as3722_gpio.c index 987fbdf9bc08..52d8bd00b1fd 100644 --- a/drivers/power/pmic/as3722_gpio.c +++ b/drivers/power/pmic/as3722_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2014 NVIDIA Corporation
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index ee6ae78e5c4c..a5df2570fc3e 100644 --- a/drivers/power/pmic/bd71837.c +++ b/drivers/power/pmic/bd71837.c @@ -3,7 +3,6 @@
- Copyright 2018 NXP
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/da9063.c b/drivers/power/pmic/da9063.c index ca95b82e6d01..7bd3df391421 100644 --- a/drivers/power/pmic/da9063.c +++ b/drivers/power/pmic/da9063.c @@ -4,7 +4,6 @@
- Martin Fuzzey martin.fuzzey@flowbird.group
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/fan53555.c b/drivers/power/pmic/fan53555.c index d556b9a5878a..95bf600cbc3f 100644 --- a/drivers/power/pmic/fan53555.c +++ b/drivers/power/pmic/fan53555.c @@ -3,7 +3,6 @@
- (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/power/pmic/i2c_pmic_emul.c b/drivers/power/pmic/i2c_pmic_emul.c index f0a03742f87b..6e81b9c34279 100644 --- a/drivers/power/pmic/i2c_pmic_emul.c +++ b/drivers/power/pmic/i2c_pmic_emul.c @@ -4,7 +4,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c index fda5bc151642..2c8fa4ea312f 100644 --- a/drivers/power/pmic/lp873x.c +++ b/drivers/power/pmic/lp873x.c @@ -4,7 +4,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/lp87565.c b/drivers/power/pmic/lp87565.c index 904e02c4d818..c2ff75bbcdcd 100644 --- a/drivers/power/pmic/lp87565.c +++ b/drivers/power/pmic/lp87565.c @@ -4,7 +4,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max77686.c b/drivers/power/pmic/max77686.c index 7e6f7d1966f1..bfe57b386d3d 100644 --- a/drivers/power/pmic/max77686.c +++ b/drivers/power/pmic/max77686.c @@ -4,7 +4,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max8997.c b/drivers/power/pmic/max8997.c index 504a63bf7431..4afa6c84ef82 100644 --- a/drivers/power/pmic/max8997.c +++ b/drivers/power/pmic/max8997.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/max8998.c b/drivers/power/pmic/max8998.c index d155474447f5..05669023753e 100644 --- a/drivers/power/pmic/max8998.c +++ b/drivers/power/pmic/max8998.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c index 40d732224b6c..43badb5767a5 100644 --- a/drivers/power/pmic/mc34708.c +++ b/drivers/power/pmic/mc34708.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fsl_pmic.h> diff --git a/drivers/power/pmic/mp5416.c b/drivers/power/pmic/mp5416.c index 6180adf77e2d..9d44f0ae655e 100644 --- a/drivers/power/pmic/mp5416.c +++ b/drivers/power/pmic/mp5416.c @@ -2,7 +2,6 @@ /*
- Copyright 2020 Gateworks Corporation
*/ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c index e340a32279fb..f676bf641694 100644 --- a/drivers/power/pmic/palmas.c +++ b/drivers/power/pmic/palmas.c @@ -4,7 +4,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c index 0bbe98cd8a29..07af6273d8ae 100644 --- a/drivers/power/pmic/pca9450.c +++ b/drivers/power/pmic/pca9450.c @@ -3,7 +3,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c index 15420acb4725..9e09805d251f 100644 --- a/drivers/power/pmic/pfuze100.c +++ b/drivers/power/pmic/pfuze100.c @@ -4,7 +4,6 @@
- Peng Fan Peng.Fan@freescale.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index 0e2f5e1f4111..bb459816d143 100644 --- a/drivers/power/pmic/pmic-uclass.c +++ b/drivers/power/pmic/pmic-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PMIC
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic_hi6553.c b/drivers/power/pmic/pmic_hi6553.c index 80b9078cf8f0..05305013882d 100644 --- a/drivers/power/pmic/pmic_hi6553.c +++ b/drivers/power/pmic/pmic_hi6553.c @@ -4,7 +4,6 @@
- Peter Griffin peter.griffin@linaro.org
*/ #include <asm/io.h> -#include <common.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/max8997_muic.h> diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c index af94f37b0f10..145a631b6b24 100644 --- a/drivers/power/pmic/pmic_ltc3676.c +++ b/drivers/power/pmic/pmic_ltc3676.c @@ -4,7 +4,6 @@
- Tim Harvey tharvey@gateworks.com
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_mc34vr500.c b/drivers/power/pmic/pmic_mc34vr500.c index 9dd1c46ea220..0dfdfbdf3dca 100644 --- a/drivers/power/pmic/pmic_mc34vr500.c +++ b/drivers/power/pmic/pmic_mc34vr500.c @@ -4,7 +4,6 @@
- Hou Zhiqiang Zhiqiang.Hou@freescale.com
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pca9450.c b/drivers/power/pmic/pmic_pca9450.c index 8c4d0a92306b..12500ba99901 100644 --- a/drivers/power/pmic/pmic_pca9450.c +++ b/drivers/power/pmic/pmic_pca9450.c @@ -3,7 +3,6 @@
- Copyright 2019 NXP
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze100.c b/drivers/power/pmic/pmic_pfuze100.c index 5115b55e49dc..a266709d8d07 100644 --- a/drivers/power/pmic/pmic_pfuze100.c +++ b/drivers/power/pmic/pmic_pfuze100.c @@ -4,7 +4,6 @@
- Tim Harvey tharvey@gateworks.com
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze3000.c b/drivers/power/pmic/pmic_pfuze3000.c index a6d97252bc9e..602c4744aa6c 100644 --- a/drivers/power/pmic/pmic_pfuze3000.c +++ b/drivers/power/pmic/pmic_pfuze3000.c @@ -4,7 +4,6 @@
- Peng Fan Peng.Fan@freescale.com
*/
-#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_qcom.c b/drivers/power/pmic/pmic_qcom.c index f2ac6494811d..92d0a95859b0 100644 --- a/drivers/power/pmic/pmic_qcom.c +++ b/drivers/power/pmic/pmic_qcom.c @@ -4,7 +4,6 @@
- (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com
*/ -#include <common.h> #include <dm.h> #include <power/pmic.h> #include <spmi/spmi.h> diff --git a/drivers/power/pmic/pmic_tps62362.c b/drivers/power/pmic/pmic_tps62362.c index 6426d1488a5c..4f0e406d5606 100644 --- a/drivers/power/pmic/pmic_tps62362.c +++ b/drivers/power/pmic/pmic_tps62362.c @@ -4,7 +4,6 @@
- Author: Felipe Balbi balbi@ti.com
*/
-#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65217.c b/drivers/power/pmic/pmic_tps65217.c index ccbf2235933d..bd44e0d9ae05 100644 --- a/drivers/power/pmic/pmic_tps65217.c +++ b/drivers/power/pmic/pmic_tps65217.c @@ -4,7 +4,6 @@
- Texas Instruments, <www.ti.com>
*/
-#include <common.h> #include <i2c.h> #include <dm.h> #include <errno.h> diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c index 671749018041..49d07e95cd7c 100644 --- a/drivers/power/pmic/pmic_tps65218.c +++ b/drivers/power/pmic/pmic_tps65218.c @@ -4,7 +4,6 @@
- Texas Instruments, <www.ti.com>
*/
-#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65910.c b/drivers/power/pmic/pmic_tps65910.c index e3de73082150..df9bb66a7f9c 100644 --- a/drivers/power/pmic/pmic_tps65910.c +++ b/drivers/power/pmic/pmic_tps65910.c @@ -4,7 +4,6 @@
- Texas Instruments, <www.ti.com>
*/
-#include <common.h> #include <i2c.h> #include <power/tps65910.h>
diff --git a/drivers/power/pmic/pmic_tps65910_dm.c b/drivers/power/pmic/pmic_tps65910_dm.c index ecf836eb0e65..de8d805566aa 100644 --- a/drivers/power/pmic/pmic_tps65910_dm.c +++ b/drivers/power/pmic/pmic_tps65910_dm.c @@ -3,7 +3,6 @@
- Copyright (C) EETS GmbH, 2017, Felix Brack f.brack@eets.ch
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <i2c.h> diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 3a8261d1749f..12ff26a08558 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/power/pmic/rn5t567.c b/drivers/power/pmic/rn5t567.c index 9d103dd84057..0124d84a7295 100644 --- a/drivers/power/pmic/rn5t567.c +++ b/drivers/power/pmic/rn5t567.c @@ -4,7 +4,6 @@
- Stefan Agner stefan.agner@toradex.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/s2mps11.c b/drivers/power/pmic/s2mps11.c index 5ff4f2052113..17780017035b 100644 --- a/drivers/power/pmic/s2mps11.c +++ b/drivers/power/pmic/s2mps11.c @@ -4,7 +4,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/s5m8767.c b/drivers/power/pmic/s5m8767.c index eea072ae824f..799d00125409 100644 --- a/drivers/power/pmic/s5m8767.c +++ b/drivers/power/pmic/s5m8767.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Google, Inc
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/sandbox.c b/drivers/power/pmic/sandbox.c index 14b82455f5fb..ddc11d6df86f 100644 --- a/drivers/power/pmic/sandbox.c +++ b/drivers/power/pmic/sandbox.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PMIC
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index 8701d4f971c9..c99a0c27b336 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/drivers/power/pmic/stpmic1.c @@ -3,7 +3,6 @@
- Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/tps65090.c b/drivers/power/pmic/tps65090.c index 2a04d5948a5e..ad2ab34719e5 100644 --- a/drivers/power/pmic/tps65090.c +++ b/drivers/power/pmic/tps65090.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/tps65219.c b/drivers/power/pmic/tps65219.c index 9462afee77fd..0716af027a3a 100644 --- a/drivers/power/pmic/tps65219.c +++ b/drivers/power/pmic/tps65219.c @@ -4,7 +4,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index 943d845086c3..c3490db2a089 100644 --- a/drivers/power/pmic/tps65941.c +++ b/drivers/power/pmic/tps65941.c @@ -4,7 +4,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c index 4f7ba099cd91..1caf9f093468 100644 --- a/drivers/power/power_core.c +++ b/drivers/power/power_core.c @@ -9,7 +9,6 @@
- (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <command.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/power_dialog.c b/drivers/power/power_dialog.c index ad7aaf35a9a0..a5c7ea34c4ae 100644 --- a/drivers/power/power_dialog.c +++ b/drivers/power/power_dialog.c @@ -4,7 +4,7 @@
- Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> +#include <config.h> #include <log.h> #include <power/pmic.h> #include <dialog_pmic.h> diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c index 9dc930fb305a..a10a14a79616 100644 --- a/drivers/power/power_fsl.c +++ b/drivers/power/power_fsl.c @@ -4,7 +4,7 @@
- Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> +#include <config.h> #include <spi.h> #include <power/pmic.h> #include <fsl_pmic.h> diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index b67ac2f027b5..a871fc419872 100644 --- a/drivers/power/power_i2c.c +++ b/drivers/power/power_i2c.c @@ -10,7 +10,6 @@
- (C) Copyright 2019 NXP
*/
-#include <common.h> #include <log.h> #include <linux/types.h> #include <power/pmic.h> diff --git a/drivers/power/power_spi.c b/drivers/power/power_spi.c index 1eaf9773ef8b..54427316ce42 100644 --- a/drivers/power/power_spi.c +++ b/drivers/power/power_spi.c @@ -9,7 +9,6 @@
- (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <linux/types.h> #include <power/pmic.h> #include <spi.h> diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c index bdce97365dd0..d3e72da0d35a 100644 --- a/drivers/power/regulator/act8846.c +++ b/drivers/power/regulator/act8846.c @@ -8,7 +8,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <power/act8846_pmic.h> diff --git a/drivers/power/regulator/anatop_regulator.c b/drivers/power/regulator/anatop_regulator.c index 096a1565d5a7..824a753db161 100644 --- a/drivers/power/regulator/anatop_regulator.c +++ b/drivers/power/regulator/anatop_regulator.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Linaro
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/as3722_regulator.c b/drivers/power/regulator/as3722_regulator.c index ec0776b440bb..8d60965fe9ac 100644 --- a/drivers/power/regulator/as3722_regulator.c +++ b/drivers/power/regulator/as3722_regulator.c @@ -6,7 +6,6 @@
- Placeholder regulator driver for as3722.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c index 913ed88d45f7..59aec1a7313e 100644 --- a/drivers/power/regulator/bd71837.c +++ b/drivers/power/regulator/bd71837.c @@ -5,7 +5,6 @@
- ROHM BD71837 regulator driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/da9063.c b/drivers/power/regulator/da9063.c index 8df1abcf7885..5d566b06a522 100644 --- a/drivers/power/regulator/da9063.c +++ b/drivers/power/regulator/da9063.c @@ -4,7 +4,6 @@
- Martin Fuzzey martin.fuzzey@flowbird.group
*/
-#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <power/da9063_pmic.h> diff --git a/drivers/power/regulator/fan53555.c b/drivers/power/regulator/fan53555.c index fa8d88f2e0dc..5cba58f91cac 100644 --- a/drivers/power/regulator/fan53555.c +++ b/drivers/power/regulator/fan53555.c @@ -3,7 +3,6 @@
- (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <bitfield.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 590c288d6575..98c89bf2aff6 100644 --- a/drivers/power/regulator/fixed.c +++ b/drivers/power/regulator/fixed.c @@ -5,7 +5,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <clk.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c index 74137b7b876f..38b22535c3dd 100644 --- a/drivers/power/regulator/gpio-regulator.c +++ b/drivers/power/regulator/gpio-regulator.c @@ -4,7 +4,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c index c326f8efa471..c59d77118ada 100644 --- a/drivers/power/regulator/lp873x_regulator.c +++ b/drivers/power/regulator/lp873x_regulator.c @@ -6,7 +6,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index 6bbc831d2c8a..d622d9568156 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -6,7 +6,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c index 3a2080399340..4e0ba12a0ef8 100644 --- a/drivers/power/regulator/max77686.c +++ b/drivers/power/regulator/max77686.c @@ -6,7 +6,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/npcm8xx_regulator.c b/drivers/power/regulator/npcm8xx_regulator.c index fcd1058cdf52..30d1b8945cb7 100644 --- a/drivers/power/regulator/npcm8xx_regulator.c +++ b/drivers/power/regulator/npcm8xx_regulator.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index d615e9473403..2286eac93fbe 100644 --- a/drivers/power/regulator/palmas_regulator.c +++ b/drivers/power/regulator/palmas_regulator.c @@ -6,7 +6,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pbias_regulator.c b/drivers/power/regulator/pbias_regulator.c index cf4e2858443d..8f599cab6899 100644 --- a/drivers/power/regulator/pbias_regulator.c +++ b/drivers/power/regulator/pbias_regulator.c @@ -4,7 +4,6 @@
- Jean-Jacques Hiblot jjhiblot@ti.com
*/
-#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/pca9450.c b/drivers/power/regulator/pca9450.c index 7ca20d1f7f87..9faf1eab5f90 100644 --- a/drivers/power/regulator/pca9450.c +++ b/drivers/power/regulator/pca9450.c @@ -7,7 +7,6 @@
- ROHM BD71837 regulator driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c index 1d926689b3b0..bf3a7019411e 100644 --- a/drivers/power/regulator/pfuze100.c +++ b/drivers/power/regulator/pfuze100.c @@ -5,7 +5,6 @@
- Peng Fan peng.fan@nxp.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c index ca59f3ae3e18..ff738faadc52 100644 --- a/drivers/power/regulator/pwm_regulator.c +++ b/drivers/power/regulator/pwm_regulator.c @@ -7,7 +7,6 @@
- Author: Lee Jones lee.jones@linaro.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 77d101f262e2..66fd531da043 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 0116fa01bbfe..e3565d32a019 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -4,7 +4,6 @@
- Sven Schwermer sven.svenschwermer@disruptive-technologies.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c index 1bd4605d43a0..bf3af7815279 100644 --- a/drivers/power/regulator/rk8xx.c +++ b/drivers/power/regulator/rk8xx.c @@ -8,7 +8,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/s2mps11_regulator.c b/drivers/power/regulator/s2mps11_regulator.c index 987a1f9d8638..96de55065feb 100644 --- a/drivers/power/regulator/s2mps11_regulator.c +++ b/drivers/power/regulator/s2mps11_regulator.c @@ -4,7 +4,6 @@
- Jaehoon Chung jh80.chung@samsung.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/s5m8767.c b/drivers/power/regulator/s5m8767.c index 23575831f382..0dcf0990802b 100644 --- a/drivers/power/regulator/s5m8767.c +++ b/drivers/power/regulator/s5m8767.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Google, Inc
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/sandbox.c b/drivers/power/regulator/sandbox.c index 71ef0c5441af..80a68f5a30d5 100644 --- a/drivers/power/regulator/sandbox.c +++ b/drivers/power/regulator/sandbox.c @@ -4,7 +4,6 @@
- Przemyslaw Marczak p.marczak@samsung.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c index 9c72c35d039e..99f6506f1628 100644 --- a/drivers/power/regulator/scmi_regulator.c +++ b/drivers/power/regulator/scmi_regulator.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c index c37998a4bac4..dd8a33f15bea 100644 --- a/drivers/power/regulator/stm32-vrefbuf.c +++ b/drivers/power/regulator/stm32-vrefbuf.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_REGULATOR
-#include <common.h> #include <clk.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c index 4839d834316a..b5ffa1cd5895 100644 --- a/drivers/power/regulator/stpmic1.c +++ b/drivers/power/regulator/stpmic1.c @@ -4,7 +4,6 @@
- Author: Christophe Kerello christophe.kerello@st.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/power/regulator/tps62360_regulator.c b/drivers/power/regulator/tps62360_regulator.c index 7014b1982d00..9acc6b905497 100644 --- a/drivers/power/regulator/tps62360_regulator.c +++ b/drivers/power/regulator/tps62360_regulator.c @@ -4,7 +4,6 @@
Tero Kristo <t-kristo@ti.com>
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/tps65090_regulator.c b/drivers/power/regulator/tps65090_regulator.c index fa15e61a10e0..2d414de14907 100644 --- a/drivers/power/regulator/tps65090_regulator.c +++ b/drivers/power/regulator/tps65090_regulator.c @@ -3,10 +3,10 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> +#include <time.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/tps65219_regulator.c b/drivers/power/regulator/tps65219_regulator.c index f87d07e61fbf..b7124fed0245 100644 --- a/drivers/power/regulator/tps65219_regulator.c +++ b/drivers/power/regulator/tps65219_regulator.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c index a4b9d449274b..562fd7db1908 100644 --- a/drivers/power/regulator/tps65910_regulator.c +++ b/drivers/power/regulator/tps65910_regulator.c @@ -3,7 +3,6 @@
- Copyright (C) EETS GmbH, 2017, Felix Brack f.brack@eets.ch
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/printk.h> diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c index 5809a53fa214..bc4d153fd844 100644 --- a/drivers/power/regulator/tps65941_regulator.c +++ b/drivers/power/regulator/tps65941_regulator.c @@ -6,7 +6,6 @@
- Keerthy j-keerthy@ti.com
*/
-#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/sy8106a.c b/drivers/power/sy8106a.c index 45f47939869a..fb6028de71af 100644 --- a/drivers/power/sy8106a.c +++ b/drivers/power/sy8106a.c @@ -3,7 +3,6 @@
- (C) Copyright 2016
- Jelle van der Waa jelle@vdwaa.nl
*/ -#include <common.h> #include <i2c.h> #include <sy8106a.h>
diff --git a/drivers/power/tps6586x.c b/drivers/power/tps6586x.c index 37f1c459a637..4034a9b49dd0 100644 --- a/drivers/power/tps6586x.c +++ b/drivers/power/tps6586x.c @@ -4,12 +4,12 @@
- (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com>
*/
-#include <common.h> #include <log.h> #include <tps6586x.h> #include <asm/io.h> #include <i2c.h> #include <linux/delay.h> +#include <linux/errno.h>
static struct udevice *tps6586x_dev;

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Igor Prusov ivprusov@salutedevices.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Johan Jonker jbx6244@gmail.com --- drivers/pwm/cros_ec_pwm.c | 1 - drivers/pwm/exynos_pwm.c | 1 - drivers/pwm/pwm-aspeed.c | 1 - drivers/pwm/pwm-at91.c | 1 - drivers/pwm/pwm-cadence-ttc.c | 1 - drivers/pwm/pwm-imx.c | 1 - drivers/pwm/pwm-meson.c | 1 - drivers/pwm/pwm-mtk.c | 1 - drivers/pwm/pwm-sifive.c | 1 - drivers/pwm/pwm-ti-ehrpwm.c | 1 - drivers/pwm/pwm-uclass.c | 1 - drivers/pwm/rk_pwm.c | 1 - drivers/pwm/sandbox_pwm.c | 1 - drivers/pwm/sunxi_pwm.c | 1 - drivers/pwm/tegra_pwm.c | 1 - 15 files changed, 15 deletions(-)
diff --git a/drivers/pwm/cros_ec_pwm.c b/drivers/pwm/cros_ec_pwm.c index 4a39c319aa2a..b89f00f151b0 100644 --- a/drivers/pwm/cros_ec_pwm.c +++ b/drivers/pwm/cros_ec_pwm.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pwm/exynos_pwm.c b/drivers/pwm/exynos_pwm.c index 609025d680d2..5ded60978f47 100644 --- a/drivers/pwm/exynos_pwm.c +++ b/drivers/pwm/exynos_pwm.c @@ -3,7 +3,6 @@ * Copyright 2016 Google Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-aspeed.c b/drivers/pwm/pwm-aspeed.c index b03472d2345c..ebc9d9a89752 100644 --- a/drivers/pwm/pwm-aspeed.c +++ b/drivers/pwm/pwm-aspeed.c @@ -38,7 +38,6 @@ * This improvement can disable/enable through PWM_ASPEED_CTRL_DUTY_SYNC_DISABLE. */
-#include <common.h> #include <div64.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-at91.c b/drivers/pwm/pwm-at91.c index 3ff1fb6d5c30..ffc37180eb42 100644 --- a/drivers/pwm/pwm-at91.c +++ b/drivers/pwm/pwm-at91.c @@ -9,7 +9,6 @@ * Based on drivers/pwm/pwm-atmel.c from Linux. */ #include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <linux/bitops.h> diff --git a/drivers/pwm/pwm-cadence-ttc.c b/drivers/pwm/pwm-cadence-ttc.c index d9f6736a7aee..767628833bc0 100644 --- a/drivers/pwm/pwm-cadence-ttc.c +++ b/drivers/pwm/pwm-cadence-ttc.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PWM
#include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 8fbb40cc2767..320ea7c4239a 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -6,7 +6,6 @@ * Basic support for the pwm module on imx6. */
-#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index 60959720dac8..c2597d8b6698 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -16,7 +16,6 @@ * current period to complete first). */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c index ad845ed9662e..9776a41ff48e 100644 --- a/drivers/pwm/pwm-mtk.c +++ b/drivers/pwm/pwm-mtk.c @@ -5,7 +5,6 @@ * Author: Sam Shih sam.shih@mediatek.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c index b9813a3b6bbe..e9777c71f5e0 100644 --- a/drivers/pwm/pwm-sifive.c +++ b/drivers/pwm/pwm-sifive.c @@ -12,7 +12,6 @@ * - The hardware generates only inverted output. */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-ti-ehrpwm.c b/drivers/pwm/pwm-ti-ehrpwm.c index fefa3c65ec45..563109ef0f80 100644 --- a/drivers/pwm/pwm-ti-ehrpwm.c +++ b/drivers/pwm/pwm-ti-ehrpwm.c @@ -7,7 +7,6 @@ * Based on Linux kernel drivers/pwm/pwm-tiehrpwm.c */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-uclass.c b/drivers/pwm/pwm-uclass.c index 648d0757ba62..6543db1d623d 100644 --- a/drivers/pwm/pwm-uclass.c +++ b/drivers/pwm/pwm-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PWM
-#include <common.h> #include <dm.h> #include <pwm.h>
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 1858d5973386..0a64eb01dc2b 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/sandbox_pwm.c b/drivers/pwm/sandbox_pwm.c index 4df15f0a2e8f..0d798609ddaf 100644 --- a/drivers/pwm/sandbox_pwm.c +++ b/drivers/pwm/sandbox_pwm.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pwm.h> diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c index bb1bec05ec34..2140a05b6796 100644 --- a/drivers/pwm/sunxi_pwm.c +++ b/drivers/pwm/sunxi_pwm.c @@ -3,7 +3,6 @@ * Copyright (c) 2017-2018 Vasily Khoruzhick anarsoul@gmail.com */
-#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c index 87034706060c..e3f1417f2ad0 100644 --- a/drivers/pwm/tegra_pwm.c +++ b/drivers/pwm/tegra_pwm.c @@ -3,7 +3,6 @@ * Copyright 2016 Google Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h>

On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Igor Prusov ivprusov@salutedevices.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Johan Jonker jbx6244@gmail.com
drivers/pwm/cros_ec_pwm.c | 1 - drivers/pwm/exynos_pwm.c | 1 - drivers/pwm/pwm-aspeed.c | 1 - drivers/pwm/pwm-at91.c | 1 - drivers/pwm/pwm-cadence-ttc.c | 1 - drivers/pwm/pwm-imx.c | 1 - drivers/pwm/pwm-meson.c | 1 - drivers/pwm/pwm-mtk.c | 1 - drivers/pwm/pwm-sifive.c | 1 - drivers/pwm/pwm-ti-ehrpwm.c | 1 - drivers/pwm/pwm-uclass.c | 1 - drivers/pwm/rk_pwm.c | 1 - drivers/pwm/sandbox_pwm.c | 1 - drivers/pwm/sunxi_pwm.c | 1 - drivers/pwm/tegra_pwm.c | 1 - 15 files changed, 15 deletions(-)
diff --git a/drivers/pwm/cros_ec_pwm.c b/drivers/pwm/cros_ec_pwm.c index 4a39c319aa2a..b89f00f151b0 100644 --- a/drivers/pwm/cros_ec_pwm.c +++ b/drivers/pwm/cros_ec_pwm.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pwm/exynos_pwm.c b/drivers/pwm/exynos_pwm.c index 609025d680d2..5ded60978f47 100644 --- a/drivers/pwm/exynos_pwm.c +++ b/drivers/pwm/exynos_pwm.c @@ -3,7 +3,6 @@
- Copyright 2016 Google Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-aspeed.c b/drivers/pwm/pwm-aspeed.c index b03472d2345c..ebc9d9a89752 100644 --- a/drivers/pwm/pwm-aspeed.c +++ b/drivers/pwm/pwm-aspeed.c @@ -38,7 +38,6 @@
- This improvement can disable/enable through PWM_ASPEED_CTRL_DUTY_SYNC_DISABLE.
*/
-#include <common.h> #include <div64.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-at91.c b/drivers/pwm/pwm-at91.c index 3ff1fb6d5c30..ffc37180eb42 100644 --- a/drivers/pwm/pwm-at91.c +++ b/drivers/pwm/pwm-at91.c @@ -9,7 +9,6 @@
- Based on drivers/pwm/pwm-atmel.c from Linux.
*/ #include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <linux/bitops.h> diff --git a/drivers/pwm/pwm-cadence-ttc.c b/drivers/pwm/pwm-cadence-ttc.c index d9f6736a7aee..767628833bc0 100644 --- a/drivers/pwm/pwm-cadence-ttc.c +++ b/drivers/pwm/pwm-cadence-ttc.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PWM
#include <clk.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 8fbb40cc2767..320ea7c4239a 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -6,7 +6,6 @@
- Basic support for the pwm module on imx6.
*/
-#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index 60959720dac8..c2597d8b6698 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -16,7 +16,6 @@
- current period to complete first).
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c index ad845ed9662e..9776a41ff48e 100644 --- a/drivers/pwm/pwm-mtk.c +++ b/drivers/pwm/pwm-mtk.c @@ -5,7 +5,6 @@
- Author: Sam Shih sam.shih@mediatek.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c index b9813a3b6bbe..e9777c71f5e0 100644 --- a/drivers/pwm/pwm-sifive.c +++ b/drivers/pwm/pwm-sifive.c @@ -12,7 +12,6 @@
- The hardware generates only inverted output.
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-ti-ehrpwm.c b/drivers/pwm/pwm-ti-ehrpwm.c index fefa3c65ec45..563109ef0f80 100644 --- a/drivers/pwm/pwm-ti-ehrpwm.c +++ b/drivers/pwm/pwm-ti-ehrpwm.c @@ -7,7 +7,6 @@
- Based on Linux kernel drivers/pwm/pwm-tiehrpwm.c
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-uclass.c b/drivers/pwm/pwm-uclass.c index 648d0757ba62..6543db1d623d 100644 --- a/drivers/pwm/pwm-uclass.c +++ b/drivers/pwm/pwm-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PWM
-#include <common.h> #include <dm.h> #include <pwm.h>
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 1858d5973386..0a64eb01dc2b 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/sandbox_pwm.c b/drivers/pwm/sandbox_pwm.c index 4df15f0a2e8f..0d798609ddaf 100644 --- a/drivers/pwm/sandbox_pwm.c +++ b/drivers/pwm/sandbox_pwm.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <pwm.h> diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c index bb1bec05ec34..2140a05b6796 100644 --- a/drivers/pwm/sunxi_pwm.c +++ b/drivers/pwm/sunxi_pwm.c @@ -3,7 +3,6 @@
- Copyright (c) 2017-2018 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c index 87034706060c..e3f1417f2ad0 100644 --- a/drivers/pwm/tegra_pwm.c +++ b/drivers/pwm/tegra_pwm.c @@ -3,7 +3,6 @@
- Copyright 2016 Google Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Mario Six mario.six@gdsys.cc Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Ralph Siemsen ralph.siemsen@linaro.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Yanhong Wang yanhong.wang@starfivetech.com Cc: Andre Przywara andre.przywara@arm.com --- drivers/ram/aspeed/sdram_ast2500.c | 2 +- drivers/ram/aspeed/sdram_ast2600.c | 2 +- drivers/ram/bmips_ram.c | 1 - drivers/ram/cadence/ddr_ctrl.c | 1 - drivers/ram/imxrt_sdram.c | 1 - drivers/ram/k3-am654-ddrss.c | 1 - drivers/ram/k3-ddrss/k3-ddrss.c | 1 - drivers/ram/mediatek/ddr3-mt7629.c | 2 +- drivers/ram/mpc83xx_sdram.c | 1 - drivers/ram/ram-uclass.c | 1 - drivers/ram/renesas/rzn1/ddr_async.c | 1 - drivers/ram/rockchip/dmc-rk3368.c | 2 +- drivers/ram/rockchip/sdram_common.c | 2 +- drivers/ram/rockchip/sdram_pctl_px30.c | 1 - drivers/ram/rockchip/sdram_phy_px30.c | 1 - drivers/ram/rockchip/sdram_px30.c | 2 +- drivers/ram/rockchip/sdram_rk3066.c | 2 +- drivers/ram/rockchip/sdram_rk3128.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3308.c | 2 +- drivers/ram/rockchip/sdram_rk3328.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3568.c | 2 +- drivers/ram/rockchip/sdram_rk3588.c | 2 +- drivers/ram/rockchip/sdram_rv1126.c | 2 +- drivers/ram/sandbox_ram.c | 1 - drivers/ram/sifive/sifive_ddr.c | 1 - drivers/ram/starfive/ddrcsr_boot.c | 1 - drivers/ram/starfive/ddrphy_start.c | 1 - drivers/ram/starfive/ddrphy_train.c | 2 +- drivers/ram/starfive/ddrphy_utils.c | 2 +- drivers/ram/starfive/starfive_ddr.c | 1 - drivers/ram/starfive/starfive_ddr.h | 2 ++ drivers/ram/stm32_sdram.c | 1 - drivers/ram/stm32mp1/stm32mp1_ddr.c | 1 - drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 - drivers/ram/stm32mp1/stm32mp1_ram.c | 1 - drivers/ram/stm32mp1/stm32mp1_tests.c | 1 - drivers/ram/sunxi/dram_sun20i_d1.c | 2 +- 41 files changed, 22 insertions(+), 40 deletions(-)
diff --git a/drivers/ram/aspeed/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c index dc466a88e712..0d6ab79f96fc 100644 --- a/drivers/ram/aspeed/sdram_ast2500.c +++ b/drivers/ram/aspeed/sdram_ast2500.c @@ -5,7 +5,7 @@ * Copyright 2016 Google, Inc */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/aspeed/sdram_ast2600.c b/drivers/ram/aspeed/sdram_ast2600.c index d463933363ee..55e80fba3dc0 100644 --- a/drivers/ram/aspeed/sdram_ast2600.c +++ b/drivers/ram/aspeed/sdram_ast2600.c @@ -2,7 +2,7 @@ /* * Copyright (C) ASPEED Technology Inc. */ -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/bmips_ram.c b/drivers/ram/bmips_ram.c index 98045248ecfb..760bebdbba04 100644 --- a/drivers/ram/bmips_ram.c +++ b/drivers/ram/bmips_ram.c @@ -7,7 +7,6 @@ * Copyright (C) 2009 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/ram/cadence/ddr_ctrl.c b/drivers/ram/cadence/ddr_ctrl.c index 3e5959a84a37..0fa60e766a7e 100644 --- a/drivers/ram/cadence/ddr_ctrl.c +++ b/drivers/ram/cadence/ddr_ctrl.c @@ -24,7 +24,6 @@ * bandwidth allocated to each AXI slave can be set. */
-#include <common.h> #include <linux/delay.h> #include <linux/sizes.h> #include <asm/io.h> diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c index 6a15242c20cc..3df106c9b79a 100644 --- a/drivers/ram/imxrt_sdram.c +++ b/drivers/ram/imxrt_sdram.c @@ -4,7 +4,6 @@ * Author(s): Giulio Benetti giulio.benetti@benettiengineering.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c index cff8ffc89295..21ff9d761e1b 100644 --- a/drivers/ram/k3-am654-ddrss.c +++ b/drivers/ram/k3-am654-ddrss.c @@ -6,7 +6,6 @@ * Lokesh Vutla lokeshvutla@ti.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/ram/k3-ddrss/k3-ddrss.c b/drivers/ram/k3-ddrss/k3-ddrss.c index a5c9b82cf1da..525b6d5b79fc 100644 --- a/drivers/ram/k3-ddrss/k3-ddrss.c +++ b/drivers/ram/k3-ddrss/k3-ddrss.c @@ -5,7 +5,6 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */
-#include <common.h> #include <config.h> #include <clk.h> #include <div64.h> diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c index f65fcf179cf6..c27c4593b9d9 100644 --- a/drivers/ram/mediatek/ddr3-mt7629.c +++ b/drivers/ram/mediatek/ddr3-mt7629.c @@ -8,7 +8,7 @@ */
#include <clk.h> -#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index 11676d4fae7e..28a663289a23 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/ram-uclass.c b/drivers/ram/ram-uclass.c index 4e21240fd4cb..a33d583cc448 100644 --- a/drivers/ram/ram-uclass.c +++ b/drivers/ram/ram-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <ram.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/renesas/rzn1/ddr_async.c b/drivers/ram/renesas/rzn1/ddr_async.c index 7a81497bc92b..4d470aae1914 100644 --- a/drivers/ram/renesas/rzn1/ddr_async.c +++ b/drivers/ram/renesas/rzn1/ddr_async.c @@ -7,7 +7,6 @@ * * Copyright (C) 2015 Renesas Electronics Europe Ltd */ -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c index 5279bf0a1548..42114a5aa917 100644 --- a/drivers/ram/rockchip/dmc-rk3368.c +++ b/drivers/ram/rockchip/dmc-rk3368.c @@ -3,7 +3,7 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <hang.h> diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c index 60fc90d0a5c0..b7a8fce607c8 100644 --- a/drivers/ram/rockchip/sdram_common.c +++ b/drivers/ram/rockchip/sdram_common.c @@ -3,7 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/rockchip/sdram_pctl_px30.c b/drivers/ram/rockchip/sdram_pctl_px30.c index e5c80fb83b3f..3ec98af536e8 100644 --- a/drivers/ram/rockchip/sdram_pctl_px30.c +++ b/drivers/ram/rockchip/sdram_pctl_px30.c @@ -3,7 +3,6 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */
-#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_phy_px30.c b/drivers/ram/rockchip/sdram_phy_px30.c index f7f6de1ba98b..5416eef38788 100644 --- a/drivers/ram/rockchip/sdram_phy_px30.c +++ b/drivers/ram/rockchip/sdram_phy_px30.c @@ -3,7 +3,6 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */
-#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_px30.c b/drivers/ram/rockchip/sdram_px30.c index 21498e89570f..37e621205047 100644 --- a/drivers/ram/rockchip/sdram_px30.c +++ b/drivers/ram/rockchip/sdram_px30.c @@ -3,7 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/rockchip/sdram_rk3066.c b/drivers/ram/rockchip/sdram_rk3066.c index 562cf544c909..a280e2d9fa1d 100644 --- a/drivers/ram/rockchip/sdram_rk3066.c +++ b/drivers/ram/rockchip/sdram_rk3066.c @@ -6,7 +6,7 @@ * Adapted from the very similar rk3188 ddr init. */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3128.c b/drivers/ram/rockchip/sdram_rk3128.c index ded65393806e..66611f80b2da 100644 --- a/drivers/ram/rockchip/sdram_rk3128.c +++ b/drivers/ram/rockchip/sdram_rk3128.c @@ -3,7 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c index e1b28c6e5933..618bce5c9f49 100644 --- a/drivers/ram/rockchip/sdram_rk3188.c +++ b/drivers/ram/rockchip/sdram_rk3188.c @@ -6,7 +6,7 @@ * Adapted from the very similar rk3288 ddr init. */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index 5fc23c11193f..a48a50911844 100644 --- a/drivers/ram/rockchip/sdram_rk322x.c +++ b/drivers/ram/rockchip/sdram_rk322x.c @@ -2,7 +2,7 @@ /* * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c index 242d564a7d26..c9f61e933e9a 100644 --- a/drivers/ram/rockchip/sdram_rk3288.c +++ b/drivers/ram/rockchip/sdram_rk3288.c @@ -6,7 +6,7 @@ * Adapted from coreboot. */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3308.c b/drivers/ram/rockchip/sdram_rk3308.c index 264366291cf8..8071997f8d86 100644 --- a/drivers/ram/rockchip/sdram_rk3308.c +++ b/drivers/ram/rockchip/sdram_rk3308.c @@ -3,7 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c index b5ca8ca436f5..99690d67a501 100644 --- a/drivers/ram/rockchip/sdram_rk3328.c +++ b/drivers/ram/rockchip/sdram_rk3328.c @@ -2,7 +2,7 @@ /* * (C) Copyright 2017 Rockchip Electronics Co., Ltd. */ -#include <common.h> +#include <config.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 02cc4a38cf0b..ef9a1824b2b3 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -5,7 +5,7 @@ * Adapted from coreboot. */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3568.c b/drivers/ram/rockchip/sdram_rk3568.c index f661615c1b91..a252d5c70106 100644 --- a/drivers/ram/rockchip/sdram_rk3568.c +++ b/drivers/ram/rockchip/sdram_rk3568.c @@ -3,7 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3588.c b/drivers/ram/rockchip/sdram_rk3588.c index cf56e2a94121..a144b432d76f 100644 --- a/drivers/ram/rockchip/sdram_rk3588.c +++ b/drivers/ram/rockchip/sdram_rk3588.c @@ -3,7 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd. */
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rv1126.c b/drivers/ram/rockchip/sdram_rv1126.c index 849e15a91932..4fbb088a8d98 100644 --- a/drivers/ram/rockchip/sdram_rv1126.c +++ b/drivers/ram/rockchip/sdram_rv1126.c @@ -4,7 +4,7 @@ * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. */
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <dm.h> #include <ram.h> diff --git a/drivers/ram/sandbox_ram.c b/drivers/ram/sandbox_ram.c index 910dce623e90..2097da565322 100644 --- a/drivers/ram/sandbox_ram.c +++ b/drivers/ram/sandbox_ram.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <ram.h> diff --git a/drivers/ram/sifive/sifive_ddr.c b/drivers/ram/sifive/sifive_ddr.c index 4bd69a62be2b..bd2f438d7271 100644 --- a/drivers/ram/sifive/sifive_ddr.c +++ b/drivers/ram/sifive/sifive_ddr.c @@ -6,7 +6,6 @@ * Pragnesh Patel pragnesh.patel@sifive.com */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <init.h> diff --git a/drivers/ram/starfive/ddrcsr_boot.c b/drivers/ram/starfive/ddrcsr_boot.c index f2dd55f74a08..6764b3ed5cc9 100644 --- a/drivers/ram/starfive/ddrcsr_boot.c +++ b/drivers/ram/starfive/ddrcsr_boot.c @@ -4,7 +4,6 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> #include <asm/io.h> #include <asm/arch/regs.h> #include <linux/delay.h> diff --git a/drivers/ram/starfive/ddrphy_start.c b/drivers/ram/starfive/ddrphy_start.c index 479b6ef10418..efe3f8a181a5 100644 --- a/drivers/ram/starfive/ddrphy_start.c +++ b/drivers/ram/starfive/ddrphy_start.c @@ -4,7 +4,6 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> #include <asm/io.h>
#include "starfive_ddr.h" diff --git a/drivers/ram/starfive/ddrphy_train.c b/drivers/ram/starfive/ddrphy_train.c index 0740f49be5bb..0aff1e8727ef 100644 --- a/drivers/ram/starfive/ddrphy_train.c +++ b/drivers/ram/starfive/ddrphy_train.c @@ -4,7 +4,7 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> +#include <linux/kernel.h> #include <asm/io.h>
static const u32 ddr_train_data[] = { diff --git a/drivers/ram/starfive/ddrphy_utils.c b/drivers/ram/starfive/ddrphy_utils.c index 1c9fe0a78465..d6dd6ee7a859 100644 --- a/drivers/ram/starfive/ddrphy_utils.c +++ b/drivers/ram/starfive/ddrphy_utils.c @@ -4,7 +4,7 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> +#include <linux/kernel.h> #include <asm/io.h>
static const u32 ddr_phy_data[] = { diff --git a/drivers/ram/starfive/starfive_ddr.c b/drivers/ram/starfive/starfive_ddr.c index a0a3d6b33dc2..b31ed3bcf617 100644 --- a/drivers/ram/starfive/starfive_ddr.c +++ b/drivers/ram/starfive/starfive_ddr.c @@ -4,7 +4,6 @@ * Author: Yanhong Wangyanhong.wang@starfivetech.com */
-#include <common.h> #include <asm/arch/regs.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/ram/starfive/starfive_ddr.h b/drivers/ram/starfive/starfive_ddr.h index d0ec1c1da807..c29d26b510c9 100644 --- a/drivers/ram/starfive/starfive_ddr.h +++ b/drivers/ram/starfive/starfive_ddr.h @@ -7,6 +7,8 @@ #ifndef __STARFIVE_DDR_H__ #define __STARFIVE_DDR_H__
+#include <linux/kernel.h> + #define SEC_CTRL_ADDR 0x1000 #define PHY_BASE_ADDR 0x800 #define PHY_AC_BASE_ADDR 0x1000 diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c index 891f4137813e..10dc05dd6404 100644 --- a/drivers/ram/stm32_sdram.c +++ b/drivers/ram/stm32_sdram.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c index 8ee4e24f39df..d7834b322992 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr.c +++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c index 2c19847c6633..6340afbb8709 100644 --- a/drivers/ram/stm32mp1/stm32mp1_interactive.c +++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <command.h> #include <console.h> #include <cli.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c index a82b1db7592d..debc458c0e2e 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ram.c +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index c5f33544144f..6108faa70730 100644 --- a/drivers/ram/stm32mp1/stm32mp1_tests.c +++ b/drivers/ram/stm32mp1/stm32mp1_tests.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <console.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/sunxi/dram_sun20i_d1.c b/drivers/ram/sunxi/dram_sun20i_d1.c index 38379281d739..a1794032f3b8 100644 --- a/drivers/ram/sunxi/dram_sun20i_d1.c +++ b/drivers/ram/sunxi/dram_sun20i_d1.c @@ -13,7 +13,7 @@ */
#include <asm/io.h> -#include <common.h> +#include <config.h> #ifdef CONFIG_RAM #include <dm.h> #include <ram.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Mario Six mario.six@gdsys.cc Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Ralph Siemsen ralph.siemsen@linaro.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Leo Yu-Chi Liang ycliang@andestech.com Cc: Yanhong Wang yanhong.wang@starfivetech.com Cc: Andre Przywara andre.przywara@arm.com
drivers/ram/aspeed/sdram_ast2500.c | 2 +- drivers/ram/aspeed/sdram_ast2600.c | 2 +- drivers/ram/bmips_ram.c | 1 - drivers/ram/cadence/ddr_ctrl.c | 1 - drivers/ram/imxrt_sdram.c | 1 - drivers/ram/k3-am654-ddrss.c | 1 - drivers/ram/k3-ddrss/k3-ddrss.c | 1 - drivers/ram/mediatek/ddr3-mt7629.c | 2 +- drivers/ram/mpc83xx_sdram.c | 1 - drivers/ram/ram-uclass.c | 1 - drivers/ram/renesas/rzn1/ddr_async.c | 1 - drivers/ram/rockchip/dmc-rk3368.c | 2 +- drivers/ram/rockchip/sdram_common.c | 2 +- drivers/ram/rockchip/sdram_pctl_px30.c | 1 - drivers/ram/rockchip/sdram_phy_px30.c | 1 - drivers/ram/rockchip/sdram_px30.c | 2 +- drivers/ram/rockchip/sdram_rk3066.c | 2 +- drivers/ram/rockchip/sdram_rk3128.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3308.c | 2 +- drivers/ram/rockchip/sdram_rk3328.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/ram/rockchip/sdram_rk3568.c | 2 +- drivers/ram/rockchip/sdram_rk3588.c | 2 +- drivers/ram/rockchip/sdram_rv1126.c | 2 +- drivers/ram/sandbox_ram.c | 1 - drivers/ram/sifive/sifive_ddr.c | 1 - drivers/ram/starfive/ddrcsr_boot.c | 1 - drivers/ram/starfive/ddrphy_start.c | 1 - drivers/ram/starfive/ddrphy_train.c | 2 +- drivers/ram/starfive/ddrphy_utils.c | 2 +- drivers/ram/starfive/starfive_ddr.c | 1 - drivers/ram/starfive/starfive_ddr.h | 2 ++ drivers/ram/stm32_sdram.c | 1 - drivers/ram/stm32mp1/stm32mp1_ddr.c | 1 - drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 - drivers/ram/stm32mp1/stm32mp1_ram.c | 1 - drivers/ram/stm32mp1/stm32mp1_tests.c | 1 - drivers/ram/sunxi/dram_sun20i_d1.c | 2 +- 41 files changed, 22 insertions(+), 40 deletions(-)
diff --git a/drivers/ram/aspeed/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c index dc466a88e712..0d6ab79f96fc 100644 --- a/drivers/ram/aspeed/sdram_ast2500.c +++ b/drivers/ram/aspeed/sdram_ast2500.c @@ -5,7 +5,7 @@
- Copyright 2016 Google, Inc
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/aspeed/sdram_ast2600.c b/drivers/ram/aspeed/sdram_ast2600.c index d463933363ee..55e80fba3dc0 100644 --- a/drivers/ram/aspeed/sdram_ast2600.c +++ b/drivers/ram/aspeed/sdram_ast2600.c @@ -2,7 +2,7 @@ /*
- Copyright (C) ASPEED Technology Inc.
*/ -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/bmips_ram.c b/drivers/ram/bmips_ram.c index 98045248ecfb..760bebdbba04 100644 --- a/drivers/ram/bmips_ram.c +++ b/drivers/ram/bmips_ram.c @@ -7,7 +7,6 @@
- Copyright (C) 2009 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/ram/cadence/ddr_ctrl.c b/drivers/ram/cadence/ddr_ctrl.c index 3e5959a84a37..0fa60e766a7e 100644 --- a/drivers/ram/cadence/ddr_ctrl.c +++ b/drivers/ram/cadence/ddr_ctrl.c @@ -24,7 +24,6 @@
- bandwidth allocated to each AXI slave can be set.
*/
-#include <common.h> #include <linux/delay.h> #include <linux/sizes.h> #include <asm/io.h> diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c index 6a15242c20cc..3df106c9b79a 100644 --- a/drivers/ram/imxrt_sdram.c +++ b/drivers/ram/imxrt_sdram.c @@ -4,7 +4,6 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c index cff8ffc89295..21ff9d761e1b 100644 --- a/drivers/ram/k3-am654-ddrss.c +++ b/drivers/ram/k3-am654-ddrss.c @@ -6,7 +6,6 @@
- Lokesh Vutla lokeshvutla@ti.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/ram/k3-ddrss/k3-ddrss.c b/drivers/ram/k3-ddrss/k3-ddrss.c index a5c9b82cf1da..525b6d5b79fc 100644 --- a/drivers/ram/k3-ddrss/k3-ddrss.c +++ b/drivers/ram/k3-ddrss/k3-ddrss.c @@ -5,7 +5,6 @@
- Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
*/
-#include <common.h> #include <config.h> #include <clk.h> #include <div64.h> diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c index f65fcf179cf6..c27c4593b9d9 100644 --- a/drivers/ram/mediatek/ddr3-mt7629.c +++ b/drivers/ram/mediatek/ddr3-mt7629.c @@ -8,7 +8,7 @@ */
#include <clk.h> -#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index 11676d4fae7e..28a663289a23 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/ram-uclass.c b/drivers/ram/ram-uclass.c index 4e21240fd4cb..a33d583cc448 100644 --- a/drivers/ram/ram-uclass.c +++ b/drivers/ram/ram-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <ram.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/renesas/rzn1/ddr_async.c b/drivers/ram/renesas/rzn1/ddr_async.c index 7a81497bc92b..4d470aae1914 100644 --- a/drivers/ram/renesas/rzn1/ddr_async.c +++ b/drivers/ram/renesas/rzn1/ddr_async.c @@ -7,7 +7,6 @@
- Copyright (C) 2015 Renesas Electronics Europe Ltd
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c index 5279bf0a1548..42114a5aa917 100644 --- a/drivers/ram/rockchip/dmc-rk3368.c +++ b/drivers/ram/rockchip/dmc-rk3368.c @@ -3,7 +3,7 @@
- (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <hang.h> diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c index 60fc90d0a5c0..b7a8fce607c8 100644 --- a/drivers/ram/rockchip/sdram_common.c +++ b/drivers/ram/rockchip/sdram_common.c @@ -3,7 +3,7 @@
- (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/rockchip/sdram_pctl_px30.c b/drivers/ram/rockchip/sdram_pctl_px30.c index e5c80fb83b3f..3ec98af536e8 100644 --- a/drivers/ram/rockchip/sdram_pctl_px30.c +++ b/drivers/ram/rockchip/sdram_pctl_px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_phy_px30.c b/drivers/ram/rockchip/sdram_phy_px30.c index f7f6de1ba98b..5416eef38788 100644 --- a/drivers/ram/rockchip/sdram_phy_px30.c +++ b/drivers/ram/rockchip/sdram_phy_px30.c @@ -3,7 +3,6 @@
- (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_px30.c b/drivers/ram/rockchip/sdram_px30.c index 21498e89570f..37e621205047 100644 --- a/drivers/ram/rockchip/sdram_px30.c +++ b/drivers/ram/rockchip/sdram_px30.c @@ -3,7 +3,7 @@
- (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/rockchip/sdram_rk3066.c b/drivers/ram/rockchip/sdram_rk3066.c index 562cf544c909..a280e2d9fa1d 100644 --- a/drivers/ram/rockchip/sdram_rk3066.c +++ b/drivers/ram/rockchip/sdram_rk3066.c @@ -6,7 +6,7 @@
- Adapted from the very similar rk3188 ddr init.
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3128.c b/drivers/ram/rockchip/sdram_rk3128.c index ded65393806e..66611f80b2da 100644 --- a/drivers/ram/rockchip/sdram_rk3128.c +++ b/drivers/ram/rockchip/sdram_rk3128.c @@ -3,7 +3,7 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c index e1b28c6e5933..618bce5c9f49 100644 --- a/drivers/ram/rockchip/sdram_rk3188.c +++ b/drivers/ram/rockchip/sdram_rk3188.c @@ -6,7 +6,7 @@
- Adapted from the very similar rk3288 ddr init.
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index 5fc23c11193f..a48a50911844 100644 --- a/drivers/ram/rockchip/sdram_rk322x.c +++ b/drivers/ram/rockchip/sdram_rk322x.c @@ -2,7 +2,7 @@ /*
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/ -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c index 242d564a7d26..c9f61e933e9a 100644 --- a/drivers/ram/rockchip/sdram_rk3288.c +++ b/drivers/ram/rockchip/sdram_rk3288.c @@ -6,7 +6,7 @@
- Adapted from coreboot.
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3308.c b/drivers/ram/rockchip/sdram_rk3308.c index 264366291cf8..8071997f8d86 100644 --- a/drivers/ram/rockchip/sdram_rk3308.c +++ b/drivers/ram/rockchip/sdram_rk3308.c @@ -3,7 +3,7 @@
- (C) Copyright 2019 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c index b5ca8ca436f5..99690d67a501 100644 --- a/drivers/ram/rockchip/sdram_rk3328.c +++ b/drivers/ram/rockchip/sdram_rk3328.c @@ -2,7 +2,7 @@ /*
- (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/ -#include <common.h> +#include <config.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 02cc4a38cf0b..ef9a1824b2b3 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -5,7 +5,7 @@
- Adapted from coreboot.
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3568.c b/drivers/ram/rockchip/sdram_rk3568.c index f661615c1b91..a252d5c70106 100644 --- a/drivers/ram/rockchip/sdram_rk3568.c +++ b/drivers/ram/rockchip/sdram_rk3568.c @@ -3,7 +3,7 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3588.c b/drivers/ram/rockchip/sdram_rk3588.c index cf56e2a94121..a144b432d76f 100644 --- a/drivers/ram/rockchip/sdram_rk3588.c +++ b/drivers/ram/rockchip/sdram_rk3588.c @@ -3,7 +3,7 @@
- (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rv1126.c b/drivers/ram/rockchip/sdram_rv1126.c index 849e15a91932..4fbb088a8d98 100644 --- a/drivers/ram/rockchip/sdram_rv1126.c +++ b/drivers/ram/rockchip/sdram_rv1126.c @@ -4,7 +4,7 @@
- Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/
-#include <common.h> +#include <config.h> #include <debug_uart.h> #include <dm.h> #include <ram.h> diff --git a/drivers/ram/sandbox_ram.c b/drivers/ram/sandbox_ram.c index 910dce623e90..2097da565322 100644 --- a/drivers/ram/sandbox_ram.c +++ b/drivers/ram/sandbox_ram.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <ram.h> diff --git a/drivers/ram/sifive/sifive_ddr.c b/drivers/ram/sifive/sifive_ddr.c index 4bd69a62be2b..bd2f438d7271 100644 --- a/drivers/ram/sifive/sifive_ddr.c +++ b/drivers/ram/sifive/sifive_ddr.c @@ -6,7 +6,6 @@
- Pragnesh Patel pragnesh.patel@sifive.com
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <init.h> diff --git a/drivers/ram/starfive/ddrcsr_boot.c b/drivers/ram/starfive/ddrcsr_boot.c index f2dd55f74a08..6764b3ed5cc9 100644 --- a/drivers/ram/starfive/ddrcsr_boot.c +++ b/drivers/ram/starfive/ddrcsr_boot.c @@ -4,7 +4,6 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/regs.h> #include <linux/delay.h> diff --git a/drivers/ram/starfive/ddrphy_start.c b/drivers/ram/starfive/ddrphy_start.c index 479b6ef10418..efe3f8a181a5 100644 --- a/drivers/ram/starfive/ddrphy_start.c +++ b/drivers/ram/starfive/ddrphy_start.c @@ -4,7 +4,6 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> #include <asm/io.h>
#include "starfive_ddr.h" diff --git a/drivers/ram/starfive/ddrphy_train.c b/drivers/ram/starfive/ddrphy_train.c index 0740f49be5bb..0aff1e8727ef 100644 --- a/drivers/ram/starfive/ddrphy_train.c +++ b/drivers/ram/starfive/ddrphy_train.c @@ -4,7 +4,7 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> +#include <linux/kernel.h> #include <asm/io.h>
static const u32 ddr_train_data[] = { diff --git a/drivers/ram/starfive/ddrphy_utils.c b/drivers/ram/starfive/ddrphy_utils.c index 1c9fe0a78465..d6dd6ee7a859 100644 --- a/drivers/ram/starfive/ddrphy_utils.c +++ b/drivers/ram/starfive/ddrphy_utils.c @@ -4,7 +4,7 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> +#include <linux/kernel.h> #include <asm/io.h>
static const u32 ddr_phy_data[] = { diff --git a/drivers/ram/starfive/starfive_ddr.c b/drivers/ram/starfive/starfive_ddr.c index a0a3d6b33dc2..b31ed3bcf617 100644 --- a/drivers/ram/starfive/starfive_ddr.c +++ b/drivers/ram/starfive/starfive_ddr.c @@ -4,7 +4,6 @@
- Author: Yanhong Wangyanhong.wang@starfivetech.com
*/
-#include <common.h> #include <asm/arch/regs.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/ram/starfive/starfive_ddr.h b/drivers/ram/starfive/starfive_ddr.h index d0ec1c1da807..c29d26b510c9 100644 --- a/drivers/ram/starfive/starfive_ddr.h +++ b/drivers/ram/starfive/starfive_ddr.h @@ -7,6 +7,8 @@ #ifndef __STARFIVE_DDR_H__ #define __STARFIVE_DDR_H__
+#include <linux/kernel.h>
- #define SEC_CTRL_ADDR 0x1000 #define PHY_BASE_ADDR 0x800 #define PHY_AC_BASE_ADDR 0x1000
diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c index 891f4137813e..10dc05dd6404 100644 --- a/drivers/ram/stm32_sdram.c +++ b/drivers/ram/stm32_sdram.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c index 8ee4e24f39df..d7834b322992 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr.c +++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c index 2c19847c6633..6340afbb8709 100644 --- a/drivers/ram/stm32mp1/stm32mp1_interactive.c +++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <command.h> #include <console.h> #include <cli.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c index a82b1db7592d..debc458c0e2e 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ram.c +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index c5f33544144f..6108faa70730 100644 --- a/drivers/ram/stm32mp1/stm32mp1_tests.c +++ b/drivers/ram/stm32mp1/stm32mp1_tests.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM
-#include <common.h> #include <console.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/sunxi/dram_sun20i_d1.c b/drivers/ram/sunxi/dram_sun20i_d1.c index 38379281d739..a1794032f3b8 100644 --- a/drivers/ram/sunxi/dram_sun20i_d1.c +++ b/drivers/ram/sunxi/dram_sun20i_d1.c @@ -13,7 +13,7 @@ */
#include <asm/io.h> -#include <common.h> +#include <config.h> #ifdef CONFIG_RAM #include <dm.h> #include <ram.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Sean Anderson seanga2@gmail.com --- drivers/reboot-mode/reboot-mode-gpio.c | 1 - drivers/reboot-mode/reboot-mode-nvmem.c | 1 - drivers/reboot-mode/reboot-mode-rtc.c | 1 - drivers/reboot-mode/reboot-mode-uclass.c | 1 - 4 files changed, 4 deletions(-)
diff --git a/drivers/reboot-mode/reboot-mode-gpio.c b/drivers/reboot-mode/reboot-mode-gpio.c index 305174736ede..22ee40c34333 100644 --- a/drivers/reboot-mode/reboot-mode-gpio.c +++ b/drivers/reboot-mode/reboot-mode-gpio.c @@ -3,7 +3,6 @@ * Copyright (c), Vaisala Oyj */
-#include <common.h> #include <asm/gpio.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/reboot-mode/reboot-mode-nvmem.c b/drivers/reboot-mode/reboot-mode-nvmem.c index da41ca41d9a1..b9af242520a0 100644 --- a/drivers/reboot-mode/reboot-mode-nvmem.c +++ b/drivers/reboot-mode/reboot-mode-nvmem.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Sean Anderson sean.anderson@seco.com */
-#include <common.h> #include <dm.h> #include <nvmem.h> #include <reboot-mode/reboot-mode.h> diff --git a/drivers/reboot-mode/reboot-mode-rtc.c b/drivers/reboot-mode/reboot-mode-rtc.c index 972d0cdbcb5b..4f4ad63febc1 100644 --- a/drivers/reboot-mode/reboot-mode-rtc.c +++ b/drivers/reboot-mode/reboot-mode-rtc.c @@ -3,7 +3,6 @@ * Copyright (c), Vaisala Oyj */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <reboot-mode/reboot-mode-rtc.h> diff --git a/drivers/reboot-mode/reboot-mode-uclass.c b/drivers/reboot-mode/reboot-mode-uclass.c index 2b38aa26b859..7cbe02eb4ed4 100644 --- a/drivers/reboot-mode/reboot-mode-uclass.c +++ b/drivers/reboot-mode/reboot-mode-uclass.c @@ -3,7 +3,6 @@ * Copyright (c), Vaisala Oyj */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Nishanth Menon nm@ti.com Cc: Dan Carpenter dan.carpenter@linaro.org Cc: Ravi Gunasekaran r-gunasekaran@ti.com Cc: Roger Quadros rogerq@kernel.org Cc: MD Danish Anwar danishanwar@ti.com --- drivers/remoteproc/ipu_rproc.c | 1 - drivers/remoteproc/k3_system_controller.c | 1 - drivers/remoteproc/pru_rproc.c | 1 - drivers/remoteproc/rproc-elf-loader.c | 1 - drivers/remoteproc/rproc-uclass.c | 1 - drivers/remoteproc/sandbox_testproc.c | 1 - drivers/remoteproc/stm32_copro.c | 1 - drivers/remoteproc/ti_k3_arm64_rproc.c | 1 - drivers/remoteproc/ti_k3_dsp_rproc.c | 1 - drivers/remoteproc/ti_k3_r5f_rproc.c | 1 - drivers/remoteproc/ti_power_proc.c | 1 - 11 files changed, 11 deletions(-)
diff --git a/drivers/remoteproc/ipu_rproc.c b/drivers/remoteproc/ipu_rproc.c index 996e658e8718..2ca78b550a7e 100644 --- a/drivers/remoteproc/ipu_rproc.c +++ b/drivers/remoteproc/ipu_rproc.c @@ -8,7 +8,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <hang.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/remoteproc/k3_system_controller.c b/drivers/remoteproc/k3_system_controller.c index 071de40fbd6f..71238a6058a4 100644 --- a/drivers/remoteproc/k3_system_controller.c +++ b/drivers/remoteproc/k3_system_controller.c @@ -6,7 +6,6 @@ * Lokesh Vutla lokeshvutla@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <remoteproc.h> diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 6ec55e27d9dd..115c342244af 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -6,7 +6,6 @@ * Keerthy j-keerthy@ti.com */
-#include <common.h> #include <dm.h> #include <elf.h> #include <dm/of_access.h> diff --git a/drivers/remoteproc/rproc-elf-loader.c b/drivers/remoteproc/rproc-elf-loader.c index 5e070e5076e1..ab1836b3f078 100644 --- a/drivers/remoteproc/rproc-elf-loader.c +++ b/drivers/remoteproc/rproc-elf-loader.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <elf.h> diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index aa7f7586a814..3ba2b40dca38 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -7,7 +7,6 @@ #define LOG_CATEGORY UCLASS_REMOTEPROC
#define pr_fmt(fmt) "%s: " fmt, __func__ -#include <common.h> #include <elf.h> #include <errno.h> #include <log.h> diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c index f76f68ebeb43..ad575a7c10fd 100644 --- a/drivers/remoteproc/sandbox_testproc.c +++ b/drivers/remoteproc/sandbox_testproc.c @@ -4,7 +4,6 @@ * Texas Instruments Incorporated - https://www.ti.com/ */ #define pr_fmt(fmt) "%s: " fmt, __func__ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/remoteproc/stm32_copro.c b/drivers/remoteproc/stm32_copro.c index 3e322c4d7191..f45da9a68ac6 100644 --- a/drivers/remoteproc/stm32_copro.c +++ b/drivers/remoteproc/stm32_copro.c @@ -4,7 +4,6 @@ */ #define LOG_CATEGORY UCLASS_REMOTEPROC
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/remoteproc/ti_k3_arm64_rproc.c b/drivers/remoteproc/ti_k3_arm64_rproc.c index 767493c1383c..d3eb957b2e49 100644 --- a/drivers/remoteproc/ti_k3_arm64_rproc.c +++ b/drivers/remoteproc/ti_k3_arm64_rproc.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <remoteproc.h> #include <errno.h> diff --git a/drivers/remoteproc/ti_k3_dsp_rproc.c b/drivers/remoteproc/ti_k3_dsp_rproc.c index e790406324a9..57fe1037da02 100644 --- a/drivers/remoteproc/ti_k3_dsp_rproc.c +++ b/drivers/remoteproc/ti_k3_dsp_rproc.c @@ -7,7 +7,6 @@ * Suman Anna s-anna@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/remoteproc/ti_k3_r5f_rproc.c b/drivers/remoteproc/ti_k3_r5f_rproc.c index 631e548dccef..b55b1dc10d4a 100644 --- a/drivers/remoteproc/ti_k3_r5f_rproc.c +++ b/drivers/remoteproc/ti_k3_r5f_rproc.c @@ -7,7 +7,6 @@ * Suman Anna s-anna@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/remoteproc/ti_power_proc.c b/drivers/remoteproc/ti_power_proc.c index f55df4a91195..cf150af4ef97 100644 --- a/drivers/remoteproc/ti_power_proc.c +++ b/drivers/remoteproc/ti_power_proc.c @@ -4,7 +4,6 @@ * Texas Instruments Incorporated - https://www.ti.com/ */ #define pr_fmt(fmt) "%s: " fmt, __func__ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Yang Xiwen forbidden405@outlook.com Cc: Sumit Garg sumit.garg@linaro.org Cc: Marek Vasut marex@denx.de Cc: Eugen Hristev eugen.hristev@collabora.com Cc: John Keeping john@metanate.com Cc: Etienne Carriere etienne.carriere@foss.st.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com --- drivers/reset/reset-ast2500.c | 1 - drivers/reset/reset-ast2600.c | 1 - drivers/reset/reset-bcm6345.c | 1 - drivers/reset/reset-dra7.c | 1 - drivers/reset/reset-hisilicon.c | 1 - drivers/reset/reset-hsdk.c | 1 - drivers/reset/reset-imx7.c | 1 - drivers/reset/reset-jh7110.c | 1 - drivers/reset/reset-mediatek.c | 1 - drivers/reset/reset-meson.c | 1 - drivers/reset/reset-mtmips.c | 1 - drivers/reset/reset-raspberrypi.c | 1 - drivers/reset/reset-rockchip.c | 1 - drivers/reset/reset-scmi.c | 1 - drivers/reset/reset-sifive.c | 1 - drivers/reset/reset-socfpga.c | 1 - drivers/reset/reset-sunxi.c | 1 - drivers/reset/reset-syscon.c | 1 - drivers/reset/reset-ti-sci.c | 1 - drivers/reset/reset-uclass.c | 1 - drivers/reset/reset-uniphier.c | 1 - drivers/reset/reset-zynqmp.c | 1 - drivers/reset/rst-rk3588.c | 1 - drivers/reset/sandbox-reset-test.c | 1 - drivers/reset/sandbox-reset.c | 1 - drivers/reset/sti-reset.c | 1 - drivers/reset/stm32-reset.c | 1 - drivers/reset/tegra-car-reset.c | 1 - drivers/reset/tegra186-reset.c | 1 - 29 files changed, 29 deletions(-)
diff --git a/drivers/reset/reset-ast2500.c b/drivers/reset/reset-ast2500.c index d9cecf3a72e8..0ed5396b3e91 100644 --- a/drivers/reset/reset-ast2500.c +++ b/drivers/reset/reset-ast2500.c @@ -4,7 +4,6 @@ * Copyright 2020 ASPEED Technology Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-ast2600.c b/drivers/reset/reset-ast2600.c index 1732a450efc0..ec7b9b6625dc 100644 --- a/drivers/reset/reset-ast2600.c +++ b/drivers/reset/reset-ast2600.c @@ -3,7 +3,6 @@ * Copyright 2020 ASPEED Technology Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c index 5383f59ca375..6f140574216d 100644 --- a/drivers/reset/reset-bcm6345.c +++ b/drivers/reset/reset-bcm6345.c @@ -6,7 +6,6 @@ * Copyright (C) 2012 Jonas Gorski jonas.gorski@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-dra7.c b/drivers/reset/reset-dra7.c index 05101a94f9bc..2f0ec4c042f7 100644 --- a/drivers/reset/reset-dra7.c +++ b/drivers/reset/reset-dra7.c @@ -7,7 +7,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <dm/device_compat.h> diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c index 85e02b296b02..aca54cd6701c 100644 --- a/drivers/reset/reset-hisilicon.c +++ b/drivers/reset/reset-hisilicon.c @@ -6,7 +6,6 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <dt-bindings/reset/ti-syscon.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c index 74b1173e8878..747e73b17fcb 100644 --- a/drivers/reset/reset-hsdk.c +++ b/drivers/reset/reset-hsdk.c @@ -8,7 +8,6 @@
#include <log.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/iopoll.h> diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index a3b3132f2fae..65a352b71fd7 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -6,7 +6,6 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <dt-bindings/reset/imx7-reset.h> #include <dt-bindings/reset/imx8mp-reset.h> diff --git a/drivers/reset/reset-jh7110.c b/drivers/reset/reset-jh7110.c index d6bdf6bb00c4..adf722d5871a 100644 --- a/drivers/reset/reset-jh7110.c +++ b/drivers/reset/reset-jh7110.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <dm.h> #include <dm/ofnode.h> #include <dt-bindings/reset/starfive,jh7110-crg.h> diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c index 97ed221f739a..4b3afab92ea7 100644 --- a/drivers/reset/reset-mediatek.c +++ b/drivers/reset/reset-mediatek.c @@ -6,7 +6,6 @@ * Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 9d0c8b354f4a..6337cdaaffa2 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-mtmips.c b/drivers/reset/reset-mtmips.c index 7bb8469823c8..2db6766280f2 100644 --- a/drivers/reset/reset-mtmips.c +++ b/drivers/reset/reset-mtmips.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c index 804e32b8dd14..1792f0813f79 100644 --- a/drivers/reset/reset-raspberrypi.c +++ b/drivers/reset/reset-raspberrypi.c @@ -4,7 +4,6 @@ * * Copyright (C) 2020 Nicolas Saenz Julienne nsaenzjulienne@suse.de */ -#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/arch/msg.h> diff --git a/drivers/reset/reset-rockchip.c b/drivers/reset/reset-rockchip.c index 6cabaa10a35b..876eb7dddaa8 100644 --- a/drivers/reset/reset-rockchip.c +++ b/drivers/reset/reset-rockchip.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index b76711f0a8fb..6dc1fcb33653 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <errno.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-sifive.c b/drivers/reset/reset-sifive.c index 23513b2f541b..65f857149b96 100644 --- a/drivers/reset/reset-sifive.c +++ b/drivers/reset/reset-sifive.c @@ -4,7 +4,6 @@ * Author: Sagar Kadam sagar.kadam@sifive.com */
-#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/io.h> diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c index 6e3f03e24843..866437fd24fe 100644 --- a/drivers/reset/reset-socfpga.c +++ b/drivers/reset/reset-socfpga.c @@ -12,7 +12,6 @@ * Maxime Ripard maxime.ripard@free-electrons.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index e484d1fff449..fd47e1f9e377 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -4,7 +4,6 @@ * Author: Jagan Teki jagan@amarulasolutions.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-syscon.c b/drivers/reset/reset-syscon.c index ff387ab6b22f..5be8c9492af2 100644 --- a/drivers/reset/reset-syscon.c +++ b/drivers/reset/reset-syscon.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Sean Anderson */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <reset.h> diff --git a/drivers/reset/reset-ti-sci.c b/drivers/reset/reset-ti-sci.c index fd654a08f13a..e69bcd41cbe8 100644 --- a/drivers/reset/reset-ti-sci.c +++ b/drivers/reset/reset-ti-sci.c @@ -8,7 +8,6 @@ * Loosely based on Linux kernel reset-ti-sci.c... */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c index b972faf01328..fe4cebf54f15 100644 --- a/drivers/reset/reset-uclass.c +++ b/drivers/reset/reset-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 35e3ccebd72e..49b001f05942 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -5,7 +5,6 @@ * Author: Kunihiko Hayashi hayashi.kunihiko@socionext.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c index 87b4df5bf81a..b9c4f09fdfde 100644 --- a/drivers/reset/reset-zynqmp.c +++ b/drivers/reset/reset-zynqmp.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <reset-uclass.h> diff --git a/drivers/reset/rst-rk3588.c b/drivers/reset/rst-rk3588.c index 2c524e4c4033..eae2eb10de24 100644 --- a/drivers/reset/rst-rk3588.c +++ b/drivers/reset/rst-rk3588.c @@ -5,7 +5,6 @@ * Author: Sebastian Reichel sebastian.reichel@collabora.com */
-#include <common.h> #include <dm.h> #include <asm/arch-rockchip/clock.h> #include <dt-bindings/reset/rockchip,rk3588-cru.h> diff --git a/drivers/reset/sandbox-reset-test.c b/drivers/reset/sandbox-reset-test.c index 51b79810c89e..dfacb764bc77 100644 --- a/drivers/reset/sandbox-reset-test.c +++ b/drivers/reset/sandbox-reset-test.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sandbox-reset.c b/drivers/reset/sandbox-reset.c index 97b1b92e4a6c..adf9eedcba6d 100644 --- a/drivers/reset/sandbox-reset.c +++ b/drivers/reset/sandbox-reset.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index 5305270fbf20..412a0c5b452b 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -4,7 +4,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/stm32-reset.c b/drivers/reset/stm32-reset.c index 0bbde29810b4..9d4f361b2519 100644 --- a/drivers/reset/stm32-reset.c +++ b/drivers/reset/stm32-reset.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/tegra-car-reset.c b/drivers/reset/tegra-car-reset.c index 501e9cab8f7c..e3ecc8d37357 100644 --- a/drivers/reset/tegra-car-reset.c +++ b/drivers/reset/tegra-car-reset.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/tegra186-reset.c b/drivers/reset/tegra186-reset.c index d43da454114d..89624227c293 100644 --- a/drivers/reset/tegra186-reset.c +++ b/drivers/reset/tegra186-reset.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Tom Rini trini@konsulko.com Cc: Eugeniy Paltsev Eugeniy.Paltsev@synopsys.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Michal Simek michal.simek@amd.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Yang Xiwen forbidden405@outlook.com Cc: Sumit Garg sumit.garg@linaro.org Cc: Marek Vasut marex@denx.de Cc: Eugen Hristev eugen.hristev@collabora.com Cc: John Keeping john@metanate.com Cc: Etienne Carriere etienne.carriere@foss.st.com Cc: AKASHI Takahiro akashi.tkhro@gmail.com
drivers/reset/reset-ast2500.c | 1 - drivers/reset/reset-ast2600.c | 1 - drivers/reset/reset-bcm6345.c | 1 - drivers/reset/reset-dra7.c | 1 - drivers/reset/reset-hisilicon.c | 1 - drivers/reset/reset-hsdk.c | 1 - drivers/reset/reset-imx7.c | 1 - drivers/reset/reset-jh7110.c | 1 - drivers/reset/reset-mediatek.c | 1 - drivers/reset/reset-meson.c | 1 - drivers/reset/reset-mtmips.c | 1 - drivers/reset/reset-raspberrypi.c | 1 - drivers/reset/reset-rockchip.c | 1 - drivers/reset/reset-scmi.c | 1 - drivers/reset/reset-sifive.c | 1 - drivers/reset/reset-socfpga.c | 1 - drivers/reset/reset-sunxi.c | 1 - drivers/reset/reset-syscon.c | 1 - drivers/reset/reset-ti-sci.c | 1 - drivers/reset/reset-uclass.c | 1 - drivers/reset/reset-uniphier.c | 1 - drivers/reset/reset-zynqmp.c | 1 - drivers/reset/rst-rk3588.c | 1 - drivers/reset/sandbox-reset-test.c | 1 - drivers/reset/sandbox-reset.c | 1 - drivers/reset/sti-reset.c | 1 - drivers/reset/stm32-reset.c | 1 - drivers/reset/tegra-car-reset.c | 1 - drivers/reset/tegra186-reset.c | 1 - 29 files changed, 29 deletions(-)
diff --git a/drivers/reset/reset-ast2500.c b/drivers/reset/reset-ast2500.c index d9cecf3a72e8..0ed5396b3e91 100644 --- a/drivers/reset/reset-ast2500.c +++ b/drivers/reset/reset-ast2500.c @@ -4,7 +4,6 @@
- Copyright 2020 ASPEED Technology Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-ast2600.c b/drivers/reset/reset-ast2600.c index 1732a450efc0..ec7b9b6625dc 100644 --- a/drivers/reset/reset-ast2600.c +++ b/drivers/reset/reset-ast2600.c @@ -3,7 +3,6 @@
- Copyright 2020 ASPEED Technology Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c index 5383f59ca375..6f140574216d 100644 --- a/drivers/reset/reset-bcm6345.c +++ b/drivers/reset/reset-bcm6345.c @@ -6,7 +6,6 @@
- Copyright (C) 2012 Jonas Gorski jonas.gorski@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-dra7.c b/drivers/reset/reset-dra7.c index 05101a94f9bc..2f0ec4c042f7 100644 --- a/drivers/reset/reset-dra7.c +++ b/drivers/reset/reset-dra7.c @@ -7,7 +7,6 @@ */
#include <asm/io.h> -#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <dm/device_compat.h> diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c index 85e02b296b02..aca54cd6701c 100644 --- a/drivers/reset/reset-hisilicon.c +++ b/drivers/reset/reset-hisilicon.c @@ -6,7 +6,6 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <dt-bindings/reset/ti-syscon.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c index 74b1173e8878..747e73b17fcb 100644 --- a/drivers/reset/reset-hsdk.c +++ b/drivers/reset/reset-hsdk.c @@ -8,7 +8,6 @@
#include <log.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/iopoll.h> diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index a3b3132f2fae..65a352b71fd7 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -6,7 +6,6 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <dt-bindings/reset/imx7-reset.h> #include <dt-bindings/reset/imx8mp-reset.h> diff --git a/drivers/reset/reset-jh7110.c b/drivers/reset/reset-jh7110.c index d6bdf6bb00c4..adf722d5871a 100644 --- a/drivers/reset/reset-jh7110.c +++ b/drivers/reset/reset-jh7110.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/ofnode.h> #include <dt-bindings/reset/starfive,jh7110-crg.h> diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c index 97ed221f739a..4b3afab92ea7 100644 --- a/drivers/reset/reset-mediatek.c +++ b/drivers/reset/reset-mediatek.c @@ -6,7 +6,6 @@
Weijie Gao <weijie.gao@mediatek.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 9d0c8b354f4a..6337cdaaffa2 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-mtmips.c b/drivers/reset/reset-mtmips.c index 7bb8469823c8..2db6766280f2 100644 --- a/drivers/reset/reset-mtmips.c +++ b/drivers/reset/reset-mtmips.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c index 804e32b8dd14..1792f0813f79 100644 --- a/drivers/reset/reset-raspberrypi.c +++ b/drivers/reset/reset-raspberrypi.c @@ -4,7 +4,6 @@
- Copyright (C) 2020 Nicolas Saenz Julienne nsaenzjulienne@suse.de
*/ -#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/arch/msg.h> diff --git a/drivers/reset/reset-rockchip.c b/drivers/reset/reset-rockchip.c index 6cabaa10a35b..876eb7dddaa8 100644 --- a/drivers/reset/reset-rockchip.c +++ b/drivers/reset/reset-rockchip.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index b76711f0a8fb..6dc1fcb33653 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <errno.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-sifive.c b/drivers/reset/reset-sifive.c index 23513b2f541b..65f857149b96 100644 --- a/drivers/reset/reset-sifive.c +++ b/drivers/reset/reset-sifive.c @@ -4,7 +4,6 @@
- Author: Sagar Kadam sagar.kadam@sifive.com
*/
-#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/io.h> diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c index 6e3f03e24843..866437fd24fe 100644 --- a/drivers/reset/reset-socfpga.c +++ b/drivers/reset/reset-socfpga.c @@ -12,7 +12,6 @@
- Maxime Ripard maxime.ripard@free-electrons.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index e484d1fff449..fd47e1f9e377 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -4,7 +4,6 @@
- Author: Jagan Teki jagan@amarulasolutions.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-syscon.c b/drivers/reset/reset-syscon.c index ff387ab6b22f..5be8c9492af2 100644 --- a/drivers/reset/reset-syscon.c +++ b/drivers/reset/reset-syscon.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Sean Anderson
*/
-#include <common.h> #include <dm.h> #include <regmap.h> #include <reset.h> diff --git a/drivers/reset/reset-ti-sci.c b/drivers/reset/reset-ti-sci.c index fd654a08f13a..e69bcd41cbe8 100644 --- a/drivers/reset/reset-ti-sci.c +++ b/drivers/reset/reset-ti-sci.c @@ -8,7 +8,6 @@
- Loosely based on Linux kernel reset-ti-sci.c...
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c index b972faf01328..fe4cebf54f15 100644 --- a/drivers/reset/reset-uclass.c +++ b/drivers/reset/reset-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 35e3ccebd72e..49b001f05942 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -5,7 +5,6 @@
- Author: Kunihiko Hayashi hayashi.kunihiko@socionext.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c index 87b4df5bf81a..b9c4f09fdfde 100644 --- a/drivers/reset/reset-zynqmp.c +++ b/drivers/reset/reset-zynqmp.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <reset-uclass.h> diff --git a/drivers/reset/rst-rk3588.c b/drivers/reset/rst-rk3588.c index 2c524e4c4033..eae2eb10de24 100644 --- a/drivers/reset/rst-rk3588.c +++ b/drivers/reset/rst-rk3588.c @@ -5,7 +5,6 @@
- Author: Sebastian Reichel sebastian.reichel@collabora.com
*/
-#include <common.h> #include <dm.h> #include <asm/arch-rockchip/clock.h> #include <dt-bindings/reset/rockchip,rk3588-cru.h> diff --git a/drivers/reset/sandbox-reset-test.c b/drivers/reset/sandbox-reset-test.c index 51b79810c89e..dfacb764bc77 100644 --- a/drivers/reset/sandbox-reset-test.c +++ b/drivers/reset/sandbox-reset-test.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sandbox-reset.c b/drivers/reset/sandbox-reset.c index 97b1b92e4a6c..adf9eedcba6d 100644 --- a/drivers/reset/sandbox-reset.c +++ b/drivers/reset/sandbox-reset.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index 5305270fbf20..412a0c5b452b 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/stm32-reset.c b/drivers/reset/stm32-reset.c index 0bbde29810b4..9d4f361b2519 100644 --- a/drivers/reset/stm32-reset.c +++ b/drivers/reset/stm32-reset.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RESET
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/tegra-car-reset.c b/drivers/reset/tegra-car-reset.c index 501e9cab8f7c..e3ecc8d37357 100644 --- a/drivers/reset/tegra-car-reset.c +++ b/drivers/reset/tegra-car-reset.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/tegra186-reset.c b/drivers/reset/tegra186-reset.c index d43da454114d..89624227c293 100644 --- a/drivers/reset/tegra186-reset.c +++ b/drivers/reset/tegra186-reset.c @@ -3,7 +3,6 @@
- Copyright (c) 2016, NVIDIA CORPORATION.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Michal Simek michal.simek@amd.com --- drivers/rtc/abx80x.c | 1 - drivers/rtc/davinci.c | 1 - drivers/rtc/ds1307.c | 2 +- drivers/rtc/ds1337.c | 2 +- drivers/rtc/ds1374.c | 2 +- drivers/rtc/ds3231.c | 2 +- drivers/rtc/ds3232.c | 1 - drivers/rtc/emul_rtc.c | 2 +- drivers/rtc/ht1380.c | 1 - drivers/rtc/i2c_rtc_emul.c | 1 - drivers/rtc/isl1208.c | 1 - drivers/rtc/m41t62.c | 2 +- drivers/rtc/mc13xxx-rtc.c | 1 - drivers/rtc/mc146818.c | 1 - drivers/rtc/mcfrtc.c | 1 - drivers/rtc/mvrtc.c | 1 - drivers/rtc/mxsrtc.c | 1 - drivers/rtc/pcf2127.c | 1 - drivers/rtc/pcf8563.c | 2 +- drivers/rtc/pl031.c | 1 - drivers/rtc/pt7c4338.c | 2 +- drivers/rtc/rtc-uclass.c | 1 - drivers/rtc/rv3029.c | 1 - drivers/rtc/rv8803.c | 1 - drivers/rtc/rx8010sj.c | 2 +- drivers/rtc/rx8025.c | 1 - drivers/rtc/s35392a.c | 1 - drivers/rtc/sandbox_rtc.c | 1 - drivers/rtc/stm32_rtc.c | 1 - drivers/rtc/zynqmp_rtc.c | 1 - 30 files changed, 9 insertions(+), 30 deletions(-)
diff --git a/drivers/rtc/abx80x.c b/drivers/rtc/abx80x.c index 823aff03f5f0..1235b840ab04 100644 --- a/drivers/rtc/abx80x.c +++ b/drivers/rtc/abx80x.c @@ -12,7 +12,6 @@ * */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c index c7ce41bbf5cc..a20b73e1990a 100644 --- a/drivers/rtc/davinci.c +++ b/drivers/rtc/davinci.c @@ -4,7 +4,6 @@ * Heiko Schocher hs@denx.de * Copyright (C) 2021 Dario Binacchi dariobin@libero.it */ -#include <common.h> #include <command.h> #include <dm.h> #include <clk.h> diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c index 0e9d3d24dd89..ba06ff9f0bee 100644 --- a/drivers/rtc/ds1307.c +++ b/drivers/rtc/ds1307.c @@ -13,7 +13,7 @@ * based on ds1337.c */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c index 2c780ab8edfa..7eccf1cb8c54 100644 --- a/drivers/rtc/ds1337.c +++ b/drivers/rtc/ds1337.c @@ -11,7 +11,7 @@ * DS1337 Real Time Clock (RTC). */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds1374.c b/drivers/rtc/ds1374.c index 89442f9386ba..895dbbaf1c74 100644 --- a/drivers/rtc/ds1374.c +++ b/drivers/rtc/ds1374.c @@ -13,7 +13,7 @@ * based on ds1337.c */
-#include <common.h> +#include <config.h> #include <command.h> #include <rtc.h> #include <i2c.h> diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c index bd32ed2dbf91..d6267d660d0d 100644 --- a/drivers/rtc/ds3231.c +++ b/drivers/rtc/ds3231.c @@ -14,7 +14,7 @@ * copied from ds1337.c */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds3232.c b/drivers/rtc/ds3232.c index 16501cfe5d3f..7314ba219dac 100644 --- a/drivers/rtc/ds3232.c +++ b/drivers/rtc/ds3232.c @@ -3,7 +3,6 @@ * (C) Copyright 2019, Vaisala Oyj */
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/emul_rtc.c b/drivers/rtc/emul_rtc.c index 6f47d82522ba..97a8d9bb7df5 100644 --- a/drivers/rtc/emul_rtc.c +++ b/drivers/rtc/emul_rtc.c @@ -5,11 +5,11 @@ * This driver emulates a real time clock based on timer ticks. */
-#include <common.h> #include <div64.h> #include <dm.h> #include <env.h> #include <rtc.h> +#include <time.h> #include <timestamp.h>
/** diff --git a/drivers/rtc/ht1380.c b/drivers/rtc/ht1380.c index 85fcee3e71e6..c202261e9999 100644 --- a/drivers/rtc/ht1380.c +++ b/drivers/rtc/ht1380.c @@ -15,7 +15,6 @@ * */
-#include <common.h> #include <dm.h> #include <rtc.h> #include <bcd.h> diff --git a/drivers/rtc/i2c_rtc_emul.c b/drivers/rtc/i2c_rtc_emul.c index c307d6036dd5..ea11c72c964c 100644 --- a/drivers/rtc/i2c_rtc_emul.c +++ b/drivers/rtc/i2c_rtc_emul.c @@ -13,7 +13,6 @@ * time-keeping. It does not change the system time. */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/rtc/isl1208.c b/drivers/rtc/isl1208.c index 59a60b75b307..83db505afe9e 100644 --- a/drivers/rtc/isl1208.c +++ b/drivers/rtc/isl1208.c @@ -11,7 +11,6 @@ * ISL1208 Real Time Clock (RTC). */
-#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c index 891fe09d311b..7bfea9e0b315 100644 --- a/drivers/rtc/m41t62.c +++ b/drivers/rtc/m41t62.c @@ -16,7 +16,7 @@
/* #define DEBUG */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/mc13xxx-rtc.c b/drivers/rtc/mc13xxx-rtc.c index 6c2aef89758b..9e396bcdae95 100644 --- a/drivers/rtc/mc13xxx-rtc.c +++ b/drivers/rtc/mc13xxx-rtc.c @@ -3,7 +3,6 @@ * Copyright (C) 2008, Guennadi Liakhovetski lg@denx.de */
-#include <common.h> #include <rtc.h> #include <spi.h> #include <power/pmic.h> diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c index 03ce081d5764..c0d86c6d063d 100644 --- a/drivers/rtc/mc146818.c +++ b/drivers/rtc/mc146818.c @@ -8,7 +8,6 @@ * Date & Time support for the MC146818 (PIXX4) RTC */
-#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/mcfrtc.c b/drivers/rtc/mcfrtc.c index d2ac889c3095..b5cc6b968816 100644 --- a/drivers/rtc/mcfrtc.c +++ b/drivers/rtc/mcfrtc.c @@ -4,7 +4,6 @@ * TsiChung Liew (Tsi-Chung.Liew@freescale.com) */
-#include <common.h>
#include <command.h> #include <rtc.h> diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc/mvrtc.c index 50240d57fa9e..f070c681b94e 100644 --- a/drivers/rtc/mvrtc.c +++ b/drivers/rtc/mvrtc.c @@ -8,7 +8,6 @@ * Date & Time support for Marvell Integrated RTC */
-#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/mxsrtc.c b/drivers/rtc/mxsrtc.c index be899a925408..69d22a4bdcb6 100644 --- a/drivers/rtc/mxsrtc.c +++ b/drivers/rtc/mxsrtc.c @@ -6,7 +6,6 @@ * on behalf of DENX Software Engineering GmbH */
-#include <common.h> #include <rtc.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/rtc/pcf2127.c b/drivers/rtc/pcf2127.c index 2f3fafb4968f..27a340f07d68 100644 --- a/drivers/rtc/pcf2127.c +++ b/drivers/rtc/pcf2127.c @@ -5,7 +5,6 @@
/* #define DEBUG */
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/pcf8563.c b/drivers/rtc/pcf8563.c index 91a412440b85..03bef68051ba 100644 --- a/drivers/rtc/pcf8563.c +++ b/drivers/rtc/pcf8563.c @@ -10,7 +10,7 @@
/* #define DEBUG */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/pl031.c b/drivers/rtc/pl031.c index a1d376611d65..855ee9134168 100644 --- a/drivers/rtc/pl031.c +++ b/drivers/rtc/pl031.c @@ -6,7 +6,6 @@ * reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c */
-#include <common.h> #include <command.h> #include <dm.h> #include <errno.h> diff --git a/drivers/rtc/pt7c4338.c b/drivers/rtc/pt7c4338.c index e0a7bd3662fb..79df07814a6b 100644 --- a/drivers/rtc/pt7c4338.c +++ b/drivers/rtc/pt7c4338.c @@ -18,7 +18,7 @@ * It has 56 bytes of nonvolatile RAM. */
-#include <common.h> +#include <config.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c index e5ae6ea4d5f3..8f6c0c6a0a78 100644 --- a/drivers/rtc/rtc-uclass.c +++ b/drivers/rtc/rtc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RTC
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c index 9c53c7f7dbc7..a82acec6f7e5 100644 --- a/drivers/rtc/rv3029.c +++ b/drivers/rtc/rv3029.c @@ -7,7 +7,6 @@ * Michael Buesch m@bues.ch */
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c index 06a4ae89fa96..82b43722ff51 100644 --- a/drivers/rtc/rv8803.c +++ b/drivers/rtc/rv8803.c @@ -10,7 +10,6 @@ * */
-#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index bf93b557748b..0d778f4c328e 100644 --- a/drivers/rtc/rx8010sj.c +++ b/drivers/rtc/rx8010sj.c @@ -17,7 +17,7 @@ */
#include <command.h> -#include <common.h> +#include <config.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/rx8025.c b/drivers/rtc/rx8025.c index 1394c2306a44..c7895244283c 100644 --- a/drivers/rtc/rx8025.c +++ b/drivers/rtc/rx8025.c @@ -8,7 +8,6 @@ * Epson RX8025 RTC driver. */
-#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/s35392a.c b/drivers/rtc/s35392a.c index 80f55c86233a..03fb9a0be914 100644 --- a/drivers/rtc/s35392a.c +++ b/drivers/rtc/s35392a.c @@ -18,7 +18,6 @@ */
#include <command.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/bitrev.h> diff --git a/drivers/rtc/sandbox_rtc.c b/drivers/rtc/sandbox_rtc.c index 657e5c7be2cf..4404501c2f65 100644 --- a/drivers/rtc/sandbox_rtc.c +++ b/drivers/rtc/sandbox_rtc.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index ec7584c3d70c..ee70c11c8bcb 100644 --- a/drivers/rtc/stm32_rtc.c +++ b/drivers/rtc/stm32_rtc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RTC
-#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/rtc/zynqmp_rtc.c b/drivers/rtc/zynqmp_rtc.c index ab9b93ca9793..15122a048382 100644 --- a/drivers/rtc/zynqmp_rtc.c +++ b/drivers/rtc/zynqmp_rtc.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RTC
-#include <common.h> #include <dm.h> #include <rtc.h> #include <asm/io.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Simon Glass sjg@chromium.org Cc: Tom Rini trini@konsulko.com Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Johan Jonker jbx6244@gmail.com Cc: Nikita Yushchenko nikita.yoush@cogentembedded.com Cc: Kever Yang kever.yang@rock-chips.com Cc: Bin Meng bmeng.cn@gmail.com --- drivers/scsi/sandbox_scsi.c | 1 - drivers/scsi/scsi-uclass.c | 1 - drivers/scsi/scsi.c | 1 - drivers/scsi/scsi_bootdev.c | 1 - drivers/scsi/scsi_emul.c | 1 - 5 files changed, 5 deletions(-)
diff --git a/drivers/scsi/sandbox_scsi.c b/drivers/scsi/sandbox_scsi.c index a7ac33cb1c4b..544a0247083d 100644 --- a/drivers/scsi/sandbox_scsi.c +++ b/drivers/scsi/sandbox_scsi.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_SCSI
-#include <common.h> #include <dm.h> #include <os.h> #include <malloc.h> diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi/scsi-uclass.c index a7c1eaf0cf50..1ee8236c05c8 100644 --- a/drivers/scsi/scsi-uclass.c +++ b/drivers/scsi/scsi-uclass.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_SCSI
-#include <common.h> #include <dm.h> #include <scsi.h>
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 79ee400d12f0..73cb83548eb8 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SCSI
-#include <common.h> #include <blk.h> #include <bootdev.h> #include <bootstage.h> diff --git a/drivers/scsi/scsi_bootdev.c b/drivers/scsi/scsi_bootdev.c index 218221fa3062..28e4612f337c 100644 --- a/drivers/scsi/scsi_bootdev.c +++ b/drivers/scsi/scsi_bootdev.c @@ -6,7 +6,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <init.h> diff --git a/drivers/scsi/scsi_emul.c b/drivers/scsi/scsi_emul.c index 6b8468f79947..d1bb926b713a 100644 --- a/drivers/scsi/scsi_emul.c +++ b/drivers/scsi/scsi_emul.c @@ -11,7 +11,6 @@
#define LOG_CATEGORY UCLASS_SCSI
-#include <common.h> #include <dm.h> #include <log.h> #include <scsi.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: This contributor prefers not to receive mails noreply@example.com Cc: Stefan Roese sr@denx.de Cc: Stefano Babic sbabic@denx.de Cc: Fabio Estevam festevam@gmail.com Cc: "NXP i.MX U-Boot Team" uboot-imx@nxp.com Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Sean Anderson sean.anderson@seco.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Anastasiia Lukianenko vicooodin@gmail.com Cc: Oleksandr Andrushchenko oleksandr_andrushchenko@epam.com Cc: Michal Simek michal.simek@amd.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Algapally Santosh Sagar santoshsagar.algapally@amd.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Bin Meng bmeng.cn@gmail.com Cc: Peng Fan peng.fan@nxp.com Cc: "Sébastien Szymanski" sebastien.szymanski@armadeus.com Cc: Ye Li ye.li@nxp.com Cc: Christophe Leroy christophe.leroy@csgroup.eu Cc: Weijie Gao weijie.gao@mediatek.com Cc: Sam Shih sam.shih@mediatek.com Cc: Jim Liu jim.t90615@gmail.com Cc: Lukasz Majewski lukma@denx.de Cc: Yang Xiwen forbidden405@outlook.com --- drivers/serial/altera_jtag_uart.c | 1 - drivers/serial/altera_uart.c | 1 - drivers/serial/arm_dcc.c | 1 - drivers/serial/atmel_usart.c | 1 - drivers/serial/ns16550.c | 2 +- drivers/serial/sandbox.c | 1 - drivers/serial/serial-uclass.c | 2 +- drivers/serial/serial.c | 2 +- drivers/serial/serial_ar933x.c | 1 - drivers/serial/serial_arc.c | 1 - drivers/serial/serial_bcm283x_mu.c | 1 - drivers/serial/serial_bcm283x_pl011.c | 1 - drivers/serial/serial_coreboot.c | 1 - drivers/serial/serial_cortina.c | 1 - drivers/serial/serial_efi.c | 1 - drivers/serial/serial_htif.c | 1 - drivers/serial/serial_intel_mid.c | 1 - drivers/serial/serial_linflexuart.c | 1 - drivers/serial/serial_lpuart.c | 1 - drivers/serial/serial_mcf.c | 1 - drivers/serial/serial_meson.c | 1 - drivers/serial/serial_mpc8xx.c | 1 - drivers/serial/serial_msm.c | 1 - drivers/serial/serial_msm_geni.c | 1 - drivers/serial/serial_mtk.c | 2 +- drivers/serial/serial_mvebu_a3700.c | 1 - drivers/serial/serial_mxc.c | 1 - drivers/serial/serial_mxs.c | 1 - drivers/serial/serial_npcm.c | 1 - drivers/serial/serial_ns16550.c | 2 +- drivers/serial/serial_nulldev.c | 1 - drivers/serial/serial_omap.c | 2 +- drivers/serial/serial_owl.c | 1 - drivers/serial/serial_pic32.c | 1 - drivers/serial/serial_pl01x.c | 1 - drivers/serial/serial_rockchip.c | 1 - drivers/serial/serial_s5p4418_pl011.c | 1 - drivers/serial/serial_semihosting.c | 1 - drivers/serial/serial_sifive.c | 1 - drivers/serial/serial_sti_asc.c | 1 - drivers/serial/serial_stm32.c | 1 - drivers/serial/serial_uniphier.c | 1 - drivers/serial/serial_xen.c | 1 - drivers/serial/serial_xuartlite.c | 1 - drivers/serial/serial_zynq.c | 1 - drivers/serial/usbtty.c | 1 - 46 files changed, 6 insertions(+), 46 deletions(-)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 9e39da7dd246..3f706e1839f2 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -4,7 +4,6 @@ * Scott McNutt smcnutt@psyent.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 35920480841a..3c13ef25bb49 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -4,7 +4,6 @@ * Scott McNutt smcnutt@psyent.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index a402a123b6d6..66af136695d0 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -15,7 +15,6 @@ * this file might be covered by the GNU General Public License. */
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 9827c006fa88..7e45a80969e8 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -5,7 +5,6 @@ * Modified to support C structur SoC access by * Andreas Bießmann biessmann@corscience.de */ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 6deb1d8ddc56..4963385dc1c1 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -5,7 +5,7 @@ */
#include <clock_legacy.h> -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index f6ac3d228526..ec0068e33d34 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -9,7 +9,6 @@ * U-Boot. */
-#include <common.h> #include <console.h> #include <dm.h> #include <os.h> diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index e4fa3933bc8f..84f02f7ac76a 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -5,7 +5,7 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> +#include <config.h> #include <dm.h> #include <env_internal.h> #include <errno.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 787edd536027..dc4bb06fa992 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -4,7 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> +#include <config.h> #include <env_internal.h> #include <hang.h> #include <serial.h> diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 4f9163497626..4d92752690fc 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Wills Wang wills.wang@live.com */
-#include <common.h> #include <clock_legacy.h> #include <dm.h> #include <div64.h> diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index c2fc8a901e25..c0930cf7334a 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <serial.h> #include <asm/global_data.h> diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index 7585f790d22a..7fa26244b1ca 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -14,7 +14,6 @@
/* Simple U-Boot driver for the BCM283x mini UART */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c index 09a9868a38f1..2abc1c4658f3 100644 --- a/drivers/serial/serial_bcm283x_pl011.c +++ b/drivers/serial/serial_bcm283x_pl011.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Alexander Graf agraf@suse.de */
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <dm/pinctrl.h> diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c index 23066e4d0543..b1f69f6998cf 100644 --- a/drivers/serial/serial_coreboot.c +++ b/drivers/serial/serial_coreboot.c @@ -7,7 +7,6 @@
#define LOG_CATGEGORY UCLASS_SERIAL
-#include <common.h> #include <dm.h> #include <log.h> #include <ns16550.h> diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c index 6dc81a775d3f..3ae8fb465848 100644 --- a/drivers/serial/serial_cortina.c +++ b/drivers/serial/serial_cortina.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c index 0067576389d1..5733eaaf9d41 100644 --- a/drivers/serial/serial_efi.c +++ b/drivers/serial/serial_efi.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <efi.h> diff --git a/drivers/serial/serial_htif.c b/drivers/serial/serial_htif.c index 5d2bf0aaeba3..2a93bbbcc9f8 100644 --- a/drivers/serial/serial_htif.c +++ b/drivers/serial/serial_htif.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Ventana Micro Systems Inc. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_intel_mid.c b/drivers/serial/serial_intel_mid.c index bbf19057c4d1..4b528e452926 100644 --- a/drivers/serial/serial_intel_mid.c +++ b/drivers/serial/serial_intel_mid.c @@ -3,7 +3,6 @@ * Copyright (c) 2017 Intel Corporation */
-#include <common.h> #include <dm.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c index b449e55a6506..ff66e69b9d7b 100644 --- a/drivers/serial/serial_linflexuart.c +++ b/drivers/serial/serial_linflexuart.c @@ -3,7 +3,6 @@ * (C) Copyright 2013-2016 Freescale Semiconductor, Inc. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index 3f2be72b8302..a06e6dc2505d 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -4,7 +4,6 @@ * Copyright 2013 Freescale Semiconductor, Inc. */
-#include <common.h> #include <clock_legacy.h> #include <clk.h> #include <dm.h> diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c index bb2afd0d8cd6..76143575fa98 100644 --- a/drivers/serial/serial_mcf.c +++ b/drivers/serial/serial_mcf.c @@ -15,7 +15,6 @@ * as serial console interface. */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/platform_data/serial_coldfire.h> diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index be5f380f8500..bb79b9729579 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 Beniamino Galvani b.galvani@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index d82760c7f10a..9ce3fc3d9ec4 100644 --- a/drivers/serial/serial_mpc8xx.c +++ b/drivers/serial/serial_mpc8xx.c @@ -4,7 +4,6 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <command.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a472e0b36833..757e5eaf974f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -8,7 +8,6 @@ * Based on Linux driver. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 5260474fb9a4..cb6c09fdd09e 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -9,7 +9,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index f146f2b006e8..3f569c68f22a 100644 --- a/drivers/serial/serial_mtk.c +++ b/drivers/serial/serial_mtk.c @@ -7,7 +7,7 @@ */
#include <clk.h> -#include <common.h> +#include <config.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/serial/serial_mvebu_a3700.c b/drivers/serial/serial_mvebu_a3700.c index b2017c645565..1a0b85e170ab 100644 --- a/drivers/serial/serial_mvebu_a3700.c +++ b/drivers/serial/serial_mvebu_a3700.c @@ -4,7 +4,6 @@ * Copyright (C) 2021 Pali Rohár pali@kernel.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index cc85a502726e..c5fd740be4de 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -3,7 +3,6 @@ * (c) 2007 Sascha Hauer s.hauer@pengutronix.de */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_mxs.c b/drivers/serial/serial_mxs.c index 3659948b8728..071bd09fef69 100644 --- a/drivers/serial/serial_mxs.c +++ b/drivers/serial/serial_mxs.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2023 Marek Vasut marex@denx.de */ -#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_npcm.c b/drivers/serial/serial_npcm.c index 6bf3a943a2fc..661daf1aefa3 100644 --- a/drivers/serial/serial_npcm.c +++ b/drivers/serial/serial_npcm.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4014f6820400..577864bc2195 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -4,7 +4,7 @@ * Rob Taylor, Flying Pig Systems. robt@flyingpig.com. */
-#include <common.h> +#include <config.h> #include <clock_legacy.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c index f3ca7f525591..78a9e0b195fa 100644 --- a/drivers/serial/serial_nulldev.c +++ b/drivers/serial/serial_nulldev.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 National Instruments */
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 49ced8f9fae4..94672655c288 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -6,7 +6,7 @@ * Lokesh Vutla lokeshvutla@ti.com */
-#include <common.h> +#include <config.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c index 3b795785f780..8ce8aa32a21e 100644 --- a/drivers/serial/serial_owl.c +++ b/drivers/serial/serial_owl.c @@ -6,7 +6,6 @@ * Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index 0a03a9a25497..a49c4139b5ae 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -3,7 +3,6 @@ * (c) 2015 Paul Thacker paul.thacker@microchip.com * */ -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index f04c21e08264..80c35963b8f2 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -10,7 +10,6 @@
/* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
-#include <common.h> #include <asm/global_data.h> /* For get_bus_freq() */ #include <clock_legacy.h> diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index f4e9422ed91c..8a15173f238f 100644 --- a/drivers/serial/serial_rockchip.c +++ b/drivers/serial/serial_rockchip.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 Google, Inc */
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/serial/serial_s5p4418_pl011.c b/drivers/serial/serial_s5p4418_pl011.c index e4492e662e92..1fb954e80c2a 100644 --- a/drivers/serial/serial_s5p4418_pl011.c +++ b/drivers/serial/serial_s5p4418_pl011.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Stefan Bosch stefan_b@posteo.net */
-#include <common.h> #include <dm.h> #include <asm/arch/clk.h> #include <asm/arch/reset.h> diff --git a/drivers/serial/serial_semihosting.c b/drivers/serial/serial_semihosting.c index cfa1ec3148c5..56a5ec72428a 100644 --- a/drivers/serial/serial_semihosting.c +++ b/drivers/serial/serial_semihosting.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Sean Anderson sean.anderson@seco.com */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index c449f3fd02d9..e47828e4d6ad 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Anup Patel anup@brainfault.org */
-#include <common.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index 40381b57b08e..ef68e585dd62 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -6,7 +6,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index fb039546a41b..1ee58142b3f8 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index 27e4b92c3997..a566ba7a47d5 100644 --- a/drivers/serial/serial_uniphier.c +++ b/drivers/serial/serial_uniphier.c @@ -5,7 +5,6 @@ * Author: Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_xen.c b/drivers/serial/serial_xen.c index ab318b06462b..e05805f63726 100644 --- a/drivers/serial/serial_xen.c +++ b/drivers/serial/serial_xen.c @@ -3,7 +3,6 @@ * (C) 2018 NXP * (C) 2020 EPAM Systems Inc. */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 35df413321fe..eb234108746d 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 1847d1f6ecd2..55f13c00ddf6 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <debug_uart.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index ecb6ba853df7..ae3ac8070d34 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -7,7 +7,6 @@ * Bryan O'Donoghue, bodonoghue@codehermit.ie */
-#include <common.h> #include <config.h> #include <circbuf.h> #include <env.h>

On Thu, 2 May 2024 at 02:33, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Peter Robinson pbrobinson@gmail.com
Looks good.
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: This contributor prefers not to receive mails noreply@example.com Cc: Stefan Roese sr@denx.de Cc: Stefano Babic sbabic@denx.de Cc: Fabio Estevam festevam@gmail.com Cc: "NXP i.MX U-Boot Team" uboot-imx@nxp.com Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Sean Anderson sean.anderson@seco.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Anastasiia Lukianenko vicooodin@gmail.com Cc: Oleksandr Andrushchenko oleksandr_andrushchenko@epam.com Cc: Michal Simek michal.simek@amd.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Algapally Santosh Sagar santoshsagar.algapally@amd.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Bin Meng bmeng.cn@gmail.com Cc: Peng Fan peng.fan@nxp.com Cc: "Sébastien Szymanski" sebastien.szymanski@armadeus.com Cc: Ye Li ye.li@nxp.com Cc: Christophe Leroy christophe.leroy@csgroup.eu Cc: Weijie Gao weijie.gao@mediatek.com Cc: Sam Shih sam.shih@mediatek.com Cc: Jim Liu jim.t90615@gmail.com Cc: Lukasz Majewski lukma@denx.de Cc: Yang Xiwen forbidden405@outlook.com
drivers/serial/altera_jtag_uart.c | 1 - drivers/serial/altera_uart.c | 1 - drivers/serial/arm_dcc.c | 1 - drivers/serial/atmel_usart.c | 1 - drivers/serial/ns16550.c | 2 +- drivers/serial/sandbox.c | 1 - drivers/serial/serial-uclass.c | 2 +- drivers/serial/serial.c | 2 +- drivers/serial/serial_ar933x.c | 1 - drivers/serial/serial_arc.c | 1 - drivers/serial/serial_bcm283x_mu.c | 1 - drivers/serial/serial_bcm283x_pl011.c | 1 - drivers/serial/serial_coreboot.c | 1 - drivers/serial/serial_cortina.c | 1 - drivers/serial/serial_efi.c | 1 - drivers/serial/serial_htif.c | 1 - drivers/serial/serial_intel_mid.c | 1 - drivers/serial/serial_linflexuart.c | 1 - drivers/serial/serial_lpuart.c | 1 - drivers/serial/serial_mcf.c | 1 - drivers/serial/serial_meson.c | 1 - drivers/serial/serial_mpc8xx.c | 1 - drivers/serial/serial_msm.c | 1 - drivers/serial/serial_msm_geni.c | 1 - drivers/serial/serial_mtk.c | 2 +- drivers/serial/serial_mvebu_a3700.c | 1 - drivers/serial/serial_mxc.c | 1 - drivers/serial/serial_mxs.c | 1 - drivers/serial/serial_npcm.c | 1 - drivers/serial/serial_ns16550.c | 2 +- drivers/serial/serial_nulldev.c | 1 - drivers/serial/serial_omap.c | 2 +- drivers/serial/serial_owl.c | 1 - drivers/serial/serial_pic32.c | 1 - drivers/serial/serial_pl01x.c | 1 - drivers/serial/serial_rockchip.c | 1 - drivers/serial/serial_s5p4418_pl011.c | 1 - drivers/serial/serial_semihosting.c | 1 - drivers/serial/serial_sifive.c | 1 - drivers/serial/serial_sti_asc.c | 1 - drivers/serial/serial_stm32.c | 1 - drivers/serial/serial_uniphier.c | 1 - drivers/serial/serial_xen.c | 1 - drivers/serial/serial_xuartlite.c | 1 - drivers/serial/serial_zynq.c | 1 - drivers/serial/usbtty.c | 1 - 46 files changed, 6 insertions(+), 46 deletions(-)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 9e39da7dd246..3f706e1839f2 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -4,7 +4,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 35920480841a..3c13ef25bb49 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -4,7 +4,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index a402a123b6d6..66af136695d0 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -15,7 +15,6 @@
- this file might be covered by the GNU General Public License.
*/
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 9827c006fa88..7e45a80969e8 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -5,7 +5,6 @@
- Modified to support C structur SoC access by
- Andreas Bießmann biessmann@corscience.de
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 6deb1d8ddc56..4963385dc1c1 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -5,7 +5,7 @@ */
#include <clock_legacy.h> -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index f6ac3d228526..ec0068e33d34 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -9,7 +9,6 @@
- U-Boot.
*/
-#include <common.h> #include <console.h> #include <dm.h> #include <os.h> diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index e4fa3933bc8f..84f02f7ac76a 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -5,7 +5,7 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> +#include <config.h> #include <dm.h> #include <env_internal.h> #include <errno.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 787edd536027..dc4bb06fa992 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -4,7 +4,7 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> +#include <config.h> #include <env_internal.h> #include <hang.h> #include <serial.h> diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 4f9163497626..4d92752690fc 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <clock_legacy.h> #include <dm.h> #include <div64.h> diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index c2fc8a901e25..c0930cf7334a 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <serial.h> #include <asm/global_data.h> diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index 7585f790d22a..7fa26244b1ca 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -14,7 +14,6 @@
/* Simple U-Boot driver for the BCM283x mini UART */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c index 09a9868a38f1..2abc1c4658f3 100644 --- a/drivers/serial/serial_bcm283x_pl011.c +++ b/drivers/serial/serial_bcm283x_pl011.c @@ -3,7 +3,6 @@
- Copyright (c) 2018 Alexander Graf agraf@suse.de
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <dm/pinctrl.h> diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c index 23066e4d0543..b1f69f6998cf 100644 --- a/drivers/serial/serial_coreboot.c +++ b/drivers/serial/serial_coreboot.c @@ -7,7 +7,6 @@
#define LOG_CATGEGORY UCLASS_SERIAL
-#include <common.h> #include <dm.h> #include <log.h> #include <ns16550.h> diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c index 6dc81a775d3f..3ae8fb465848 100644 --- a/drivers/serial/serial_cortina.c +++ b/drivers/serial/serial_cortina.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c index 0067576389d1..5733eaaf9d41 100644 --- a/drivers/serial/serial_efi.c +++ b/drivers/serial/serial_efi.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <efi.h> diff --git a/drivers/serial/serial_htif.c b/drivers/serial/serial_htif.c index 5d2bf0aaeba3..2a93bbbcc9f8 100644 --- a/drivers/serial/serial_htif.c +++ b/drivers/serial/serial_htif.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Ventana Micro Systems Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_intel_mid.c b/drivers/serial/serial_intel_mid.c index bbf19057c4d1..4b528e452926 100644 --- a/drivers/serial/serial_intel_mid.c +++ b/drivers/serial/serial_intel_mid.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Intel Corporation
*/
-#include <common.h> #include <dm.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c index b449e55a6506..ff66e69b9d7b 100644 --- a/drivers/serial/serial_linflexuart.c +++ b/drivers/serial/serial_linflexuart.c @@ -3,7 +3,6 @@
- (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index 3f2be72b8302..a06e6dc2505d 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -4,7 +4,6 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <clock_legacy.h> #include <clk.h> #include <dm.h> diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c index bb2afd0d8cd6..76143575fa98 100644 --- a/drivers/serial/serial_mcf.c +++ b/drivers/serial/serial_mcf.c @@ -15,7 +15,6 @@
- as serial console interface.
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/platform_data/serial_coldfire.h> diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index be5f380f8500..bb79b9729579 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index d82760c7f10a..9ce3fc3d9ec4 100644 --- a/drivers/serial/serial_mpc8xx.c +++ b/drivers/serial/serial_mpc8xx.c @@ -4,7 +4,6 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a472e0b36833..757e5eaf974f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -8,7 +8,6 @@
- Based on Linux driver.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 5260474fb9a4..cb6c09fdd09e 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -9,7 +9,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index f146f2b006e8..3f569c68f22a 100644 --- a/drivers/serial/serial_mtk.c +++ b/drivers/serial/serial_mtk.c @@ -7,7 +7,7 @@ */
#include <clk.h> -#include <common.h> +#include <config.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/serial/serial_mvebu_a3700.c b/drivers/serial/serial_mvebu_a3700.c index b2017c645565..1a0b85e170ab 100644 --- a/drivers/serial/serial_mvebu_a3700.c +++ b/drivers/serial/serial_mvebu_a3700.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Pali Rohár pali@kernel.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index cc85a502726e..c5fd740be4de 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -3,7 +3,6 @@
- (c) 2007 Sascha Hauer s.hauer@pengutronix.de
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_mxs.c b/drivers/serial/serial_mxs.c index 3659948b8728..071bd09fef69 100644 --- a/drivers/serial/serial_mxs.c +++ b/drivers/serial/serial_mxs.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2023 Marek Vasut marex@denx.de
*/ -#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_npcm.c b/drivers/serial/serial_npcm.c index 6bf3a943a2fc..661daf1aefa3 100644 --- a/drivers/serial/serial_npcm.c +++ b/drivers/serial/serial_npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4014f6820400..577864bc2195 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -4,7 +4,7 @@
- Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
*/
-#include <common.h> +#include <config.h> #include <clock_legacy.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c index f3ca7f525591..78a9e0b195fa 100644 --- a/drivers/serial/serial_nulldev.c +++ b/drivers/serial/serial_nulldev.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 National Instruments
*/
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 49ced8f9fae4..94672655c288 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -6,7 +6,7 @@
Lokesh Vutla <lokeshvutla@ti.com>
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c index 3b795785f780..8ce8aa32a21e 100644 --- a/drivers/serial/serial_owl.c +++ b/drivers/serial/serial_owl.c @@ -6,7 +6,6 @@
- Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index 0a03a9a25497..a49c4139b5ae 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -3,7 +3,6 @@
- (c) 2015 Paul Thacker paul.thacker@microchip.com
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index f04c21e08264..80c35963b8f2 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -10,7 +10,6 @@
/* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
-#include <common.h> #include <asm/global_data.h> /* For get_bus_freq() */ #include <clock_legacy.h> diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index f4e9422ed91c..8a15173f238f 100644 --- a/drivers/serial/serial_rockchip.c +++ b/drivers/serial/serial_rockchip.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/serial/serial_s5p4418_pl011.c b/drivers/serial/serial_s5p4418_pl011.c index e4492e662e92..1fb954e80c2a 100644 --- a/drivers/serial/serial_s5p4418_pl011.c +++ b/drivers/serial/serial_s5p4418_pl011.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <asm/arch/clk.h> #include <asm/arch/reset.h> diff --git a/drivers/serial/serial_semihosting.c b/drivers/serial/serial_semihosting.c index cfa1ec3148c5..56a5ec72428a 100644 --- a/drivers/serial/serial_semihosting.c +++ b/drivers/serial/serial_semihosting.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Sean Anderson sean.anderson@seco.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index c449f3fd02d9..e47828e4d6ad 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Anup Patel anup@brainfault.org
*/
-#include <common.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index 40381b57b08e..ef68e585dd62 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index fb039546a41b..1ee58142b3f8 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index 27e4b92c3997..a566ba7a47d5 100644 --- a/drivers/serial/serial_uniphier.c +++ b/drivers/serial/serial_uniphier.c @@ -5,7 +5,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_xen.c b/drivers/serial/serial_xen.c index ab318b06462b..e05805f63726 100644 --- a/drivers/serial/serial_xen.c +++ b/drivers/serial/serial_xen.c @@ -3,7 +3,6 @@
- (C) 2018 NXP
- (C) 2020 EPAM Systems Inc.
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 35df413321fe..eb234108746d 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 1847d1f6ecd2..55f13c00ddf6 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <debug_uart.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index ecb6ba853df7..ae3ac8070d34 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -7,7 +7,6 @@
- Bryan O'Donoghue, bodonoghue@codehermit.ie
*/
-#include <common.h> #include <config.h> #include <circbuf.h>
#include <env.h>
2.34.1

On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: This contributor prefers not to receive mails noreply@example.com Cc: Stefan Roese sr@denx.de Cc: Stefano Babic sbabic@denx.de Cc: Fabio Estevam festevam@gmail.com Cc: "NXP i.MX U-Boot Team" uboot-imx@nxp.com Cc: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Stefan Bosch stefan_b@posteo.net Cc: Sean Anderson sean.anderson@seco.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com Cc: Anastasiia Lukianenko vicooodin@gmail.com Cc: Oleksandr Andrushchenko oleksandr_andrushchenko@epam.com Cc: Michal Simek michal.simek@amd.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Maksim Kiselev bigunclemax@gmail.com Cc: Algapally Santosh Sagar santoshsagar.algapally@amd.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Bin Meng bmeng.cn@gmail.com Cc: Peng Fan peng.fan@nxp.com Cc: "Sébastien Szymanski" sebastien.szymanski@armadeus.com Cc: Ye Li ye.li@nxp.com Cc: Christophe Leroy christophe.leroy@csgroup.eu Cc: Weijie Gao weijie.gao@mediatek.com Cc: Sam Shih sam.shih@mediatek.com Cc: Jim Liu jim.t90615@gmail.com Cc: Lukasz Majewski lukma@denx.de Cc: Yang Xiwen forbidden405@outlook.com
drivers/serial/altera_jtag_uart.c | 1 - drivers/serial/altera_uart.c | 1 - drivers/serial/arm_dcc.c | 1 - drivers/serial/atmel_usart.c | 1 - drivers/serial/ns16550.c | 2 +- drivers/serial/sandbox.c | 1 - drivers/serial/serial-uclass.c | 2 +- drivers/serial/serial.c | 2 +- drivers/serial/serial_ar933x.c | 1 - drivers/serial/serial_arc.c | 1 - drivers/serial/serial_bcm283x_mu.c | 1 - drivers/serial/serial_bcm283x_pl011.c | 1 - drivers/serial/serial_coreboot.c | 1 - drivers/serial/serial_cortina.c | 1 - drivers/serial/serial_efi.c | 1 - drivers/serial/serial_htif.c | 1 - drivers/serial/serial_intel_mid.c | 1 - drivers/serial/serial_linflexuart.c | 1 - drivers/serial/serial_lpuart.c | 1 - drivers/serial/serial_mcf.c | 1 - drivers/serial/serial_meson.c | 1 - drivers/serial/serial_mpc8xx.c | 1 - drivers/serial/serial_msm.c | 1 - drivers/serial/serial_msm_geni.c | 1 - drivers/serial/serial_mtk.c | 2 +- drivers/serial/serial_mvebu_a3700.c | 1 - drivers/serial/serial_mxc.c | 1 - drivers/serial/serial_mxs.c | 1 - drivers/serial/serial_npcm.c | 1 - drivers/serial/serial_ns16550.c | 2 +- drivers/serial/serial_nulldev.c | 1 - drivers/serial/serial_omap.c | 2 +- drivers/serial/serial_owl.c | 1 - drivers/serial/serial_pic32.c | 1 - drivers/serial/serial_pl01x.c | 1 - drivers/serial/serial_rockchip.c | 1 - drivers/serial/serial_s5p4418_pl011.c | 1 - drivers/serial/serial_semihosting.c | 1 - drivers/serial/serial_sifive.c | 1 - drivers/serial/serial_sti_asc.c | 1 - drivers/serial/serial_stm32.c | 1 - drivers/serial/serial_uniphier.c | 1 - drivers/serial/serial_xen.c | 1 - drivers/serial/serial_xuartlite.c | 1 - drivers/serial/serial_zynq.c | 1 - drivers/serial/usbtty.c | 1 - 46 files changed, 6 insertions(+), 46 deletions(-)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 9e39da7dd246..3f706e1839f2 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -4,7 +4,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 35920480841a..3c13ef25bb49 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -4,7 +4,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index a402a123b6d6..66af136695d0 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -15,7 +15,6 @@
- this file might be covered by the GNU General Public License.
*/
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 9827c006fa88..7e45a80969e8 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -5,7 +5,6 @@
- Modified to support C structur SoC access by
- Andreas Bießmann biessmann@corscience.de
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 6deb1d8ddc56..4963385dc1c1 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -5,7 +5,7 @@ */
#include <clock_legacy.h> -#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index f6ac3d228526..ec0068e33d34 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -9,7 +9,6 @@
- U-Boot.
*/
-#include <common.h> #include <console.h> #include <dm.h> #include <os.h> diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index e4fa3933bc8f..84f02f7ac76a 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -5,7 +5,7 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> +#include <config.h> #include <dm.h> #include <env_internal.h> #include <errno.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 787edd536027..dc4bb06fa992 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -4,7 +4,7 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> +#include <config.h> #include <env_internal.h> #include <hang.h> #include <serial.h> diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 4f9163497626..4d92752690fc 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -3,7 +3,6 @@
- Copyright (C) 2015-2016 Wills Wang wills.wang@live.com
*/
-#include <common.h> #include <clock_legacy.h> #include <dm.h> #include <div64.h> diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index c2fc8a901e25..c0930cf7334a 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -7,7 +7,6 @@
*/
-#include <common.h> #include <dm.h> #include <serial.h> #include <asm/global_data.h> diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index 7585f790d22a..7fa26244b1ca 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -14,7 +14,6 @@
/* Simple U-Boot driver for the BCM283x mini UART */
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c index 09a9868a38f1..2abc1c4658f3 100644 --- a/drivers/serial/serial_bcm283x_pl011.c +++ b/drivers/serial/serial_bcm283x_pl011.c @@ -3,7 +3,6 @@
- Copyright (c) 2018 Alexander Graf agraf@suse.de
*/
-#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <dm/pinctrl.h> diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c index 23066e4d0543..b1f69f6998cf 100644 --- a/drivers/serial/serial_coreboot.c +++ b/drivers/serial/serial_coreboot.c @@ -7,7 +7,6 @@
#define LOG_CATGEGORY UCLASS_SERIAL
-#include <common.h> #include <dm.h> #include <log.h> #include <ns16550.h> diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c index 6dc81a775d3f..3ae8fb465848 100644 --- a/drivers/serial/serial_cortina.c +++ b/drivers/serial/serial_cortina.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c index 0067576389d1..5733eaaf9d41 100644 --- a/drivers/serial/serial_efi.c +++ b/drivers/serial/serial_efi.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <efi.h> diff --git a/drivers/serial/serial_htif.c b/drivers/serial/serial_htif.c index 5d2bf0aaeba3..2a93bbbcc9f8 100644 --- a/drivers/serial/serial_htif.c +++ b/drivers/serial/serial_htif.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Ventana Micro Systems Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_intel_mid.c b/drivers/serial/serial_intel_mid.c index bbf19057c4d1..4b528e452926 100644 --- a/drivers/serial/serial_intel_mid.c +++ b/drivers/serial/serial_intel_mid.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Intel Corporation
*/
-#include <common.h> #include <dm.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c index b449e55a6506..ff66e69b9d7b 100644 --- a/drivers/serial/serial_linflexuart.c +++ b/drivers/serial/serial_linflexuart.c @@ -3,7 +3,6 @@
- (C) Copyright 2013-2016 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index 3f2be72b8302..a06e6dc2505d 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -4,7 +4,6 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <clock_legacy.h> #include <clk.h> #include <dm.h> diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c index bb2afd0d8cd6..76143575fa98 100644 --- a/drivers/serial/serial_mcf.c +++ b/drivers/serial/serial_mcf.c @@ -15,7 +15,6 @@
- as serial console interface.
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/platform_data/serial_coldfire.h> diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index be5f380f8500..bb79b9729579 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Beniamino Galvani b.galvani@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index d82760c7f10a..9ce3fc3d9ec4 100644 --- a/drivers/serial/serial_mpc8xx.c +++ b/drivers/serial/serial_mpc8xx.c @@ -4,7 +4,6 @@
- Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a472e0b36833..757e5eaf974f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -8,7 +8,6 @@
- Based on Linux driver.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 5260474fb9a4..cb6c09fdd09e 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -9,7 +9,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index f146f2b006e8..3f569c68f22a 100644 --- a/drivers/serial/serial_mtk.c +++ b/drivers/serial/serial_mtk.c @@ -7,7 +7,7 @@ */
#include <clk.h> -#include <common.h> +#include <config.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/serial/serial_mvebu_a3700.c b/drivers/serial/serial_mvebu_a3700.c index b2017c645565..1a0b85e170ab 100644 --- a/drivers/serial/serial_mvebu_a3700.c +++ b/drivers/serial/serial_mvebu_a3700.c @@ -4,7 +4,6 @@
- Copyright (C) 2021 Pali Rohár pali@kernel.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index cc85a502726e..c5fd740be4de 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -3,7 +3,6 @@
- (c) 2007 Sascha Hauer s.hauer@pengutronix.de
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_mxs.c b/drivers/serial/serial_mxs.c index 3659948b8728..071bd09fef69 100644 --- a/drivers/serial/serial_mxs.c +++ b/drivers/serial/serial_mxs.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2023 Marek Vasut marex@denx.de
*/ -#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_npcm.c b/drivers/serial/serial_npcm.c index 6bf3a943a2fc..661daf1aefa3 100644 --- a/drivers/serial/serial_npcm.c +++ b/drivers/serial/serial_npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4014f6820400..577864bc2195 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -4,7 +4,7 @@
- Rob Taylor, Flying Pig Systems. robt@flyingpig.com.
*/
-#include <common.h> +#include <config.h> #include <clock_legacy.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c index f3ca7f525591..78a9e0b195fa 100644 --- a/drivers/serial/serial_nulldev.c +++ b/drivers/serial/serial_nulldev.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 National Instruments
*/
-#include <common.h> #include <dm.h> #include <serial.h>
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 49ced8f9fae4..94672655c288 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -6,7 +6,7 @@
- Lokesh Vutla lokeshvutla@ti.com
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c index 3b795785f780..8ce8aa32a21e 100644 --- a/drivers/serial/serial_owl.c +++ b/drivers/serial/serial_owl.c @@ -6,7 +6,6 @@
- Copyright (C) 2018 Manivannan Sadhasivam manivannan.sadhasivam@linaro.org
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index 0a03a9a25497..a49c4139b5ae 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -3,7 +3,6 @@
- (c) 2015 Paul Thacker paul.thacker@microchip.com
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index f04c21e08264..80c35963b8f2 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -10,7 +10,6 @@
/* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
-#include <common.h> #include <asm/global_data.h> /* For get_bus_freq() */ #include <clock_legacy.h> diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index f4e9422ed91c..8a15173f238f 100644 --- a/drivers/serial/serial_rockchip.c +++ b/drivers/serial/serial_rockchip.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <debug_uart.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/serial/serial_s5p4418_pl011.c b/drivers/serial/serial_s5p4418_pl011.c index e4492e662e92..1fb954e80c2a 100644 --- a/drivers/serial/serial_s5p4418_pl011.c +++ b/drivers/serial/serial_s5p4418_pl011.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Stefan Bosch stefan_b@posteo.net
*/
-#include <common.h> #include <dm.h> #include <asm/arch/clk.h> #include <asm/arch/reset.h> diff --git a/drivers/serial/serial_semihosting.c b/drivers/serial/serial_semihosting.c index cfa1ec3148c5..56a5ec72428a 100644 --- a/drivers/serial/serial_semihosting.c +++ b/drivers/serial/serial_semihosting.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Sean Anderson sean.anderson@seco.com
*/
-#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index c449f3fd02d9..e47828e4d6ad 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Anup Patel anup@brainfault.org
*/
-#include <common.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index 40381b57b08e..ef68e585dd62 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index fb039546a41b..1ee58142b3f8 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SERIAL
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index 27e4b92c3997..a566ba7a47d5 100644 --- a/drivers/serial/serial_uniphier.c +++ b/drivers/serial/serial_uniphier.c @@ -5,7 +5,6 @@
- Author: Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_xen.c b/drivers/serial/serial_xen.c index ab318b06462b..e05805f63726 100644 --- a/drivers/serial/serial_xen.c +++ b/drivers/serial/serial_xen.c @@ -3,7 +3,6 @@
- (C) 2018 NXP
- (C) 2020 EPAM Systems Inc.
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 35df413321fe..eb234108746d 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 1847d1f6ecd2..55f13c00ddf6 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <debug_uart.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index ecb6ba853df7..ae3ac8070d34 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -7,7 +7,6 @@
- Bryan O'Donoghue, bodonoghue@codehermit.ie
*/
-#include <common.h> #include <config.h> #include <circbuf.h> #include <env.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Alexey Romanov avromanov@salutedevices.com --- drivers/sm/meson-sm.c | 1 - drivers/sm/sandbox-sm.c | 1 - drivers/sm/sm-uclass.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c index 15b3b0e2672f..87eba1486db3 100644 --- a/drivers/sm/meson-sm.c +++ b/drivers/sm/meson-sm.c @@ -5,7 +5,6 @@ * Author: Alexey Romanov avromanov@salutedevices.com */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <sm.h> diff --git a/drivers/sm/sandbox-sm.c b/drivers/sm/sandbox-sm.c index 109ddb2af557..a95e685494c2 100644 --- a/drivers/sm/sandbox-sm.c +++ b/drivers/sm/sandbox-sm.c @@ -5,7 +5,6 @@ * Author: Alexey Romanov avromanov@salutedevices.com */
-#include <common.h> #include <sm.h> #include <sm-uclass.h> #include <sandbox-sm.h> diff --git a/drivers/sm/sm-uclass.c b/drivers/sm/sm-uclass.c index 6a8b70262937..abca0052e293 100644 --- a/drivers/sm/sm-uclass.c +++ b/drivers/sm/sm-uclass.c @@ -5,7 +5,6 @@ * Author: Alexey Romanov avromanov@salutedevices.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sm-uclass.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- drivers/smem/msm_smem.c | 1 - drivers/smem/sandbox_smem.c | 1 - drivers/smem/smem-uclass.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c index 17ee6c837c6a..ccd145f9afbb 100644 --- a/drivers/smem/msm_smem.c +++ b/drivers/smem/msm_smem.c @@ -5,7 +5,6 @@ * Copyright (c) 2018, Ramon Fried ramon.fried@gmail.com */
-#include <common.h> #include <errno.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/smem/sandbox_smem.c b/drivers/smem/sandbox_smem.c index 7397e4407ad4..fec98e5611d6 100644 --- a/drivers/smem/sandbox_smem.c +++ b/drivers/smem/sandbox_smem.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Ramon Fried ramon.fried@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <smem.h> diff --git a/drivers/smem/smem-uclass.c b/drivers/smem/smem-uclass.c index 8469076915e0..4dea5cc4bf1c 100644 --- a/drivers/smem/smem-uclass.c +++ b/drivers/smem/smem-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SMEM
-#include <common.h> #include <dm.h> #include <smem.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Nishanth Menon nm@ti.com Cc: Roger Quadros rogerq@kernel.org Cc: Apurva Nandan a-nandan@ti.com Cc: Hari Nagalla hnagalla@ti.com Cc: Bryan Brattlof bb@ti.com --- drivers/soc/soc-uclass.c | 1 - drivers/soc/soc_sandbox.c | 1 - drivers/soc/soc_ti_k3.c | 1 - drivers/soc/soc_xilinx_versal.c | 1 - drivers/soc/soc_xilinx_versal_net.c | 1 - drivers/soc/soc_xilinx_zynqmp.c | 1 - drivers/soc/ti/k3-navss-ringacc.c | 1 - drivers/soc/ti/keystone_serdes.c | 1 - drivers/soc/ti/pruss.c | 1 - 9 files changed, 9 deletions(-)
diff --git a/drivers/soc/soc-uclass.c b/drivers/soc/soc-uclass.c index 8b3044fed8d2..744cdda2e187 100644 --- a/drivers/soc/soc-uclass.c +++ b/drivers/soc/soc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SOC
-#include <common.h> #include <soc.h> #include <dm.h> #include <errno.h> diff --git a/drivers/soc/soc_sandbox.c b/drivers/soc/soc_sandbox.c index 15fdd9930cb4..8d621e88f567 100644 --- a/drivers/soc/soc_sandbox.c +++ b/drivers/soc/soc_sandbox.c @@ -6,7 +6,6 @@ * Dave Gerlach d-gerlach@ti.com */
-#include <common.h> #include <dm.h> #include <soc.h>
diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 3a4e58bba671..b585e47d46fe 100644 --- a/drivers/soc/soc_ti_k3.c +++ b/drivers/soc/soc_ti_k3.c @@ -4,7 +4,6 @@ * Dave Gerlach d-gerlach@ti.com */
-#include <common.h> #include <dm.h> #include <soc.h>
diff --git a/drivers/soc/soc_xilinx_versal.c b/drivers/soc/soc_xilinx_versal.c index 3d8c25c19bb6..7427f8432c8b 100644 --- a/drivers/soc/soc_xilinx_versal.c +++ b/drivers/soc/soc_xilinx_versal.c @@ -5,7 +5,6 @@ * Copyright (C) 2021 Xilinx, Inc. */
-#include <common.h> #include <dm.h> #include <soc.h> #include <zynqmp_firmware.h> diff --git a/drivers/soc/soc_xilinx_versal_net.c b/drivers/soc/soc_xilinx_versal_net.c index 146d068bb4ae..d64fc366a6d1 100644 --- a/drivers/soc/soc_xilinx_versal_net.c +++ b/drivers/soc/soc_xilinx_versal_net.c @@ -5,7 +5,6 @@ * Copyright (C) 2022, Advanced Micro Devices, Inc. */
-#include <common.h> #include <dm.h> #include <soc.h> #include <zynqmp_firmware.h> diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c index d8b4f172a39d..a2d5b82fd34d 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c @@ -9,7 +9,6 @@ * Stefan Herbrechtsmeier stefan.herbrechtsmeier@weidmueller.com */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/cache.h> diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c index ed39ff2fa4c7..d3f3d4761c2f 100644 --- a/drivers/soc/ti/k3-navss-ringacc.c +++ b/drivers/soc/ti/k3-navss-ringacc.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/soc/ti/keystone_serdes.c b/drivers/soc/ti/keystone_serdes.c index 0e1bf8ff39db..b19617997e1a 100644 --- a/drivers/soc/ti/keystone_serdes.c +++ b/drivers/soc/ti/keystone_serdes.c @@ -7,7 +7,6 @@ */
#include <errno.h> -#include <common.h> #include <asm/io.h> #include <asm/ti-common/keystone_serdes.h> #include <linux/bitops.h> diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index 461390925d2c..8df8140cc186 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -5,7 +5,6 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */
-#include <common.h> #include <dm.h> #include <dm/of_access.h> #include <errno.h>

On May 1, 2024 thus sayeth Tom Rini:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Michal Simek michal.simek@amd.com Cc: Nishanth Menon nm@ti.com Cc: Roger Quadros rogerq@kernel.org Cc: Apurva Nandan a-nandan@ti.com Cc: Hari Nagalla hnagalla@ti.com Cc: Bryan Brattlof bb@ti.com
drivers/soc/soc-uclass.c | 1 - drivers/soc/soc_sandbox.c | 1 - drivers/soc/soc_ti_k3.c | 1 - drivers/soc/soc_xilinx_versal.c | 1 - drivers/soc/soc_xilinx_versal_net.c | 1 - drivers/soc/soc_xilinx_zynqmp.c | 1 - drivers/soc/ti/k3-navss-ringacc.c | 1 - drivers/soc/ti/keystone_serdes.c | 1 - drivers/soc/ti/pruss.c | 1 - 9 files changed, 9 deletions(-)
...
diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 3a4e58bba671..b585e47d46fe 100644 --- a/drivers/soc/soc_ti_k3.c +++ b/drivers/soc/soc_ti_k3.c @@ -4,7 +4,6 @@
- Dave Gerlach d-gerlach@ti.com
*/
-#include <common.h> #include <dm.h> #include <soc.h>
Thanks Tom!
Reviewed-by: Bryan Brattlof bb@ti.com
~Bryan

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com --- drivers/sound/broadwell_i2s.c | 1 - drivers/sound/broadwell_sound.c | 1 - drivers/sound/codec-uclass.c | 1 - drivers/sound/da7219.c | 1 - drivers/sound/hda_codec.c | 1 - drivers/sound/i2s-uclass.c | 1 - drivers/sound/i8254_beep.c | 1 - drivers/sound/ivybridge_sound.c | 1 - drivers/sound/max98088.c | 1 - drivers/sound/max98090.c | 1 - drivers/sound/max98095.c | 1 - drivers/sound/max98357a.c | 1 - drivers/sound/maxim_codec.c | 1 - drivers/sound/rockchip_i2s.c | 1 - drivers/sound/rockchip_sound.c | 1 - drivers/sound/rt5677.c | 1 - drivers/sound/samsung-i2s.c | 2 +- drivers/sound/samsung_sound.c | 1 - drivers/sound/sandbox.c | 1 - drivers/sound/sound-uclass.c | 1 - drivers/sound/sound.c | 2 +- drivers/sound/tegra_ahub.c | 2 +- drivers/sound/tegra_i2s.c | 1 - drivers/sound/tegra_sound.c | 1 - drivers/sound/wm8994.c | 1 - 25 files changed, 3 insertions(+), 25 deletions(-)
diff --git a/drivers/sound/broadwell_i2s.c b/drivers/sound/broadwell_i2s.c index 7f754e656761..bc44b5ec7e1f 100644 --- a/drivers/sound/broadwell_i2s.c +++ b/drivers/sound/broadwell_i2s.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/broadwell_sound.c b/drivers/sound/broadwell_sound.c index 6e083fe1f696..473f8d8f9771 100644 --- a/drivers/sound/broadwell_sound.c +++ b/drivers/sound/broadwell_sound.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/codec-uclass.c b/drivers/sound/codec-uclass.c index 2cb233bd3060..1c1560619ea5 100644 --- a/drivers/sound/codec-uclass.c +++ b/drivers/sound/codec-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AUDIO_CODEC
-#include <common.h> #include <dm.h> #include <audio_codec.h>
diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c index c1edef443608..5b9b3f65263f 100644 --- a/drivers/sound/da7219.c +++ b/drivers/sound/da7219.c @@ -6,7 +6,6 @@ * Parts taken from coreboot */
-#include <common.h> #include <dm.h> #include <i2c.h> #include <irq.h> diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c index af6148ef7240..da8bde67de65 100644 --- a/drivers/sound/hda_codec.c +++ b/drivers/sound/hda_codec.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/i2s-uclass.c b/drivers/sound/i2s-uclass.c index fc4f686b516d..6263c4d70719 100644 --- a/drivers/sound/i2s-uclass.c +++ b/drivers/sound/i2s-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h>
diff --git a/drivers/sound/i8254_beep.c b/drivers/sound/i8254_beep.c index 5572dc4d265d..7234ad4a07e5 100644 --- a/drivers/sound/i8254_beep.c +++ b/drivers/sound/i8254_beep.c @@ -3,7 +3,6 @@ * Copyright 2018 Google LLC */
-#include <common.h> #include <dm.h> #include <sound.h> #include <asm/i8254.h> diff --git a/drivers/sound/ivybridge_sound.c b/drivers/sound/ivybridge_sound.c index d982219e06de..aeeba1d267ec 100644 --- a/drivers/sound/ivybridge_sound.c +++ b/drivers/sound/ivybridge_sound.c @@ -12,7 +12,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/max98088.c b/drivers/sound/max98088.c index c0463b8e8a62..d9037641ca46 100644 --- a/drivers/sound/max98088.c +++ b/drivers/sound/max98088.c @@ -8,7 +8,6 @@ * following the changes made in max98095.c */
-#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98090.c b/drivers/sound/max98090.c index a798762f1ee7..18a3ffa85c8e 100644 --- a/drivers/sound/max98090.c +++ b/drivers/sound/max98090.c @@ -5,7 +5,6 @@ * Copyright 2011 Maxim Integrated Products */
-#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c index d0f701aaf105..96e772cff21b 100644 --- a/drivers/sound/max98095.c +++ b/drivers/sound/max98095.c @@ -7,7 +7,6 @@ * Modified for U-Boot by R. Chandrasekar (rcsekar@samsung.com) */
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h> diff --git a/drivers/sound/max98357a.c b/drivers/sound/max98357a.c index bdf6dc236ec3..da56ffdd6bb4 100644 --- a/drivers/sound/max98357a.c +++ b/drivers/sound/max98357a.c @@ -6,7 +6,6 @@ * Parts taken from coreboot */
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <log.h> diff --git a/drivers/sound/maxim_codec.c b/drivers/sound/maxim_codec.c index 6553d9590472..98f094c0e9ad 100644 --- a/drivers/sound/maxim_codec.c +++ b/drivers/sound/maxim_codec.c @@ -5,7 +5,6 @@ * Copyright 2011 Maxim Integrated Products */
-#include <common.h> #include <div64.h> #include <i2c.h> #include <i2s.h> diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c index 4e9e68aaac81..5078dfbed07d 100644 --- a/drivers/sound/rockchip_i2s.c +++ b/drivers/sound/rockchip_i2s.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/rockchip_sound.c b/drivers/sound/rockchip_sound.c index 94058e603d7d..418d2efd4526 100644 --- a/drivers/sound/rockchip_sound.c +++ b/drivers/sound/rockchip_sound.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <clk.h> #include <dm.h> diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c index b655bb40b642..b5c997c6dd53 100644 --- a/drivers/sound/rt5677.c +++ b/drivers/sound/rt5677.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/sound/samsung-i2s.c b/drivers/sound/samsung-i2s.c index dc5a2789aeed..42175fd7d28b 100644 --- a/drivers/sound/samsung-i2s.c +++ b/drivers/sound/samsung-i2s.c @@ -4,11 +4,11 @@ * R. Chandrasekar rcsekar@samsung.com */
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <sound.h> +#include <time.h> #include <asm/arch/clk.h> #include <asm/arch/pinmux.h> #include <asm/arch/i2s-regs.h> diff --git a/drivers/sound/samsung_sound.c b/drivers/sound/samsung_sound.c index 473cedf7e974..9150ad4a63ba 100644 --- a/drivers/sound/samsung_sound.c +++ b/drivers/sound/samsung_sound.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c index c6cbd81fdbce..31ae153530e8 100644 --- a/drivers/sound/sandbox.c +++ b/drivers/sound/sandbox.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sound-uclass.c b/drivers/sound/sound-uclass.c index 2ffc4fc7c1db..b8a3dab447d9 100644 --- a/drivers/sound/sound-uclass.c +++ b/drivers/sound/sound-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/sound.c b/drivers/sound/sound.c index c0fc50c99dac..4fde2989e04f 100644 --- a/drivers/sound/sound.c +++ b/drivers/sound/sound.c @@ -4,9 +4,9 @@ * R. Chandrasekar rcsekar@samsung.com */
-#include <common.h> #include <log.h> #include <sound.h> +#include <linux/string.h>
void sound_create_square_wave(uint sample_rate, unsigned short *data, int size, uint freq, uint channels) diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c index 495a29c5137c..8f1b0c009a88 100644 --- a/drivers/sound/tegra_ahub.c +++ b/drivers/sound/tegra_ahub.c @@ -7,11 +7,11 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <misc.h> +#include <time.h> #include <asm/io.h> #include <asm/arch-tegra/tegra_ahub.h> #include <asm/arch-tegra/tegra_i2s.h> diff --git a/drivers/sound/tegra_i2s.c b/drivers/sound/tegra_i2s.c index 932f737900e4..357aac36ceaa 100644 --- a/drivers/sound/tegra_i2s.c +++ b/drivers/sound/tegra_i2s.c @@ -5,7 +5,6 @@ */ #define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/tegra_sound.c b/drivers/sound/tegra_sound.c index aef6a2eb1475..152c929146f5 100644 --- a/drivers/sound/tegra_sound.c +++ b/drivers/sound/tegra_sound.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index fd646479b315..6b3091aa5de1 100644 --- a/drivers/sound/wm8994.c +++ b/drivers/sound/wm8994.c @@ -3,7 +3,6 @@ * Copyright (C) 2012 Samsung Electronics * R. Chandrasekar rcsekar@samsung.com */ -#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com
drivers/sound/broadwell_i2s.c | 1 - drivers/sound/broadwell_sound.c | 1 - drivers/sound/codec-uclass.c | 1 - drivers/sound/da7219.c | 1 - drivers/sound/hda_codec.c | 1 - drivers/sound/i2s-uclass.c | 1 - drivers/sound/i8254_beep.c | 1 - drivers/sound/ivybridge_sound.c | 1 - drivers/sound/max98088.c | 1 - drivers/sound/max98090.c | 1 - drivers/sound/max98095.c | 1 - drivers/sound/max98357a.c | 1 - drivers/sound/maxim_codec.c | 1 - drivers/sound/rockchip_i2s.c | 1 - drivers/sound/rockchip_sound.c | 1 - drivers/sound/rt5677.c | 1 - drivers/sound/samsung-i2s.c | 2 +- drivers/sound/samsung_sound.c | 1 - drivers/sound/sandbox.c | 1 - drivers/sound/sound-uclass.c | 1 - drivers/sound/sound.c | 2 +- drivers/sound/tegra_ahub.c | 2 +- drivers/sound/tegra_i2s.c | 1 - drivers/sound/tegra_sound.c | 1 - drivers/sound/wm8994.c | 1 - 25 files changed, 3 insertions(+), 25 deletions(-)
diff --git a/drivers/sound/broadwell_i2s.c b/drivers/sound/broadwell_i2s.c index 7f754e656761..bc44b5ec7e1f 100644 --- a/drivers/sound/broadwell_i2s.c +++ b/drivers/sound/broadwell_i2s.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/broadwell_sound.c b/drivers/sound/broadwell_sound.c index 6e083fe1f696..473f8d8f9771 100644 --- a/drivers/sound/broadwell_sound.c +++ b/drivers/sound/broadwell_sound.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/codec-uclass.c b/drivers/sound/codec-uclass.c index 2cb233bd3060..1c1560619ea5 100644 --- a/drivers/sound/codec-uclass.c +++ b/drivers/sound/codec-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_AUDIO_CODEC
-#include <common.h> #include <dm.h> #include <audio_codec.h>
diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c index c1edef443608..5b9b3f65263f 100644 --- a/drivers/sound/da7219.c +++ b/drivers/sound/da7219.c @@ -6,7 +6,6 @@
- Parts taken from coreboot
*/
-#include <common.h> #include <dm.h> #include <i2c.h> #include <irq.h> diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c index af6148ef7240..da8bde67de65 100644 --- a/drivers/sound/hda_codec.c +++ b/drivers/sound/hda_codec.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/i2s-uclass.c b/drivers/sound/i2s-uclass.c index fc4f686b516d..6263c4d70719 100644 --- a/drivers/sound/i2s-uclass.c +++ b/drivers/sound/i2s-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h>
diff --git a/drivers/sound/i8254_beep.c b/drivers/sound/i8254_beep.c index 5572dc4d265d..7234ad4a07e5 100644 --- a/drivers/sound/i8254_beep.c +++ b/drivers/sound/i8254_beep.c @@ -3,7 +3,6 @@
- Copyright 2018 Google LLC
*/
-#include <common.h> #include <dm.h> #include <sound.h> #include <asm/i8254.h> diff --git a/drivers/sound/ivybridge_sound.c b/drivers/sound/ivybridge_sound.c index d982219e06de..aeeba1d267ec 100644 --- a/drivers/sound/ivybridge_sound.c +++ b/drivers/sound/ivybridge_sound.c @@ -12,7 +12,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/max98088.c b/drivers/sound/max98088.c index c0463b8e8a62..d9037641ca46 100644 --- a/drivers/sound/max98088.c +++ b/drivers/sound/max98088.c @@ -8,7 +8,6 @@
- following the changes made in max98095.c
*/
-#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98090.c b/drivers/sound/max98090.c index a798762f1ee7..18a3ffa85c8e 100644 --- a/drivers/sound/max98090.c +++ b/drivers/sound/max98090.c @@ -5,7 +5,6 @@
- Copyright 2011 Maxim Integrated Products
*/
-#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c index d0f701aaf105..96e772cff21b 100644 --- a/drivers/sound/max98095.c +++ b/drivers/sound/max98095.c @@ -7,7 +7,6 @@
- Modified for U-Boot by R. Chandrasekar (rcsekar@samsung.com)
*/
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h> diff --git a/drivers/sound/max98357a.c b/drivers/sound/max98357a.c index bdf6dc236ec3..da56ffdd6bb4 100644 --- a/drivers/sound/max98357a.c +++ b/drivers/sound/max98357a.c @@ -6,7 +6,6 @@
- Parts taken from coreboot
*/
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <log.h> diff --git a/drivers/sound/maxim_codec.c b/drivers/sound/maxim_codec.c index 6553d9590472..98f094c0e9ad 100644 --- a/drivers/sound/maxim_codec.c +++ b/drivers/sound/maxim_codec.c @@ -5,7 +5,6 @@
- Copyright 2011 Maxim Integrated Products
*/
-#include <common.h> #include <div64.h> #include <i2c.h> #include <i2s.h> diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c index 4e9e68aaac81..5078dfbed07d 100644 --- a/drivers/sound/rockchip_i2s.c +++ b/drivers/sound/rockchip_i2s.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/rockchip_sound.c b/drivers/sound/rockchip_sound.c index 94058e603d7d..418d2efd4526 100644 --- a/drivers/sound/rockchip_sound.c +++ b/drivers/sound/rockchip_sound.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <clk.h> #include <dm.h> diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c index b655bb40b642..b5c997c6dd53 100644 --- a/drivers/sound/rt5677.c +++ b/drivers/sound/rt5677.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/sound/samsung-i2s.c b/drivers/sound/samsung-i2s.c index dc5a2789aeed..42175fd7d28b 100644 --- a/drivers/sound/samsung-i2s.c +++ b/drivers/sound/samsung-i2s.c @@ -4,11 +4,11 @@
- R. Chandrasekar rcsekar@samsung.com
*/
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <sound.h> +#include <time.h> #include <asm/arch/clk.h> #include <asm/arch/pinmux.h> #include <asm/arch/i2s-regs.h> diff --git a/drivers/sound/samsung_sound.c b/drivers/sound/samsung_sound.c index 473cedf7e974..9150ad4a63ba 100644 --- a/drivers/sound/samsung_sound.c +++ b/drivers/sound/samsung_sound.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c index c6cbd81fdbce..31ae153530e8 100644 --- a/drivers/sound/sandbox.c +++ b/drivers/sound/sandbox.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sound-uclass.c b/drivers/sound/sound-uclass.c index 2ffc4fc7c1db..b8a3dab447d9 100644 --- a/drivers/sound/sound-uclass.c +++ b/drivers/sound/sound-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SOUND
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/sound.c b/drivers/sound/sound.c index c0fc50c99dac..4fde2989e04f 100644 --- a/drivers/sound/sound.c +++ b/drivers/sound/sound.c @@ -4,9 +4,9 @@
- R. Chandrasekar rcsekar@samsung.com
*/
-#include <common.h> #include <log.h> #include <sound.h> +#include <linux/string.h>
void sound_create_square_wave(uint sample_rate, unsigned short *data, int size, uint freq, uint channels) diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c index 495a29c5137c..8f1b0c009a88 100644 --- a/drivers/sound/tegra_ahub.c +++ b/drivers/sound/tegra_ahub.c @@ -7,11 +7,11 @@
#define LOG_CATEGORY UCLASS_MISC
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <misc.h> +#include <time.h> #include <asm/io.h> #include <asm/arch-tegra/tegra_ahub.h> #include <asm/arch-tegra/tegra_i2s.h> diff --git a/drivers/sound/tegra_i2s.c b/drivers/sound/tegra_i2s.c index 932f737900e4..357aac36ceaa 100644 --- a/drivers/sound/tegra_i2s.c +++ b/drivers/sound/tegra_i2s.c @@ -5,7 +5,6 @@ */ #define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/tegra_sound.c b/drivers/sound/tegra_sound.c index aef6a2eb1475..152c929146f5 100644 --- a/drivers/sound/tegra_sound.c +++ b/drivers/sound/tegra_sound.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_I2S
-#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index fd646479b315..6b3091aa5de1 100644 --- a/drivers/sound/wm8994.c +++ b/drivers/sound/wm8994.c @@ -3,7 +3,6 @@
- Copyright (C) 2012 Samsung Electronics
- R. Chandrasekar rcsekar@samsung.com
*/ -#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Jagan Teki jagan@amarulasolutions.com Cc: Tom Rini trini@konsulko.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Michal Simek michal.simek@amd.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Chin-Ting Kuo chin-ting_kuo@aspeedtech.com Cc: "Cédric Le Goater" clg@kaod.org Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Robert Marko robert.marko@sartura.hr Cc: Luka Kovacic luka.kovacic@sartura.hr Cc: Luka Perkov luka.perkov@sartura.hr Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com --- drivers/spi/altera_spi.c | 1 - drivers/spi/apple_spi.c | 1 - drivers/spi/atcspi200_spi.c | 1 - drivers/spi/ath79_spi.c | 1 - drivers/spi/atmel-quadspi.c | 1 - drivers/spi/atmel_spi.c | 1 - drivers/spi/bcm63xx_hsspi.c | 1 - drivers/spi/bcm63xx_spi.c | 1 - drivers/spi/bcmbca_hsspi.c | 1 - drivers/spi/ca_sflash.c | 1 - drivers/spi/cadence_ospi_versal.c | 1 - drivers/spi/cadence_qspi.c | 1 - drivers/spi/cadence_qspi_apb.c | 1 - drivers/spi/cf_spi.c | 1 - drivers/spi/davinci_spi.c | 2 +- drivers/spi/designware_spi.c | 1 - drivers/spi/exynos_spi.c | 1 - drivers/spi/fsl_dspi.c | 1 - drivers/spi/fsl_espi.c | 2 +- drivers/spi/fsl_qspi.c | 1 - drivers/spi/ich.c | 1 - drivers/spi/iproc_qspi.c | 1 - drivers/spi/kirkwood_spi.c | 2 +- drivers/spi/meson_spifc.c | 1 - drivers/spi/microchip_coreqspi.c | 1 - drivers/spi/mpc8xx_spi.c | 1 - drivers/spi/mpc8xxx_spi.c | 1 - drivers/spi/mscc_bb_spi.c | 1 - drivers/spi/mt7621_spi.c | 1 - drivers/spi/mtk_snfi_spi.c | 1 - drivers/spi/mtk_snor.c | 1 - drivers/spi/mvebu_a3700_spi.c | 1 - drivers/spi/mxc_spi.c | 2 +- drivers/spi/mxs_spi.c | 1 - drivers/spi/npcm_pspi.c | 1 - drivers/spi/nxp_fspi.c | 1 - drivers/spi/omap3_spi.c | 2 +- drivers/spi/pic32_spi.c | 1 - drivers/spi/pl022_spi.c | 1 - drivers/spi/renesas_rpc_spi.c | 1 - drivers/spi/rk_spi.c | 1 - drivers/spi/sandbox_spi.c | 1 - drivers/spi/sh_qspi.c | 1 - drivers/spi/soft_spi.c | 1 - drivers/spi/spi-aspeed-smc.c | 1 - drivers/spi/spi-emul-uclass.c | 1 - drivers/spi/spi-mem.c | 1 - drivers/spi/spi-mxic.c | 1 - drivers/spi/spi-qup.c | 1 - drivers/spi/spi-sifive.c | 1 - drivers/spi/spi-sn-f-ospi.c | 1 - drivers/spi/spi-sunxi.c | 1 - drivers/spi/spi-synquacer.c | 1 - drivers/spi/spi-uclass.c | 1 - drivers/spi/spi.c | 1 - drivers/spi/stm32_qspi.c | 1 - drivers/spi/stm32_spi.c | 1 - drivers/spi/tegra114_spi.c | 1 - drivers/spi/tegra20_sflash.c | 1 - drivers/spi/tegra20_slink.c | 1 - drivers/spi/tegra210_qspi.c | 1 - drivers/spi/ti_qspi.c | 1 - drivers/spi/uniphier_spi.c | 1 - drivers/spi/xilinx_spi.c | 1 - drivers/spi/zynq_qspi.c | 1 - drivers/spi/zynq_spi.c | 1 - drivers/spi/zynqmp_gqspi.c | 1 - 67 files changed, 5 insertions(+), 67 deletions(-)
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 989679e881b5..8e227d187b0c 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -6,7 +6,6 @@ * Copyright (c) 2005-2008 Analog Devices Inc. * Copyright (C) 2010 Thomas Chou thomas@wytron.com.tw */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/apple_spi.c b/drivers/spi/apple_spi.c index f35f5af1f6f8..5f94e9f7a74d 100644 --- a/drivers/spi/apple_spi.c +++ b/drivers/spi/apple_spi.c @@ -4,7 +4,6 @@ * Copyright The Asahi Linux Contributors */
-#include <common.h> #include <dm.h> #include <clk.h> #include <spi.h> diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c index 70cb242cd31e..929bf90458c3 100644 --- a/drivers/spi/atcspi200_spi.c +++ b/drivers/spi/atcspi200_spi.c @@ -6,7 +6,6 @@ * Author: Rick Chen (rick@andestech.com) */
-#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c index 205567ef54dd..faefac712608 100644 --- a/drivers/spi/ath79_spi.c +++ b/drivers/spi/ath79_spi.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2016 Wills Wang wills.wang@live.com */
-#include <common.h> #include <clock_legacy.h> #include <spi.h> #include <dm.h> diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index bd73e4fddf18..3efb661803b6 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -12,7 +12,6 @@ #include <malloc.h> #include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index d4f0c4c44836..79f010013184 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2007 Atmel Corporation */ -#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index 23ac5bb76c04..1aa43fd3a238 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/drivers/spi/bcm63xx_hsspi.c @@ -7,7 +7,6 @@ * Copyright (C) 2012-2013 Jonas Gorski jogo@openwrt.org */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/bcm63xx_spi.c b/drivers/spi/bcm63xx_spi.c index 889ac1f966e3..595b41c8ab8a 100644 --- a/drivers/spi/bcm63xx_spi.c +++ b/drivers/spi/bcm63xx_spi.c @@ -7,7 +7,6 @@ * Copyright (C) 2010 Tanguy Bouzeloc tanguy.bouzeloc@efixo.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/bcmbca_hsspi.c b/drivers/spi/bcmbca_hsspi.c index af45882db0a7..eff9e1117d35 100644 --- a/drivers/spi/bcmbca_hsspi.c +++ b/drivers/spi/bcmbca_hsspi.c @@ -8,7 +8,6 @@ * Copyright (C) 2021 Broadcom Ltd */
-#include <common.h> #include <asm/io.h> #include <clk.h> #include <spi.h> diff --git a/drivers/spi/ca_sflash.c b/drivers/spi/ca_sflash.c index 38bddd38619e..a99a8a4485ab 100644 --- a/drivers/spi/ca_sflash.c +++ b/drivers/spi/ca_sflash.c @@ -7,7 +7,6 @@ * Author: PengPeng Chen pengpeng.chen@cortina-access.com */
-#include <common.h> #include <malloc.h> #include <clk.h> #include <dm.h> diff --git a/drivers/spi/cadence_ospi_versal.c b/drivers/spi/cadence_ospi_versal.c index c2be307f1d87..222f828f54ec 100644 --- a/drivers/spi/cadence_ospi_versal.c +++ b/drivers/spi/cadence_ospi_versal.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <memalign.h> #include <wait_bit.h> #include <asm/io.h> diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index f4593c47b8c5..75e522320101 100644 --- a/drivers/spi/cadence_qspi.c +++ b/drivers/spi/cadence_qspi.c @@ -4,7 +4,6 @@ * Altera Corporation <www.altera.com> */
-#include <common.h> #include <clk.h> #include <log.h> #include <dm.h> diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index fb9053221782..93ab2b5635f3 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cadence_qspi_apb.c @@ -25,7 +25,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
-#include <common.h> #include <log.h> #include <asm/io.h> #include <dma.h> diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index 1a841b5dcefc..8234468b1d43 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -13,7 +13,6 @@ * TODO: fsl_dspi.c should work as a driver for the DSPI module. */
-#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 25f5e9fdebd5..04c134be9edf 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -8,7 +8,7 @@ * Copyright (C) 2007 Atmel Corporation */
-#include <common.h> +#include <config.h> #include <log.h> #include <spi.h> #include <malloc.h> diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 22a79da2333e..6bd48b1b3739 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -11,7 +11,6 @@ */
#define LOG_CATEGORY UCLASS_SPI -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index 1bcc3ad318db..1b9bf004b7c1 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -4,7 +4,6 @@ * Padmavathi Venna padma.v@samsung.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index 9b3d5a94817f..1d4d90ce5aaf 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -11,7 +11,6 @@
#include <asm/global_data.h> #include <linux/math64.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c index b1d964d79d0c..2638ed252001 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -8,7 +8,7 @@ * Chuanhua Han (chuanhua.han@nxp.com) */
-#include <common.h> +#include <config.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 3f97730bad0b..8a0a53cb3720 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -23,7 +23,6 @@ * Transition to spi-mem in spi-fsl-qspi.c */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 9142ffd23870..e48ca65fe726 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <bootstage.h> #include <div64.h> #include <dm.h> diff --git a/drivers/spi/iproc_qspi.c b/drivers/spi/iproc_qspi.c index b5c274314b5b..09f30c227023 100644 --- a/drivers/spi/iproc_qspi.c +++ b/drivers/spi/iproc_qspi.c @@ -3,7 +3,6 @@ * Copyright 2020-2021 Broadcom */
-#include <common.h> #include <dm.h> #include <spi.h> #include <spi-mem.h> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c index 2bb7390bbfb7..095cbea0fca9 100644 --- a/drivers/spi/kirkwood_spi.c +++ b/drivers/spi/kirkwood_spi.c @@ -7,7 +7,7 @@ * Derived from drivers/spi/mpc8xxx_spi.c */
-#include <common.h> +#include <config.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c index d99a151406e6..d7ebb6bf1ac7 100644 --- a/drivers/spi/meson_spifc.c +++ b/drivers/spi/meson_spifc.c @@ -7,7 +7,6 @@ * Amlogic Meson SPI Flash Controller driver */
-#include <common.h> #include <log.h> #include <spi.h> #include <clk.h> diff --git a/drivers/spi/microchip_coreqspi.c b/drivers/spi/microchip_coreqspi.c index 5fe0c8e1237e..234b16882726 100644 --- a/drivers/spi/microchip_coreqspi.c +++ b/drivers/spi/microchip_coreqspi.c @@ -5,7 +5,6 @@ * Naga Sureshkumar Relli nagasuresh.relli@microchip.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index e1448cc61969..7e72fb9e23dc 100644 --- a/drivers/spi/mpc8xx_spi.c +++ b/drivers/spi/mpc8xx_spi.c @@ -16,7 +16,6 @@ * */
-#include <common.h> #include <dm.h> #include <malloc.h> #include <mpc8xx.h> diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 7d15390c56b3..cd624f4d6f0b 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -4,7 +4,6 @@ * With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c index 95bea0da1b35..ad4daeba3cd8 100644 --- a/drivers/spi/mscc_bb_spi.c +++ b/drivers/spi/mscc_bb_spi.c @@ -5,7 +5,6 @@ * Copyright (c) 2018 Microsemi Corporation */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c index 3d0080998625..e46942de2e3b 100644 --- a/drivers/spi/mt7621_spi.c +++ b/drivers/spi/mt7621_spi.c @@ -8,7 +8,6 @@ * Copyright (C) 2014-2015 Felix Fietkau nbd@nbd.name */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mtk_snfi_spi.c b/drivers/spi/mtk_snfi_spi.c index 3decb3744de9..830424b31d6a 100644 --- a/drivers/spi/mtk_snfi_spi.c +++ b/drivers/spi/mtk_snfi_spi.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/mtk_snor.c b/drivers/spi/mtk_snor.c index 4b7d4a6e0741..f202b2f49f58 100644 --- a/drivers/spi/mtk_snor.c +++ b/drivers/spi/mtk_snor.c @@ -7,7 +7,6 @@ // Some parts are based on drivers/spi/spi-mtk-nor.c of linux version
#include <clk.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device.h> diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c index bba2383a1116..fde9b142fb89 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -5,7 +5,6 @@ * Copyright (C) 2016 Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index e291092c481a..ff61a14f095d 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -3,7 +3,7 @@ * Copyright (C) 2008, Guennadi Liakhovetski lg@denx.de */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 773e26bbed74..ad9e490faa9f 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -12,7 +12,6 @@ * GPIO driven chipselects are not supported. */
-#include <common.h> #include <dm.h> #include <dt-structs.h> #include <cpu_func.h> diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c index eb14185273e9..36d1f174bebb 100644 --- a/drivers/spi/npcm_pspi.c +++ b/drivers/spi/npcm_pspi.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology. */
-#include <common.h> #include <dm.h> #include <spi.h> #include <clk.h> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 5db27f9ae2c9..fefdaaa9e901 100644 --- a/drivers/spi/nxp_fspi.c +++ b/drivers/spi/nxp_fspi.c @@ -33,7 +33,6 @@ * Frieder Schrempf frieder.schrempf@kontron.de */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 5cce6baa6213..3d82fc74ff58 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -16,9 +16,9 @@ * Modified by Ruslan Araslanov ruslan.araslanov@vitecmm.com */
-#include <common.h> #include <dm.h> #include <spi.h> +#include <time.h> #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c index 45f07f083da8..e11ae7fc7a4a 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -6,7 +6,6 @@ * Purna Chandra Mandal purna.mandal@microchip.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c index e2b49ebd149a..1e20701d0d35 100644 --- a/drivers/spi/pl022_spi.c +++ b/drivers/spi/pl022_spi.c @@ -10,7 +10,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <fdtdec.h> diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index 8aff22386458..e6b602cf7b47 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index c8694fdff954..4571dc9f9b69 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -10,7 +10,6 @@ * Peter, Software Engineering, superpeter.cai@gmail.com. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index f844597d04cf..4cc016138b11 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index 72594993853b..b7364a61929f 100644 --- a/drivers/spi/sh_qspi.c +++ b/drivers/spi/sh_qspi.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <console.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 0fa14339bdcd..9bdb4a5bff9b 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -9,7 +9,6 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index 7d5f101a7662..d91d58da4596 100644 --- a/drivers/spi/spi-aspeed-smc.c +++ b/drivers/spi/spi-aspeed-smc.c @@ -12,7 +12,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/spi/spi-emul-uclass.c b/drivers/spi/spi-emul-uclass.c index 64bc19c00112..d92f36bd20e5 100644 --- a/drivers/spi/spi-emul-uclass.c +++ b/drivers/spi/spi-emul-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SPI_EMUL
-#include <common.h> #include <dm.h> #include <spi.h> #include <spi_flash.h> diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index b7eca5835956..3579b7d7db58 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -13,7 +13,6 @@ #include <linux/pm_runtime.h> #include "internals.h" #else -#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c index f663b9dcbb16..b98bcd9b6ba5 100644 --- a/drivers/spi/spi-mxic.c +++ b/drivers/spi/spi-mxic.c @@ -6,7 +6,6 @@ * zhengxunli zhengxunli@mxic.com.tw */
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 572cef1694c8..836c550b0bb6 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -15,7 +15,6 @@ #include <asm/gpio.h> #include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index ea372a05f836..0c8666c05f94 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -6,7 +6,6 @@ * SiFive SPI controller driver (master mode only) */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <malloc.h> diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index e3633a526080..fc82791006ec 100644 --- a/drivers/spi/spi-sn-f-ospi.c +++ b/drivers/spi/spi-sn-f-ospi.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitfield.h> diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index 9ec6b359e227..13725ee7a2dc 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -18,7 +18,6 @@ * SPDX-License-Identifier: GPL-2.0+ */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index 553f9687e3b3..eb522fd7b3d9 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index f4795e68672f..6e2817252391 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 22910de0dd93..50a076a98be6 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3,7 +3,6 @@ * Copyright (c) 2011 The Chromium OS Authors. */
-#include <common.h> #include <fdtdec.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 2ffa201a66ed..2812a4da4113 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index ddb410a94c01..97b83b171670 100644 --- a/drivers/spi/stm32_spi.c +++ b/drivers/spi/stm32_spi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index f0256d8e6641..57f1a8fc703f 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -5,7 +5,6 @@ * Copyright (c) 2010-2013 NVIDIA Corporation */
-#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 10e38cf839dc..19114808e9df 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -5,7 +5,6 @@ * With more help from omap3_spi SPI driver */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index d0e788539e0b..d54a5049205b 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -5,7 +5,6 @@ * Copyright (c) 2010-2013 NVIDIA Corporation */
-#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index 5c8c1859cc96..b969a7993d40 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 99acb108823e..a16412ec6fb9 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -5,7 +5,6 @@ * Copyright (C) 2013, Texas Instruments, Incorporated */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index 6402acbf14a1..8f2c0fb4b8ee 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 94ddf4967eaf..0e7fa3a4525d 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -13,7 +13,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index cb52c0f30721..b71b9a6fd6c8 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index b3e0858eb945..ebcb5b6cc883 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -6,7 +6,6 @@ * Xilinx Zynq PS SPI controller driver (master mode only) */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index a323994fb2d3..61349a4da53f 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SPI
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/arch/sys_proto.h>

On 05/01/2024 06:31 PM, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Jagan Teki jagan@amarulasolutions.com Cc: Tom Rini trini@konsulko.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Michal Simek michal.simek@amd.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Chin-Ting Kuo chin-ting_kuo@aspeedtech.com Cc: "Cédric Le Goater" clg@kaod.org Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Robert Marko robert.marko@sartura.hr Cc: Luka Kovacic luka.kovacic@sartura.hr Cc: Luka Perkov luka.perkov@sartura.hr Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com
drivers/spi/altera_spi.c | 1 - drivers/spi/apple_spi.c | 1 - drivers/spi/atcspi200_spi.c | 1 - drivers/spi/ath79_spi.c | 1 - drivers/spi/atmel-quadspi.c | 1 - drivers/spi/atmel_spi.c | 1 - drivers/spi/bcm63xx_hsspi.c | 1 - drivers/spi/bcm63xx_spi.c | 1 - drivers/spi/bcmbca_hsspi.c | 1 - drivers/spi/ca_sflash.c | 1 - drivers/spi/cadence_ospi_versal.c | 1 - drivers/spi/cadence_qspi.c | 1 - drivers/spi/cadence_qspi_apb.c | 1 - drivers/spi/cf_spi.c | 1 - drivers/spi/davinci_spi.c | 2 +- drivers/spi/designware_spi.c | 1 - drivers/spi/exynos_spi.c | 1 - drivers/spi/fsl_dspi.c | 1 - drivers/spi/fsl_espi.c | 2 +- drivers/spi/fsl_qspi.c | 1 - drivers/spi/ich.c | 1 - drivers/spi/iproc_qspi.c | 1 - drivers/spi/kirkwood_spi.c | 2 +- drivers/spi/meson_spifc.c | 1 - drivers/spi/microchip_coreqspi.c | 1 - drivers/spi/mpc8xx_spi.c | 1 - drivers/spi/mpc8xxx_spi.c | 1 - drivers/spi/mscc_bb_spi.c | 1 - drivers/spi/mt7621_spi.c | 1 - drivers/spi/mtk_snfi_spi.c | 1 - drivers/spi/mtk_snor.c | 1 - drivers/spi/mvebu_a3700_spi.c | 1 - drivers/spi/mxc_spi.c | 2 +- drivers/spi/mxs_spi.c | 1 - drivers/spi/npcm_pspi.c | 1 - drivers/spi/nxp_fspi.c | 1 - drivers/spi/omap3_spi.c | 2 +- drivers/spi/pic32_spi.c | 1 - drivers/spi/pl022_spi.c | 1 - drivers/spi/renesas_rpc_spi.c | 1 - drivers/spi/rk_spi.c | 1 - drivers/spi/sandbox_spi.c | 1 - drivers/spi/sh_qspi.c | 1 - drivers/spi/soft_spi.c | 1 - drivers/spi/spi-aspeed-smc.c | 1 - drivers/spi/spi-emul-uclass.c | 1 - drivers/spi/spi-mem.c | 1 - drivers/spi/spi-mxic.c | 1 - drivers/spi/spi-qup.c | 1 - drivers/spi/spi-sifive.c | 1 - drivers/spi/spi-sn-f-ospi.c | 1 - drivers/spi/spi-sunxi.c | 1 - drivers/spi/spi-synquacer.c | 1 - drivers/spi/spi-uclass.c | 1 - drivers/spi/spi.c | 1 - drivers/spi/stm32_qspi.c | 1 - drivers/spi/stm32_spi.c | 1 - drivers/spi/tegra114_spi.c | 1 - drivers/spi/tegra20_sflash.c | 1 - drivers/spi/tegra20_slink.c | 1 - drivers/spi/tegra210_qspi.c | 1 - drivers/spi/ti_qspi.c | 1 - drivers/spi/uniphier_spi.c | 1 - drivers/spi/xilinx_spi.c | 1 - drivers/spi/zynq_qspi.c | 1 - drivers/spi/zynq_spi.c | 1 - drivers/spi/zynqmp_gqspi.c | 1 - 67 files changed, 5 insertions(+), 67 deletions(-)
For drivers/spi/bcm63xx_hsspi.c and drivers/spi/bcmbca_hsspi.c Reviewed-by: William Zhang william.zhang@broadcom.com

On 5/2/24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Jagan Teki jagan@amarulasolutions.com Cc: Tom Rini trini@konsulko.com Cc: Anand Gore anand.gore@broadcom.com Cc: William Zhang william.zhang@broadcom.com Cc: Kursad Oney kursad.oney@broadcom.com Cc: Joel Peshkin joel.peshkin@broadcom.com Cc: Philippe Reynes philippe.reynes@softathome.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Michal Simek michal.simek@amd.com Cc: Stefan Roese sr@denx.de Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Gregory CLEMENT gregory.clement@bootlin.com Cc: Lars Povlsen lars.povlsen@microchip.com Cc: Horatiu Vultur horatiu.vultur@microchip.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org Cc: Chin-Ting Kuo chin-ting_kuo@aspeedtech.com Cc: "Cédric Le Goater" clg@kaod.org Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Robert Marko robert.marko@sartura.hr Cc: Luka Kovacic luka.kovacic@sartura.hr Cc: Luka Perkov luka.perkov@sartura.hr Cc: Masahisa Kojima kojima.masahisa@socionext.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Kunihiko Hayashi hayashi.kunihiko@socionext.com Cc: Dai Okamura okamura.dai@socionext.com
For spi-aspeed-smc.c,
Reviewed-by: Cédric Le Goater clg@kaod.org
Thanks,
C.

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Mateusz Kulikowski mateusz.kulikowski@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- drivers/spmi/spmi-msm.c | 1 - drivers/spmi/spmi-sandbox.c | 1 - drivers/spmi/spmi-uclass.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index 244de69b3590..b0d6226041e5 100644 --- a/drivers/spmi/spmi-msm.c +++ b/drivers/spmi/spmi-msm.c @@ -7,7 +7,6 @@ * Loosely based on Little Kernel driver */
-#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spmi/spmi-sandbox.c b/drivers/spmi/spmi-sandbox.c index f6772946bca3..992b08dd6120 100644 --- a/drivers/spmi/spmi-sandbox.c +++ b/drivers/spmi/spmi-sandbox.c @@ -7,7 +7,6 @@ * (C) Copyright 2015 Mateusz Kulikowski mateusz.kulikowski@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <spmi/spmi.h> diff --git a/drivers/spmi/spmi-uclass.c b/drivers/spmi/spmi-uclass.c index 9d9f46a37d83..34fe8f6644c3 100644 --- a/drivers/spmi/spmi-uclass.c +++ b/drivers/spmi/spmi-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_SPMI
-#include <common.h> #include <dm.h> #include <errno.h> #include <spmi/spmi.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Simon Glass sjg@chromium.org --- drivers/sysinfo/gazerbeam.c | 1 - drivers/sysinfo/gpio.c | 1 - drivers/sysinfo/rcar3.c | 1 - drivers/sysinfo/sandbox.c | 1 - drivers/sysinfo/smbios.c | 1 - drivers/sysinfo/sysinfo-uclass.c | 1 - 6 files changed, 6 deletions(-)
diff --git a/drivers/sysinfo/gazerbeam.c b/drivers/sysinfo/gazerbeam.c index c1fae6ccf2a6..a3c9d5354dd2 100644 --- a/drivers/sysinfo/gazerbeam.c +++ b/drivers/sysinfo/gazerbeam.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <sysinfo.h> #include <i2c.h> diff --git a/drivers/sysinfo/gpio.c b/drivers/sysinfo/gpio.c index 82f90303bb70..aaca318419b0 100644 --- a/drivers/sysinfo/gpio.c +++ b/drivers/sysinfo/gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Sean Anderson sean.anderson@seco.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <sysinfo.h> diff --git a/drivers/sysinfo/rcar3.c b/drivers/sysinfo/rcar3.c index 7b127986da7e..37e2cccd9afe 100644 --- a/drivers/sysinfo/rcar3.c +++ b/drivers/sysinfo/rcar3.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 Marek Vasut marek.vasut+renesas@gmail.com */
-#include <common.h> #include <dm.h> #include <i2c_eeprom.h> #include <log.h> diff --git a/drivers/sysinfo/sandbox.c b/drivers/sysinfo/sandbox.c index d270a26aa438..d39720958f07 100644 --- a/drivers/sysinfo/sandbox.c +++ b/drivers/sysinfo/sandbox.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <dm.h> #include <sysinfo.h>
diff --git a/drivers/sysinfo/smbios.c b/drivers/sysinfo/smbios.c index 80ebd1921d8e..a7ac8e3f072a 100644 --- a/drivers/sysinfo/smbios.c +++ b/drivers/sysinfo/smbios.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <sysinfo.h>
diff --git a/drivers/sysinfo/sysinfo-uclass.c b/drivers/sysinfo/sysinfo-uclass.c index 10194d0e14c3..d77d1e3ee442 100644 --- a/drivers/sysinfo/sysinfo-uclass.c +++ b/drivers/sysinfo/sysinfo-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SYSINFO
-#include <common.h> #include <dm.h> #include <sysinfo.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Michal Simek michal.simek@amd.com Cc: Mario Six mario.six@gdsys.cc Cc: Weijie Gao weijie.gao@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Rick Chen rick@andestech.com Cc: Leo ycliang@andestech.com Cc: Marek Vasut marex@denx.de Cc: Simon Goldschmidt simon.k.r.goldschmidt@gmail.com Cc: Tien Fong Chee tien.fong.chee@intel.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Max Filippov jcmvbkbc@gmail.com Cc: Paul Barker paul.barker.ct@bp.renesas.com Cc: Bin Meng bmeng.cn@gmail.com --- drivers/sysreset/poweroff_gpio.c | 1 - drivers/sysreset/sysreset-ti-sci.c | 1 - drivers/sysreset/sysreset-uclass.c | 1 - drivers/sysreset/sysreset_ast.c | 1 - drivers/sysreset/sysreset_at91.c | 1 - drivers/sysreset/sysreset_gpio.c | 1 - drivers/sysreset/sysreset_microblaze.c | 1 - drivers/sysreset/sysreset_mpc83xx.c | 1 - drivers/sysreset/sysreset_octeon.c | 1 - drivers/sysreset/sysreset_psci.c | 1 - drivers/sysreset/sysreset_resetctl.c | 1 - drivers/sysreset/sysreset_rockchip.c | 1 - drivers/sysreset/sysreset_sandbox.c | 1 - drivers/sysreset/sysreset_sbi.c | 1 - drivers/sysreset/sysreset_socfpga.c | 1 - drivers/sysreset/sysreset_socfpga_soc64.c | 1 - drivers/sysreset/sysreset_sti.c | 1 - drivers/sysreset/sysreset_syscon.c | 1 - drivers/sysreset/sysreset_watchdog.c | 1 - drivers/sysreset/sysreset_x86.c | 1 - drivers/sysreset/sysreset_xtfpga.c | 2 +- 21 files changed, 1 insertion(+), 21 deletions(-)
diff --git a/drivers/sysreset/poweroff_gpio.c b/drivers/sysreset/poweroff_gpio.c index ad04e4b1a85e..d9220024f470 100644 --- a/drivers/sysreset/poweroff_gpio.c +++ b/drivers/sysreset/poweroff_gpio.c @@ -11,7 +11,6 @@ * Copyright (C) 2012 Jamie Lentin */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 0de132633a8d..451fc5de7357 100644 --- a/drivers/sysreset/sysreset-ti-sci.c +++ b/drivers/sysreset/sysreset-ti-sci.c @@ -6,7 +6,6 @@ * Andreas Dannenberg dannenberg@ti.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 6151b5fe03e4..0abb4042e0f2 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SYSRESET
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/sysreset/sysreset_ast.c b/drivers/sysreset/sysreset_ast.c index 92fad96871bd..ef09440bbeff 100644 --- a/drivers/sysreset/sysreset_ast.c +++ b/drivers/sysreset/sysreset_ast.c @@ -3,7 +3,6 @@ * (C) Copyright 2016 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_at91.c b/drivers/sysreset/sysreset_at91.c index fc85f31ebf01..457042c7aae9 100644 --- a/drivers/sysreset/sysreset_at91.c +++ b/drivers/sysreset/sysreset_at91.c @@ -7,7 +7,6 @@ #include <asm/io.h> #include <asm/arch/at91_rstc.h> #include <clk.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/sysreset/sysreset_gpio.c b/drivers/sysreset/sysreset_gpio.c index de42b5935424..47018844a51a 100644 --- a/drivers/sysreset/sysreset_gpio.c +++ b/drivers/sysreset/sysreset_gpio.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Xilinx, Inc. - Michal Simek */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_microblaze.c b/drivers/sysreset/sysreset_microblaze.c index 83a7f77ac41f..b81d82f046bd 100644 --- a/drivers/sysreset/sysreset_microblaze.c +++ b/drivers/sysreset/sysreset_microblaze.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Xilinx, Inc. - Michal Simek */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c index ca48328f7b58..dca49299f777 100644 --- a/drivers/sysreset/sysreset_mpc83xx.c +++ b/drivers/sysreset/sysreset_mpc83xx.c @@ -4,7 +4,6 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_octeon.c b/drivers/sysreset/sysreset_octeon.c index ebdea6ab66ed..c16223720e5a 100644 --- a/drivers/sysreset/sysreset_octeon.c +++ b/drivers/sysreset/sysreset_octeon.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Stefan Roese sr@denx.de */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_psci.c b/drivers/sysreset/sysreset_psci.c index aa09d0b88271..89b4f2dcaec4 100644 --- a/drivers/sysreset/sysreset_psci.c +++ b/drivers/sysreset/sysreset_psci.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Masahiro Yamada yamada.masahiro@socionext.com */
-#include <common.h> #include <dm.h> #include <sysreset.h> #include <linux/errno.h> diff --git a/drivers/sysreset/sysreset_resetctl.c b/drivers/sysreset/sysreset_resetctl.c index 25bd5c9a7ff2..fbe3999b9605 100644 --- a/drivers/sysreset/sysreset_resetctl.c +++ b/drivers/sysreset/sysreset_resetctl.c @@ -5,7 +5,6 @@ * Author: Weijie Gao weijie.gao@mediatek.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c index f353f9b4c79d..00308f9a33b7 100644 --- a/drivers/sysreset/sysreset_rockchip.c +++ b/drivers/sysreset/sysreset_rockchip.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index c12eda81d03e..93179f90bbb8 100644 --- a/drivers/sysreset/sysreset_sandbox.c +++ b/drivers/sysreset/sysreset_sandbox.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sbi.c b/drivers/sysreset/sysreset_sbi.c index 5e8090d62bfc..458191206b2c 100644 --- a/drivers/sysreset/sysreset_sbi.c +++ b/drivers/sysreset/sysreset_sbi.c @@ -3,7 +3,6 @@ * Copyright 2021, Heinrich Schuchardt heinrich.schuchardt@canonical.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_socfpga.c b/drivers/sysreset/sysreset_socfpga.c index 9b62dd5eab09..a07b0f4fd553 100644 --- a/drivers/sysreset/sysreset_socfpga.c +++ b/drivers/sysreset/sysreset_socfpga.c @@ -4,7 +4,6 @@ * Simon Goldschmidt simon.k.r.goldschmidt@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_socfpga_soc64.c b/drivers/sysreset/sysreset_socfpga_soc64.c index 9837aadf64b6..6f44792abb00 100644 --- a/drivers/sysreset/sysreset_socfpga_soc64.c +++ b/drivers/sysreset/sysreset_socfpga_soc64.c @@ -4,7 +4,6 @@ * Simon Goldschmidt simon.k.r.goldschmidt@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c index edd90aab061d..110b7e23afa1 100644 --- a/drivers/sysreset/sysreset_sti.c +++ b/drivers/sysreset/sysreset_sti.c @@ -4,7 +4,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c index e468dac0e902..57144fa1e3bb 100644 --- a/drivers/sysreset/sysreset_syscon.c +++ b/drivers/sysreset/sysreset_syscon.c @@ -7,7 +7,6 @@ * Author: Feng Kan fkan@apm.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <regmap.h> diff --git a/drivers/sysreset/sysreset_watchdog.c b/drivers/sysreset/sysreset_watchdog.c index 6db5aa75b541..49c061e08803 100644 --- a/drivers/sysreset/sysreset_watchdog.c +++ b/drivers/sysreset/sysreset_watchdog.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <errno.h> diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c index dc772b5ff9e3..c2f28c65280f 100644 --- a/drivers/sysreset/sysreset_x86.c +++ b/drivers/sysreset/sysreset_x86.c @@ -5,7 +5,6 @@ * Generic reset driver for x86 processor */
-#include <common.h> #include <dm.h> #include <efi_loader.h> #include <pch.h> diff --git a/drivers/sysreset/sysreset_xtfpga.c b/drivers/sysreset/sysreset_xtfpga.c index 84fbc79016a0..ab71ea11a0b2 100644 --- a/drivers/sysreset/sysreset_xtfpga.c +++ b/drivers/sysreset/sysreset_xtfpga.c @@ -5,7 +5,7 @@ * (C) Copyright 2016 Cadence Design Systems Inc. */
-#include <common.h> +#include <config.h> #include <dm.h> #include <errno.h> #include <sysreset.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Michal Simek michal.simek@amd.com Cc: Mario Six mario.six@gdsys.cc Cc: Weijie Gao weijie.gao@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Rick Chen rick@andestech.com Cc: Leo ycliang@andestech.com Cc: Marek Vasut marex@denx.de Cc: Simon Goldschmidt simon.k.r.goldschmidt@gmail.com Cc: Tien Fong Chee tien.fong.chee@intel.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Max Filippov jcmvbkbc@gmail.com Cc: Paul Barker paul.barker.ct@bp.renesas.com Cc: Bin Meng bmeng.cn@gmail.com
drivers/sysreset/poweroff_gpio.c | 1 - drivers/sysreset/sysreset-ti-sci.c | 1 - drivers/sysreset/sysreset-uclass.c | 1 - drivers/sysreset/sysreset_ast.c | 1 - drivers/sysreset/sysreset_at91.c | 1 - drivers/sysreset/sysreset_gpio.c | 1 - drivers/sysreset/sysreset_microblaze.c | 1 - drivers/sysreset/sysreset_mpc83xx.c | 1 - drivers/sysreset/sysreset_octeon.c | 1 - drivers/sysreset/sysreset_psci.c | 1 - drivers/sysreset/sysreset_resetctl.c | 1 - drivers/sysreset/sysreset_rockchip.c | 1 - drivers/sysreset/sysreset_sandbox.c | 1 - drivers/sysreset/sysreset_sbi.c | 1 - drivers/sysreset/sysreset_socfpga.c | 1 - drivers/sysreset/sysreset_socfpga_soc64.c | 1 - drivers/sysreset/sysreset_sti.c | 1 - drivers/sysreset/sysreset_syscon.c | 1 - drivers/sysreset/sysreset_watchdog.c | 1 - drivers/sysreset/sysreset_x86.c | 1 - drivers/sysreset/sysreset_xtfpga.c | 2 +- 21 files changed, 1 insertion(+), 21 deletions(-)
diff --git a/drivers/sysreset/poweroff_gpio.c b/drivers/sysreset/poweroff_gpio.c index ad04e4b1a85e..d9220024f470 100644 --- a/drivers/sysreset/poweroff_gpio.c +++ b/drivers/sysreset/poweroff_gpio.c @@ -11,7 +11,6 @@
- Copyright (C) 2012 Jamie Lentin
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 0de132633a8d..451fc5de7357 100644 --- a/drivers/sysreset/sysreset-ti-sci.c +++ b/drivers/sysreset/sysreset-ti-sci.c @@ -6,7 +6,6 @@
- Andreas Dannenberg dannenberg@ti.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 6151b5fe03e4..0abb4042e0f2 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_SYSRESET
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/sysreset/sysreset_ast.c b/drivers/sysreset/sysreset_ast.c index 92fad96871bd..ef09440bbeff 100644 --- a/drivers/sysreset/sysreset_ast.c +++ b/drivers/sysreset/sysreset_ast.c @@ -3,7 +3,6 @@
- (C) Copyright 2016 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_at91.c b/drivers/sysreset/sysreset_at91.c index fc85f31ebf01..457042c7aae9 100644 --- a/drivers/sysreset/sysreset_at91.c +++ b/drivers/sysreset/sysreset_at91.c @@ -7,7 +7,6 @@ #include <asm/io.h> #include <asm/arch/at91_rstc.h> #include <clk.h> -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/sysreset/sysreset_gpio.c b/drivers/sysreset/sysreset_gpio.c index de42b5935424..47018844a51a 100644 --- a/drivers/sysreset/sysreset_gpio.c +++ b/drivers/sysreset/sysreset_gpio.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Xilinx, Inc. - Michal Simek
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_microblaze.c b/drivers/sysreset/sysreset_microblaze.c index 83a7f77ac41f..b81d82f046bd 100644 --- a/drivers/sysreset/sysreset_microblaze.c +++ b/drivers/sysreset/sysreset_microblaze.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Xilinx, Inc. - Michal Simek
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c index ca48328f7b58..dca49299f777 100644 --- a/drivers/sysreset/sysreset_mpc83xx.c +++ b/drivers/sysreset/sysreset_mpc83xx.c @@ -4,7 +4,6 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_octeon.c b/drivers/sysreset/sysreset_octeon.c index ebdea6ab66ed..c16223720e5a 100644 --- a/drivers/sysreset/sysreset_octeon.c +++ b/drivers/sysreset/sysreset_octeon.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Stefan Roese sr@denx.de
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_psci.c b/drivers/sysreset/sysreset_psci.c index aa09d0b88271..89b4f2dcaec4 100644 --- a/drivers/sysreset/sysreset_psci.c +++ b/drivers/sysreset/sysreset_psci.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Masahiro Yamada yamada.masahiro@socionext.com
*/
-#include <common.h> #include <dm.h> #include <sysreset.h> #include <linux/errno.h> diff --git a/drivers/sysreset/sysreset_resetctl.c b/drivers/sysreset/sysreset_resetctl.c index 25bd5c9a7ff2..fbe3999b9605 100644 --- a/drivers/sysreset/sysreset_resetctl.c +++ b/drivers/sysreset/sysreset_resetctl.c @@ -5,7 +5,6 @@
- Author: Weijie Gao weijie.gao@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c index f353f9b4c79d..00308f9a33b7 100644 --- a/drivers/sysreset/sysreset_rockchip.c +++ b/drivers/sysreset/sysreset_rockchip.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index c12eda81d03e..93179f90bbb8 100644 --- a/drivers/sysreset/sysreset_sandbox.c +++ b/drivers/sysreset/sysreset_sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sbi.c b/drivers/sysreset/sysreset_sbi.c index 5e8090d62bfc..458191206b2c 100644 --- a/drivers/sysreset/sysreset_sbi.c +++ b/drivers/sysreset/sysreset_sbi.c @@ -3,7 +3,6 @@
- Copyright 2021, Heinrich Schuchardt heinrich.schuchardt@canonical.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_socfpga.c b/drivers/sysreset/sysreset_socfpga.c index 9b62dd5eab09..a07b0f4fd553 100644 --- a/drivers/sysreset/sysreset_socfpga.c +++ b/drivers/sysreset/sysreset_socfpga.c @@ -4,7 +4,6 @@
- Simon Goldschmidt simon.k.r.goldschmidt@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_socfpga_soc64.c b/drivers/sysreset/sysreset_socfpga_soc64.c index 9837aadf64b6..6f44792abb00 100644 --- a/drivers/sysreset/sysreset_socfpga_soc64.c +++ b/drivers/sysreset/sysreset_socfpga_soc64.c @@ -4,7 +4,6 @@
- Simon Goldschmidt simon.k.r.goldschmidt@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c index edd90aab061d..110b7e23afa1 100644 --- a/drivers/sysreset/sysreset_sti.c +++ b/drivers/sysreset/sysreset_sti.c @@ -4,7 +4,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c index e468dac0e902..57144fa1e3bb 100644 --- a/drivers/sysreset/sysreset_syscon.c +++ b/drivers/sysreset/sysreset_syscon.c @@ -7,7 +7,6 @@
- Author: Feng Kan fkan@apm.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <regmap.h> diff --git a/drivers/sysreset/sysreset_watchdog.c b/drivers/sysreset/sysreset_watchdog.c index 6db5aa75b541..49c061e08803 100644 --- a/drivers/sysreset/sysreset_watchdog.c +++ b/drivers/sysreset/sysreset_watchdog.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Álvaro Fernández Rojas noltari@gmail.com
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <errno.h> diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c index dc772b5ff9e3..c2f28c65280f 100644 --- a/drivers/sysreset/sysreset_x86.c +++ b/drivers/sysreset/sysreset_x86.c @@ -5,7 +5,6 @@
- Generic reset driver for x86 processor
*/
-#include <common.h> #include <dm.h> #include <efi_loader.h> #include <pch.h> diff --git a/drivers/sysreset/sysreset_xtfpga.c b/drivers/sysreset/sysreset_xtfpga.c index 84fbc79016a0..ab71ea11a0b2 100644 --- a/drivers/sysreset/sysreset_xtfpga.c +++ b/drivers/sysreset/sysreset_xtfpga.c @@ -5,7 +5,7 @@
- (C) Copyright 2016 Cadence Design Systems Inc.
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <errno.h> #include <sysreset.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Stefano Babic sbabic@denx.de Cc: Peng Fan peng.fan@nxp.com Cc: Fabio Estevam festevam@denx.de Cc: Marek Vasut marex@denx.de Cc: Andrejs Cainikovs andrejs.cainikovs@toradex.com Cc: Ye Li ye.li@nxp.com Cc: Benjamin Hahn B.Hahn@phytec.de --- drivers/thermal/imx_scu_thermal.c | 1 - drivers/thermal/imx_thermal.c | 1 - drivers/thermal/imx_tmu.c | 1 - drivers/thermal/thermal-uclass.c | 1 - drivers/thermal/thermal_sandbox.c | 1 - 5 files changed, 5 deletions(-)
diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c index 3ec131cbc6e1..fc2b0e227b29 100644 --- a/drivers/thermal/imx_scu_thermal.c +++ b/drivers/thermal/imx_scu_thermal.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 2f6343e7a180..ea1fcc3dcb29 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <div64.h> #include <fuse.h> #include <log.h> diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index ea6c8329c0a6..70d002aee25b 100644 --- a/drivers/thermal/imx_tmu.c +++ b/drivers/thermal/imx_tmu.c @@ -5,7 +5,6 @@ */
#include <config.h> -#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/thermal/thermal-uclass.c b/drivers/thermal/thermal-uclass.c index 700df8af2549..f0fe912e3131 100644 --- a/drivers/thermal/thermal-uclass.c +++ b/drivers/thermal/thermal-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_THERMAL
-#include <common.h> #include <dm.h> #include <thermal.h> #include <errno.h> diff --git a/drivers/thermal/thermal_sandbox.c b/drivers/thermal/thermal_sandbox.c index 7dc0d108b8ca..9af0d0247cbd 100644 --- a/drivers/thermal/thermal_sandbox.c +++ b/drivers/thermal/thermal_sandbox.c @@ -6,7 +6,6 @@ * Sandbox driver for the thermal uclass. */
-#include <common.h> #include <dm.h> #include <thermal.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Rick Chen rick@andestech.com Cc: Leo ycliang@andestech.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Michal Simek michal.simek@amd.com Cc: Mario Six mario.six@gdsys.cc Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Johan Jonker jbx6244@gmail.com Cc: Chanho Park chanho61.park@samsung.com Cc: Torsten Duwe duwe@lst.de Cc: Kuan Lim Lee kuanlim.lee@starfivetech.com Cc: Wei Liang Lim weiliang.lim@starfivetech.com Cc: Alex Bee knaerzche@gmail.com --- drivers/timer/altera_timer.c | 1 - drivers/timer/andes_plmt_timer.c | 1 - drivers/timer/arc_timer.c | 1 - drivers/timer/arm_global_timer.c | 2 +- drivers/timer/arm_twd_timer.c | 1 - drivers/timer/ast_timer.c | 1 - drivers/timer/atmel_pit_timer.c | 1 - drivers/timer/atmel_tcb_timer.c | 1 - drivers/timer/cadence-ttc.c | 1 - drivers/timer/dw-apb-timer.c | 1 - drivers/timer/fttmr010_timer.c | 1 - drivers/timer/imx-gpt-timer.c | 2 +- drivers/timer/mchp-pit64b-timer.c | 1 - drivers/timer/mpc83xx_timer.c | 2 +- drivers/timer/mtk_timer.c | 1 - drivers/timer/nomadik-mtu-timer.c | 1 - drivers/timer/npcm-timer.c | 1 - drivers/timer/omap-timer.c | 1 - drivers/timer/orion-timer.c | 2 +- drivers/timer/ostm_timer.c | 1 - drivers/timer/riscv_aclint_timer.c | 2 +- drivers/timer/riscv_timer.c | 2 +- drivers/timer/rockchip_timer.c | 1 - drivers/timer/sandbox_timer.c | 1 - drivers/timer/sp804_timer.c | 1 - drivers/timer/starfive-timer.c | 1 - drivers/timer/stm32_timer.c | 2 +- drivers/timer/tegra-timer.c | 1 - drivers/timer/timer-uclass.c | 1 - drivers/timer/tsc_timer.c | 1 - drivers/timer/xilinx-timer.c | 1 - 31 files changed, 7 insertions(+), 31 deletions(-)
diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c index 040dc65f48aa..ece246c23d2f 100644 --- a/drivers/timer/altera_timer.c +++ b/drivers/timer/altera_timer.c @@ -7,7 +7,6 @@ * Scott McNutt smcnutt@psyent.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/andes_plmt_timer.c b/drivers/timer/andes_plmt_timer.c index 42dd4b623176..20baaf61307a 100644 --- a/drivers/timer/andes_plmt_timer.c +++ b/drivers/timer/andes_plmt_timer.c @@ -8,7 +8,6 @@ * associated with timer tick. */
-#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/arc_timer.c b/drivers/timer/arc_timer.c index 497f8a04155f..413bcc32f01b 100644 --- a/drivers/timer/arc_timer.c +++ b/drivers/timer/arc_timer.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Synopsys, Inc. All rights reserved. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/arm_global_timer.c b/drivers/timer/arm_global_timer.c index 2e50d9fbc580..b8057929f997 100644 --- a/drivers/timer/arm_global_timer.c +++ b/drivers/timer/arm_global_timer.c @@ -6,7 +6,7 @@ * ARM Cortext A9 global timer driver */
-#include <common.h> +#include <config.h> #include <dm.h> #include <clk.h> #include <timer.h> diff --git a/drivers/timer/arm_twd_timer.c b/drivers/timer/arm_twd_timer.c index 40ccd1658749..2b2f35911738 100644 --- a/drivers/timer/arm_twd_timer.c +++ b/drivers/timer/arm_twd_timer.c @@ -27,7 +27,6 @@ * Alex Zuepke azu@sysgo.de */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <timer.h> diff --git a/drivers/timer/ast_timer.c b/drivers/timer/ast_timer.c index 78adc96cc596..6601cab7b165 100644 --- a/drivers/timer/ast_timer.c +++ b/drivers/timer/ast_timer.c @@ -3,7 +3,6 @@ * Copyright 2016 Google Inc. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/atmel_pit_timer.c b/drivers/timer/atmel_pit_timer.c index 5cf46f224ab0..0a367a5a7f4a 100644 --- a/drivers/timer/atmel_pit_timer.c +++ b/drivers/timer/atmel_pit_timer.c @@ -4,7 +4,6 @@ * Wenyou.Yang wenyou.yang@microchip.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/atmel_tcb_timer.c b/drivers/timer/atmel_tcb_timer.c index 8c17987c7d74..3a328b2f6c72 100644 --- a/drivers/timer/atmel_tcb_timer.c +++ b/drivers/timer/atmel_tcb_timer.c @@ -5,7 +5,6 @@ * Author: Clément Léger clement.leger@bootlin.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index 2eff45060ad6..3cffb1bb88db 100644 --- a/drivers/timer/cadence-ttc.c +++ b/drivers/timer/cadence-ttc.c @@ -3,7 +3,6 @@ * Copyright (C) 2018 Xilinx, Inc. (Michal Simek) */
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c index 0607f751ca70..77ccb98cb8df 100644 --- a/drivers/timer/dw-apb-timer.c +++ b/drivers/timer/dw-apb-timer.c @@ -5,7 +5,6 @@ * Copyright (C) 2018 Marek Vasut marex@denx.de */
-#include <common.h> #include <dm.h> #include <clk.h> #include <dt-structs.h> diff --git a/drivers/timer/fttmr010_timer.c b/drivers/timer/fttmr010_timer.c index b6289e646109..c41bbfc1d576 100644 --- a/drivers/timer/fttmr010_timer.c +++ b/drivers/timer/fttmr010_timer.c @@ -5,7 +5,6 @@ * * 23/08/2022 Port to DM */ -#include <common.h> #include <dm.h> #include <log.h> #include <timer.h> diff --git a/drivers/timer/imx-gpt-timer.c b/drivers/timer/imx-gpt-timer.c index 9c3b64ae5b1b..07b9fdb5e18c 100644 --- a/drivers/timer/imx-gpt-timer.c +++ b/drivers/timer/imx-gpt-timer.c @@ -4,7 +4,7 @@ * Author(s): Giulio Benetti giulio.benetti@benettiengineering.com */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/mchp-pit64b-timer.c b/drivers/timer/mchp-pit64b-timer.c index c9806d7eeebd..1a5b2e6a0dc8 100644 --- a/drivers/timer/mchp-pit64b-timer.c +++ b/drivers/timer/mchp-pit64b-timer.c @@ -7,7 +7,6 @@ * Author: Claudiu Beznea claudiu.beznea@microchip.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index 7814cb6a5d61..9da74479aaa6 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -4,7 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <irq_func.h> diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c index 223e63f6c1a2..8216c2898373 100644 --- a/drivers/timer/mtk_timer.c +++ b/drivers/timer/mtk_timer.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/nomadik-mtu-timer.c b/drivers/timer/nomadik-mtu-timer.c index 4d24de14ae69..9a05582c0d52 100644 --- a/drivers/timer/nomadik-mtu-timer.c +++ b/drivers/timer/nomadik-mtu-timer.c @@ -12,7 +12,6 @@ * Copyright (C) 2010 Linus Walleij for ST-Ericsson */
-#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/npcm-timer.c b/drivers/timer/npcm-timer.c index 4562a6f2311b..9463fd29ce81 100644 --- a/drivers/timer/npcm-timer.c +++ b/drivers/timer/npcm-timer.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index 9b6d97dae677..fda6356fdba8 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -5,7 +5,6 @@ * Copyright (C) 2015, Texas Instruments, Incorporated */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/orion-timer.c b/drivers/timer/orion-timer.c index 9cab27f2e48b..821b681a2326 100644 --- a/drivers/timer/orion-timer.c +++ b/drivers/timer/orion-timer.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ #include <asm/io.h> -#include <common.h> +#include <config.h> #include <div64.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/timer/ostm_timer.c b/drivers/timer/ostm_timer.c index 3bf0d4647b58..314f956cdfb7 100644 --- a/drivers/timer/ostm_timer.c +++ b/drivers/timer/ostm_timer.c @@ -5,7 +5,6 @@ * Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com */
-#include <common.h> #include <clock_legacy.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer/riscv_aclint_timer.c index 73fb87912851..35da1ea2fd2d 100644 --- a/drivers/timer/riscv_aclint_timer.c +++ b/drivers/timer/riscv_aclint_timer.c @@ -4,7 +4,7 @@ * Copyright (C) 2018, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> +#include <config.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index 169c03dcb5c1..1f4980ceb38f 100644 --- a/drivers/timer/riscv_timer.c +++ b/drivers/timer/riscv_timer.c @@ -10,7 +10,7 @@ * This driver provides generic timer support for S-mode U-Boot. */
-#include <common.h> +#include <config.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c index e66c49aa6bbd..96c010f4dcc8 100644 --- a/drivers/timer/rockchip_timer.c +++ b/drivers/timer/rockchip_timer.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index 1da7e0c3a768..e8b54a02965f 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Thomas Chou thomas@wytron.com.tw */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/sp804_timer.c b/drivers/timer/sp804_timer.c index 8fd4afb15a5b..a254e295cbfc 100644 --- a/drivers/timer/sp804_timer.c +++ b/drivers/timer/sp804_timer.c @@ -4,7 +4,6 @@ * Copyright (C) 2022 Arm Ltd. */
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/starfive-timer.c b/drivers/timer/starfive-timer.c index 6ac7d7f1d0ee..6b79c8858b55 100644 --- a/drivers/timer/starfive-timer.c +++ b/drivers/timer/starfive-timer.c @@ -4,7 +4,6 @@ * Author: Kuan Lim Lee kuanlim.lee@starfivetech.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <time.h> diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index 1213a14ef197..1dc21c5c1bed 100644 --- a/drivers/timer/stm32_timer.c +++ b/drivers/timer/stm32_timer.c @@ -6,7 +6,7 @@
#define LOG_CATEGORY UCLASS_TIMER
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/tegra-timer.c b/drivers/timer/tegra-timer.c index a867c649c3a8..3545424889d2 100644 --- a/drivers/timer/tegra-timer.c +++ b/drivers/timer/tegra-timer.c @@ -3,7 +3,6 @@ * Copyright (C) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index 60ff65529ab3..8305f06d3187 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_TIMER
-#include <common.h> #include <clk.h> #include <cpu.h> #include <dm.h> diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index f86a0b86921c..80c084f380d9 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -6,7 +6,6 @@ * arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c */
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <log.h> diff --git a/drivers/timer/xilinx-timer.c b/drivers/timer/xilinx-timer.c index 172fd9f9296e..54148aa1689b 100644 --- a/drivers/timer/xilinx-timer.c +++ b/drivers/timer/xilinx-timer.c @@ -7,7 +7,6 @@ * Michal SIMEK monstr@monstr.eu */
-#include <common.h> #include <dm.h> #include <timer.h> #include <regmap.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Tom Rini trini@konsulko.com Cc: Rick Chen rick@andestech.com Cc: Leo ycliang@andestech.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Eugen Hristev eugen.hristev@collabora.com Cc: Michal Simek michal.simek@amd.com Cc: Mario Six mario.six@gdsys.cc Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Marek Vasut marek.vasut+renesas@mailbox.org Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Sean Anderson seanga2@gmail.com Cc: Johan Jonker jbx6244@gmail.com Cc: Chanho Park chanho61.park@samsung.com Cc: Torsten Duwe duwe@lst.de Cc: Kuan Lim Lee kuanlim.lee@starfivetech.com Cc: Wei Liang Lim weiliang.lim@starfivetech.com Cc: Alex Bee knaerzche@gmail.com
drivers/timer/altera_timer.c | 1 - drivers/timer/andes_plmt_timer.c | 1 - drivers/timer/arc_timer.c | 1 - drivers/timer/arm_global_timer.c | 2 +- drivers/timer/arm_twd_timer.c | 1 - drivers/timer/ast_timer.c | 1 - drivers/timer/atmel_pit_timer.c | 1 - drivers/timer/atmel_tcb_timer.c | 1 - drivers/timer/cadence-ttc.c | 1 - drivers/timer/dw-apb-timer.c | 1 - drivers/timer/fttmr010_timer.c | 1 - drivers/timer/imx-gpt-timer.c | 2 +- drivers/timer/mchp-pit64b-timer.c | 1 - drivers/timer/mpc83xx_timer.c | 2 +- drivers/timer/mtk_timer.c | 1 - drivers/timer/nomadik-mtu-timer.c | 1 - drivers/timer/npcm-timer.c | 1 - drivers/timer/omap-timer.c | 1 - drivers/timer/orion-timer.c | 2 +- drivers/timer/ostm_timer.c | 1 - drivers/timer/riscv_aclint_timer.c | 2 +- drivers/timer/riscv_timer.c | 2 +- drivers/timer/rockchip_timer.c | 1 - drivers/timer/sandbox_timer.c | 1 - drivers/timer/sp804_timer.c | 1 - drivers/timer/starfive-timer.c | 1 - drivers/timer/stm32_timer.c | 2 +- drivers/timer/tegra-timer.c | 1 - drivers/timer/timer-uclass.c | 1 - drivers/timer/tsc_timer.c | 1 - drivers/timer/xilinx-timer.c | 1 - 31 files changed, 7 insertions(+), 31 deletions(-)
diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c index 040dc65f48aa..ece246c23d2f 100644 --- a/drivers/timer/altera_timer.c +++ b/drivers/timer/altera_timer.c @@ -7,7 +7,6 @@
- Scott McNutt smcnutt@psyent.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/andes_plmt_timer.c b/drivers/timer/andes_plmt_timer.c index 42dd4b623176..20baaf61307a 100644 --- a/drivers/timer/andes_plmt_timer.c +++ b/drivers/timer/andes_plmt_timer.c @@ -8,7 +8,6 @@
- associated with timer tick.
*/
-#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/arc_timer.c b/drivers/timer/arc_timer.c index 497f8a04155f..413bcc32f01b 100644 --- a/drivers/timer/arc_timer.c +++ b/drivers/timer/arc_timer.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Synopsys, Inc. All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/arm_global_timer.c b/drivers/timer/arm_global_timer.c index 2e50d9fbc580..b8057929f997 100644 --- a/drivers/timer/arm_global_timer.c +++ b/drivers/timer/arm_global_timer.c @@ -6,7 +6,7 @@
- ARM Cortext A9 global timer driver
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <clk.h> #include <timer.h> diff --git a/drivers/timer/arm_twd_timer.c b/drivers/timer/arm_twd_timer.c index 40ccd1658749..2b2f35911738 100644 --- a/drivers/timer/arm_twd_timer.c +++ b/drivers/timer/arm_twd_timer.c @@ -27,7 +27,6 @@
- Alex Zuepke azu@sysgo.de
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <timer.h> diff --git a/drivers/timer/ast_timer.c b/drivers/timer/ast_timer.c index 78adc96cc596..6601cab7b165 100644 --- a/drivers/timer/ast_timer.c +++ b/drivers/timer/ast_timer.c @@ -3,7 +3,6 @@
- Copyright 2016 Google Inc.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/atmel_pit_timer.c b/drivers/timer/atmel_pit_timer.c index 5cf46f224ab0..0a367a5a7f4a 100644 --- a/drivers/timer/atmel_pit_timer.c +++ b/drivers/timer/atmel_pit_timer.c @@ -4,7 +4,6 @@
Wenyou.Yang <wenyou.yang@microchip.com>
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/atmel_tcb_timer.c b/drivers/timer/atmel_tcb_timer.c index 8c17987c7d74..3a328b2f6c72 100644 --- a/drivers/timer/atmel_tcb_timer.c +++ b/drivers/timer/atmel_tcb_timer.c @@ -5,7 +5,6 @@
- Author: Clément Léger clement.leger@bootlin.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index 2eff45060ad6..3cffb1bb88db 100644 --- a/drivers/timer/cadence-ttc.c +++ b/drivers/timer/cadence-ttc.c @@ -3,7 +3,6 @@
- Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c index 0607f751ca70..77ccb98cb8df 100644 --- a/drivers/timer/dw-apb-timer.c +++ b/drivers/timer/dw-apb-timer.c @@ -5,7 +5,6 @@
- Copyright (C) 2018 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <dt-structs.h> diff --git a/drivers/timer/fttmr010_timer.c b/drivers/timer/fttmr010_timer.c index b6289e646109..c41bbfc1d576 100644 --- a/drivers/timer/fttmr010_timer.c +++ b/drivers/timer/fttmr010_timer.c @@ -5,7 +5,6 @@
- 23/08/2022 Port to DM
*/ -#include <common.h> #include <dm.h> #include <log.h> #include <timer.h> diff --git a/drivers/timer/imx-gpt-timer.c b/drivers/timer/imx-gpt-timer.c index 9c3b64ae5b1b..07b9fdb5e18c 100644 --- a/drivers/timer/imx-gpt-timer.c +++ b/drivers/timer/imx-gpt-timer.c @@ -4,7 +4,7 @@
- Author(s): Giulio Benetti giulio.benetti@benettiengineering.com
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/mchp-pit64b-timer.c b/drivers/timer/mchp-pit64b-timer.c index c9806d7eeebd..1a5b2e6a0dc8 100644 --- a/drivers/timer/mchp-pit64b-timer.c +++ b/drivers/timer/mchp-pit64b-timer.c @@ -7,7 +7,6 @@
- Author: Claudiu Beznea claudiu.beznea@microchip.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index 7814cb6a5d61..9da74479aaa6 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -4,7 +4,7 @@
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <irq_func.h> diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c index 223e63f6c1a2..8216c2898373 100644 --- a/drivers/timer/mtk_timer.c +++ b/drivers/timer/mtk_timer.c @@ -7,7 +7,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/nomadik-mtu-timer.c b/drivers/timer/nomadik-mtu-timer.c index 4d24de14ae69..9a05582c0d52 100644 --- a/drivers/timer/nomadik-mtu-timer.c +++ b/drivers/timer/nomadik-mtu-timer.c @@ -12,7 +12,6 @@
- Copyright (C) 2010 Linus Walleij for ST-Ericsson
*/
-#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/npcm-timer.c b/drivers/timer/npcm-timer.c index 4562a6f2311b..9463fd29ce81 100644 --- a/drivers/timer/npcm-timer.c +++ b/drivers/timer/npcm-timer.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Nuvoton Technology Corp.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index 9b6d97dae677..fda6356fdba8 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -5,7 +5,6 @@
- Copyright (C) 2015, Texas Instruments, Incorporated
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/orion-timer.c b/drivers/timer/orion-timer.c index 9cab27f2e48b..821b681a2326 100644 --- a/drivers/timer/orion-timer.c +++ b/drivers/timer/orion-timer.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ #include <asm/io.h> -#include <common.h> +#include <config.h> #include <div64.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/timer/ostm_timer.c b/drivers/timer/ostm_timer.c index 3bf0d4647b58..314f956cdfb7 100644 --- a/drivers/timer/ostm_timer.c +++ b/drivers/timer/ostm_timer.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 Marek Vasut marek.vasut@gmail.com
*/
-#include <common.h> #include <clock_legacy.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer/riscv_aclint_timer.c index 73fb87912851..35da1ea2fd2d 100644 --- a/drivers/timer/riscv_aclint_timer.c +++ b/drivers/timer/riscv_aclint_timer.c @@ -4,7 +4,7 @@
- Copyright (C) 2018, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> +#include <config.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index 169c03dcb5c1..1f4980ceb38f 100644 --- a/drivers/timer/riscv_timer.c +++ b/drivers/timer/riscv_timer.c @@ -10,7 +10,7 @@
- This driver provides generic timer support for S-mode U-Boot.
*/
-#include <common.h> +#include <config.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c index e66c49aa6bbd..96c010f4dcc8 100644 --- a/drivers/timer/rockchip_timer.c +++ b/drivers/timer/rockchip_timer.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index 1da7e0c3a768..e8b54a02965f 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Thomas Chou thomas@wytron.com.tw
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/sp804_timer.c b/drivers/timer/sp804_timer.c index 8fd4afb15a5b..a254e295cbfc 100644 --- a/drivers/timer/sp804_timer.c +++ b/drivers/timer/sp804_timer.c @@ -4,7 +4,6 @@
- Copyright (C) 2022 Arm Ltd.
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/starfive-timer.c b/drivers/timer/starfive-timer.c index 6ac7d7f1d0ee..6b79c8858b55 100644 --- a/drivers/timer/starfive-timer.c +++ b/drivers/timer/starfive-timer.c @@ -4,7 +4,6 @@
- Author: Kuan Lim Lee kuanlim.lee@starfivetech.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <time.h> diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index 1213a14ef197..1dc21c5c1bed 100644 --- a/drivers/timer/stm32_timer.c +++ b/drivers/timer/stm32_timer.c @@ -6,7 +6,7 @@
#define LOG_CATEGORY UCLASS_TIMER
-#include <common.h> +#include <config.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/tegra-timer.c b/drivers/timer/tegra-timer.c index a867c649c3a8..3545424889d2 100644 --- a/drivers/timer/tegra-timer.c +++ b/drivers/timer/tegra-timer.c @@ -3,7 +3,6 @@
- Copyright (C) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index 60ff65529ab3..8305f06d3187 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_TIMER
-#include <common.h> #include <clk.h> #include <cpu.h> #include <dm.h> diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index f86a0b86921c..80c084f380d9 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -6,7 +6,6 @@
- arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <log.h> diff --git a/drivers/timer/xilinx-timer.c b/drivers/timer/xilinx-timer.c index 172fd9f9296e..54148aa1689b 100644 --- a/drivers/timer/xilinx-timer.c +++ b/drivers/timer/xilinx-timer.c @@ -7,7 +7,6 @@
- Michal SIMEK monstr@monstr.eu
*/
-#include <common.h> #include <dm.h> #include <timer.h> #include <regmap.h>

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

On Thu, 2 May 2024 at 04:34, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Ilias Apalodimas ilias.apalodimas@linaro.org Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org
drivers/tpm/cr50_i2c.c | 2 +- drivers/tpm/sandbox_common.c | 1 - drivers/tpm/tpm-uclass.c | 2 +- drivers/tpm/tpm2_ftpm_tee.c | 1 - drivers/tpm/tpm2_tis_core.c | 2 +- drivers/tpm/tpm2_tis_i2c.c | 1 - drivers/tpm/tpm2_tis_mmio.c | 1 - drivers/tpm/tpm2_tis_sandbox.c | 1 - drivers/tpm/tpm2_tis_spi.c | 2 +- drivers/tpm/tpm_atmel_twi.c | 2 +- drivers/tpm/tpm_tis_infineon.c | 2 +- drivers/tpm/tpm_tis_lpc.c | 1 - drivers/tpm/tpm_tis_sandbox.c | 1 - drivers/tpm/tpm_tis_st33zp24_i2c.c | 1 - drivers/tpm/tpm_tis_st33zp24_spi.c | 1 - 15 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c index acf4c7859a9f..08ec179346e2 100644 --- a/drivers/tpm/cr50_i2c.c +++ b/drivers/tpm/cr50_i2c.c @@ -7,12 +7,12 @@
#define LOG_CATEGORY UCLASS_TPM
-#include <common.h> #include <dm.h> #include <i2c.h> #include <irq.h> #include <log.h> #include <spl.h> +#include <time.h> #include <tpm-common.h> #include <tpm-v2.h> #include <acpi/acpigen.h> diff --git a/drivers/tpm/sandbox_common.c b/drivers/tpm/sandbox_common.c index 7e0b2502e35d..596e01563899 100644 --- a/drivers/tpm/sandbox_common.c +++ b/drivers/tpm/sandbox_common.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_TPM
-#include <common.h> #include <tpm-v1.h> #include <tpm-v2.h> #include <asm/unaligned.h> diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c index b2286f7e7edc..0fade2dcc0ad 100644 --- a/drivers/tpm/tpm-uclass.c +++ b/drivers/tpm/tpm-uclass.c @@ -6,9 +6,9 @@
#define LOG_CATEGORY UCLASS_TPM
-#include <common.h> #include <dm.h> #include <log.h> +#include <time.h> #include <tpm_api.h> #include <tpm-v1.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c index c61ff2c2af63..f2ced50c4eb7 100644 --- a/drivers/tpm/tpm2_ftpm_tee.c +++ b/drivers/tpm/tpm2_ftpm_tee.c @@ -13,7 +13,6 @@
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_tis_core.c b/drivers/tpm/tpm2_tis_core.c index 81b9210056db..680a6409433e 100644 --- a/drivers/tpm/tpm2_tis_core.c +++ b/drivers/tpm/tpm2_tis_core.c @@ -5,8 +5,8 @@
- Based on the Linux TIS core interface and U-Boot original SPI TPM driver
*/
-#include <common.h> #include <dm.h> +#include <time.h> #include <tpm-v2.h> #include <linux/delay.h> #include <linux/unaligned/be_byteshift.h> diff --git a/drivers/tpm/tpm2_tis_i2c.c b/drivers/tpm/tpm2_tis_i2c.c index 99d1cf218daf..93efccc77575 100644 --- a/drivers/tpm/tpm2_tis_i2c.c +++ b/drivers/tpm/tpm2_tis_i2c.c @@ -3,7 +3,6 @@
- Copyright 2022 IBM Corp.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> diff --git a/drivers/tpm/tpm2_tis_mmio.c b/drivers/tpm/tpm2_tis_mmio.c index a646ce41ff4e..dee5503c055f 100644 --- a/drivers/tpm/tpm2_tis_mmio.c +++ b/drivers/tpm/tpm2_tis_mmio.c @@ -5,7 +5,6 @@
- Specifications at www.trustedcomputinggroup.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c index d15a28d9fc82..50e308e71161 100644 --- a/drivers/tpm/tpm2_tis_sandbox.c +++ b/drivers/tpm/tpm2_tis_sandbox.c @@ -4,7 +4,6 @@
- Author: Miquel Raynal miquel.raynal@bootlin.com
*/
-#include <common.h> #include <dm.h> #include <tpm-v2.h> #include <asm/state.h> diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c index de9cf8f21e07..28079b5039a3 100644 --- a/drivers/tpm/tpm2_tis_spi.c +++ b/drivers/tpm/tpm2_tis_spi.c @@ -13,11 +13,11 @@
- It is based on the U-Boot driver tpm_tis_infineon_i2c.c.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> #include <spi.h> +#include <time.h> #include <tpm-v2.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c index fd2a45d34b03..05dd66525c77 100644 --- a/drivers/tpm/tpm_atmel_twi.c +++ b/drivers/tpm/tpm_atmel_twi.c @@ -5,11 +5,11 @@
- Written by Dirk Eibach dirk.eibach@gdsys.cc
*/
-#include <common.h> #include <display_options.h> #include <dm.h> #include <tpm-v1.h> #include <i2c.h> +#include <time.h> #include <asm/unaligned.h> #include <linux/delay.h>
diff --git a/drivers/tpm/tpm_tis_infineon.c b/drivers/tpm/tpm_tis_infineon.c index 16f4af0e331e..e2f6238cbc71 100644 --- a/drivers/tpm/tpm_tis_infineon.c +++ b/drivers/tpm/tpm_tis_infineon.c @@ -19,11 +19,11 @@
- Version: 2.1.1
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> #include <log.h> +#include <time.h> #include <tpm-v1.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c index 13a133d58ebd..dec7acb0c7b1 100644 --- a/drivers/tpm/tpm_tis_lpc.c +++ b/drivers/tpm/tpm_tis_lpc.c @@ -12,7 +12,6 @@
- slb9635), so this driver provides access to locality 0 only.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c index 7350e1c4d525..2bc7dc87ed30 100644 --- a/drivers/tpm/tpm_tis_sandbox.c +++ b/drivers/tpm/tpm_tis_sandbox.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <display_options.h> #include <dm.h> #include <tpm-v1.h> diff --git a/drivers/tpm/tpm_tis_st33zp24_i2c.c b/drivers/tpm/tpm_tis_st33zp24_i2c.c index e0eeabb93371..1a265b28b22f 100644 --- a/drivers/tpm/tpm_tis_st33zp24_i2c.c +++ b/drivers/tpm/tpm_tis_st33zp24_i2c.c @@ -12,7 +12,6 @@
- STMicroelectronics Protocol Stack Specification version 1.2.0.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> diff --git a/drivers/tpm/tpm_tis_st33zp24_spi.c b/drivers/tpm/tpm_tis_st33zp24_spi.c index f0de8a65b093..2cf690328d87 100644 --- a/drivers/tpm/tpm_tis_st33zp24_spi.c +++ b/drivers/tpm/tpm_tis_st33zp24_spi.c @@ -12,7 +12,6 @@
- STMicroelectronics Protocol Stack Specification version 1.2.0.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h>
#include <log.h>
2.34.1
Reviewed-by: Ilias Apalodimas ilias.apalodimas@linaro.org

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Bhupesh Sharma bhupesh.linux@gmail.com Cc: Neha Malcom Francis n-francis@ti.com Cc: Tom Rini trini@konsulko.com --- drivers/ufs/cdns-platform.c | 1 - drivers/ufs/ti-j721e-ufs.c | 1 - drivers/ufs/ufs-pci.c | 1 - drivers/ufs/ufs-uclass.c | 1 - drivers/ufs/ufs.c | 1 - drivers/ufs/ufs.h | 1 + 6 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/ufs/cdns-platform.c b/drivers/ufs/cdns-platform.c index d1f346937c5d..510a6a6aa5dd 100644 --- a/drivers/ufs/cdns-platform.c +++ b/drivers/ufs/cdns-platform.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <ufs.h> #include <asm/io.h> diff --git a/drivers/ufs/ti-j721e-ufs.c b/drivers/ufs/ti-j721e-ufs.c index 1860e0dca299..c5c08610ffd0 100644 --- a/drivers/ufs/ti-j721e-ufs.c +++ b/drivers/ufs/ti-j721e-ufs.c @@ -5,7 +5,6 @@
#include <asm/io.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/ufs/ufs-pci.c b/drivers/ufs/ufs-pci.c index ad41358727a5..871f3f50f5ca 100644 --- a/drivers/ufs/ufs-pci.c +++ b/drivers/ufs/ufs-pci.c @@ -4,7 +4,6 @@ * Author: Bin Meng bmeng@tinylab.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/ufs/ufs-uclass.c b/drivers/ufs/ufs-uclass.c index 92fcdf4e6cb7..334bfcfa06a4 100644 --- a/drivers/ufs/ufs-uclass.c +++ b/drivers/ufs/ufs-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_UFS
-#include <common.h> #include "ufs.h" #include <dm.h>
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index e4400f319a78..be64bf971f16 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -10,7 +10,6 @@
#include <bouncebuf.h> #include <charset.h> -#include <common.h> #include <dm.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h index 816a5ce0cafc..43042c294bba 100644 --- a/drivers/ufs/ufs.h +++ b/drivers/ufs/ufs.h @@ -2,6 +2,7 @@ #ifndef __UFS_H #define __UFS_H
+#include <linux/types.h> #include "unipro.h"
struct udevice;

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Marek Vasut marex@denx.de Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Lukasz Majewski lukma@denx.de Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Eddie Cai eddie.cai.linux@gmail.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nishanth Menon nm@ti.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Roger Quadros rogerq@kernel.org Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Jagan Teki jagan@amarulasolutions.com Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Peter Korsgaard peter@korsgaard.com Cc: Oleksandr Suvorov oleksandr.suvorov@foundries.io Cc: Alexey Romanov avromanov@salutedevices.com Cc: Sean Anderson seanga2@gmail.com Cc: Miquel Raynal miquel.raynal@bootlin.com Cc: Teik Heng Chong teik.heng.chong@intel.com Cc: Tim Harvey tharvey@gateworks.com Cc: Mathieu Othacehe othacehe@gnu.org Cc: Fabio Estevam festevam@gmail.com Cc: Johan Jonker jbx6244@gmail.com Cc: Xavier Drudis Ferran xdrudis@tinet.cat Cc: Fabrice Gasnier fabrice.gasnier@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Sam Edwards cfsworks@gmail.com Cc: Andre Przywara andre.przywara@arm.com --- drivers/usb/cdns3/cdns3-ti.c | 1 - drivers/usb/cdns3/core.c | 1 - drivers/usb/common/common.c | 1 - drivers/usb/common/fsl-dt-fixup.c | 1 - drivers/usb/common/fsl-errata.c | 1 - drivers/usb/dwc3/core.c | 1 - drivers/usb/dwc3/dwc3-generic.c | 1 - drivers/usb/dwc3/dwc3-layerscape.c | 1 - drivers/usb/dwc3/dwc3-meson-g12a.c | 1 - drivers/usb/dwc3/dwc3-meson-gxl.c | 1 - drivers/usb/dwc3/dwc3-omap.c | 1 - drivers/usb/dwc3/ep0.c | 1 - drivers/usb/dwc3/gadget.c | 1 - drivers/usb/dwc3/samsung_usb_phy.c | 2 +- drivers/usb/dwc3/ti_usb_phy.c | 1 - drivers/usb/emul/sandbox_flash.c | 1 - drivers/usb/emul/sandbox_hub.c | 1 - drivers/usb/emul/sandbox_keyb.c | 1 - drivers/usb/emul/usb-emul-uclass.c | 1 - drivers/usb/eth/asix.c | 1 - drivers/usb/eth/asix88179.c | 1 - drivers/usb/eth/mcs7830.c | 1 - drivers/usb/eth/r8152.c | 1 - drivers/usb/eth/r8152_fw.c | 1 - drivers/usb/eth/smsc95xx.c | 1 - drivers/usb/eth/usb_ether.c | 1 - drivers/usb/gadget/at91_udc.c | 1 - drivers/usb/gadget/atmel_usba_udc.c | 1 - drivers/usb/gadget/bcm_udc_otg_phy.c | 1 - drivers/usb/gadget/ci_udc.c | 1 - drivers/usb/gadget/config.c | 1 - drivers/usb/gadget/dwc2_udc_otg.c | 1 - drivers/usb/gadget/dwc2_udc_otg_phy.c | 1 - drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 - drivers/usb/gadget/ep0.c | 1 - drivers/usb/gadget/epautoconf.c | 1 - drivers/usb/gadget/ether.c | 1 - drivers/usb/gadget/f_acm.c | 1 - drivers/usb/gadget/f_dfu.c | 1 - drivers/usb/gadget/f_fastboot.c | 1 - drivers/usb/gadget/f_mass_storage.c | 1 - drivers/usb/gadget/f_rockusb.c | 1 - drivers/usb/gadget/f_sdp.c | 1 - drivers/usb/gadget/f_thor.c | 1 - drivers/usb/gadget/g_dnl.c | 1 - drivers/usb/gadget/max3420_udc.c | 1 - drivers/usb/gadget/rndis.c | 1 - drivers/usb/gadget/udc/udc-core.c | 1 - drivers/usb/gadget/udc/udc-uclass.c | 1 - drivers/usb/gadget/usbstring.c | 1 - drivers/usb/host/dwc2.c | 1 - drivers/usb/host/dwc3-of-simple.c | 1 - drivers/usb/host/dwc3-sti-glue.c | 1 - drivers/usb/host/ehci-atmel.c | 1 - drivers/usb/host/ehci-exynos.c | 1 - drivers/usb/host/ehci-fsl.c | 1 - drivers/usb/host/ehci-generic.c | 1 - drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/ehci-marvell.c | 1 - drivers/usb/host/ehci-msm.c | 1 - drivers/usb/host/ehci-mx5.c | 1 - drivers/usb/host/ehci-mx6.c | 1 - drivers/usb/host/ehci-mxs.c | 1 - drivers/usb/host/ehci-npcm.c | 1 - drivers/usb/host/ehci-omap.c | 2 +- drivers/usb/host/ehci-pci.c | 1 - drivers/usb/host/ehci-tegra.c | 1 - drivers/usb/host/ehci-vf.c | 1 - drivers/usb/host/ehci-zynq.c | 1 - drivers/usb/host/ohci-at91.c | 1 - drivers/usb/host/ohci-da8xx.c | 1 - drivers/usb/host/ohci-generic.c | 1 - drivers/usb/host/ohci-hcd.c | 2 +- drivers/usb/host/ohci-lpc32xx.c | 1 - drivers/usb/host/ohci-npcm.c | 1 - drivers/usb/host/ohci-pci.c | 1 - drivers/usb/host/r8a66597-hcd.c | 1 - drivers/usb/host/usb-sandbox.c | 1 - drivers/usb/host/usb-uclass.c | 1 - drivers/usb/host/usb_bootdev.c | 1 - drivers/usb/host/xhci-brcm.c | 1 - drivers/usb/host/xhci-dwc3.c | 1 - drivers/usb/host/xhci-exynos5.c | 1 - drivers/usb/host/xhci-fsl.c | 1 - drivers/usb/host/xhci-mem.c | 1 - drivers/usb/host/xhci-mtk.c | 1 - drivers/usb/host/xhci-mvebu.c | 1 - drivers/usb/host/xhci-omap.c | 1 - drivers/usb/host/xhci-pci.c | 1 - drivers/usb/host/xhci-rcar.c | 1 - drivers/usb/host/xhci-ring.c | 1 - drivers/usb/host/xhci.c | 1 - drivers/usb/isp1760/isp1760-hcd.c | 1 - drivers/usb/isp1760/isp1760-if.c | 1 - drivers/usb/isp1760/isp1760-uboot.c | 1 - drivers/usb/mtu3/mtu3_plat.c | 1 - drivers/usb/musb-new/am35x.c | 1 - drivers/usb/musb-new/da8xx.c | 1 - drivers/usb/musb-new/mt85xx.c | 1 - drivers/usb/musb-new/musb_core.c | 1 - drivers/usb/musb-new/musb_dsps.c | 1 - drivers/usb/musb-new/musb_gadget.c | 1 - drivers/usb/musb-new/musb_gadget_ep0.c | 1 - drivers/usb/musb-new/musb_host.c | 1 - drivers/usb/musb-new/musb_uboot.c | 1 - drivers/usb/musb-new/omap2430.c | 1 - drivers/usb/musb-new/pic32.c | 1 - drivers/usb/musb-new/sunxi.c | 1 - drivers/usb/musb-new/ti-musb.c | 1 - drivers/usb/musb-new/ux500.c | 1 - drivers/usb/musb/am35x.c | 1 - drivers/usb/musb/musb_core.c | 1 - drivers/usb/musb/musb_hcd.c | 1 - drivers/usb/musb/musb_udc.c | 1 - drivers/usb/phy/rockchip_usb2_phy.c | 1 - drivers/usb/ulpi/omap-ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi.c | 1 - 118 files changed, 3 insertions(+), 118 deletions(-)
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index 2e44aadea47b..ac072260c30a 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -5,7 +5,6 @@ * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 12a741c6ea7c..b4e931646b88 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -11,7 +11,6 @@ * Roger Quadros rogerq@ti.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 7137a569d97c..13e9a61072a9 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -6,7 +6,6 @@ * Texas Instruments Incorporated, <www.ti.com> */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <linux/printk.h> diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c index 00b8cd368b1a..6a68bd76c274 100644 --- a/drivers/usb/common/fsl-dt-fixup.c +++ b/drivers/usb/common/fsl-dt-fixup.c @@ -7,7 +7,6 @@ * Author: Tor Krill tor@excito.com */
-#include <common.h> #include <log.h> #include <usb.h> #include <asm/io.h> diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 9eb1d2306725..89ae73f2ba48 100644 --- a/drivers/usb/common/fsl-errata.c +++ b/drivers/usb/common/fsl-errata.c @@ -5,7 +5,6 @@ * Copyright 2013 Freescale Semiconductor, Inc. */
-#include <common.h> #include <hwconfig.h> #include <fsl_errata.h> #include<fsl_usb.h> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 96e850b7170f..c443d56746dd 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -13,7 +13,6 @@ * commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 7a00529a2a8e..8db678eb85d4 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -7,7 +7,6 @@ * Based on dwc3-omap.c. */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <dm.h> diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c index c32df2396d74..ff83bf71e898 100644 --- a/drivers/usb/dwc3/dwc3-layerscape.c +++ b/drivers/usb/dwc3/dwc3-layerscape.c @@ -7,7 +7,6 @@ * Based on dwc3-generic.c. */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 1a3e9350c46d..21e4f637bb15 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <log.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c index 2ce915701a85..3e693c5ff310 100644 --- a/drivers/usb/dwc3/dwc3-meson-gxl.c +++ b/drivers/usb/dwc3/dwc3-meson-gxl.c @@ -7,7 +7,6 @@ */
#define DEBUG -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 53c4d4826b45..4b219c35eb35 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -13,7 +13,6 @@ * commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete() */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 1133cf82b1ae..117d38a0340b 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -12,7 +12,6 @@ * * commit c00552ebaf : Merge 3.18-rc7 into usb-next */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 406d36ceafe4..4de007cb0c38 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -13,7 +13,6 @@ * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/samsung_usb_phy.c b/drivers/usb/dwc3/samsung_usb_phy.c index abbd41368901..0a7713081636 100644 --- a/drivers/usb/dwc3/samsung_usb_phy.c +++ b/drivers/usb/dwc3/samsung_usb_phy.c @@ -7,7 +7,7 @@ * Author: Joonyoung Shim jy0922.shim@samsung.com */
-#include <common.h> +#include <asm/io.h> #include <asm/arch/power.h> #include <asm/arch/xhci-exynos.h> #include <linux/delay.h> diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index 8ae130860f79..f0ecdea958ae 100644 --- a/drivers/usb/dwc3/ti_usb_phy.c +++ b/drivers/usb/dwc3/ti_usb_phy.c @@ -16,7 +16,6 @@ * and remove" for phy-omap-usb2.c */
-#include <common.h> #include <malloc.h> #include <ti-usb-phy-uboot.h> #include <dm/device_compat.h> diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 7c5c1ab3de73..24420e3d51e1 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 084cc16cc683..3b3e59f978f7 100644 --- a/drivers/usb/emul/sandbox_hub.c +++ b/drivers/usb/emul/sandbox_hub.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c index 5ec1e98e4ed4..db769883ba3b 100644 --- a/drivers/usb/emul/sandbox_keyb.c +++ b/drivers/usb/emul/sandbox_keyb.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <os.h> diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c index b31dc950e3ab..cdc18d6cbb97 100644 --- a/drivers/usb/emul/usb-emul-uclass.c +++ b/drivers/usb/emul/usb-emul-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_EMUL
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 26dd312b7d06..c5a01ec922be 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -5,7 +5,6 @@ * Patched for AX88772B by Antmicro Ltd <www.antmicro.com> */
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c index 2e737e606685..7bfd285b3aa4 100644 --- a/drivers/usb/eth/asix88179.c +++ b/drivers/usb/eth/asix88179.c @@ -5,7 +5,6 @@ * from the Linux AX88179_178a driver */
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c index d94204f22d5f..199fb7a5d08e 100644 --- a/drivers/usb/eth/mcs7830.c +++ b/drivers/usb/eth/mcs7830.c @@ -9,7 +9,6 @@ * MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 3c866f4f1e2d..e3f20e08c33c 100644 --- a/drivers/usb/eth/r8152.c +++ b/drivers/usb/eth/r8152.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index a41abed3069a..3159f3010602 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved. * */ -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index de6586e62639..b4fcb2c2bb0d 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -6,7 +6,6 @@ * Copyright (C) 2007-2008 SMSC (Steve Glendinning) */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c index 2e9af54fd63d..8bba3e0974e6 100644 --- a/drivers/usb/eth/usb_ether.c +++ b/drivers/usb/eth/usb_ether.c @@ -3,7 +3,6 @@ * Copyright (c) 2011 The Chromium OS Authors. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index e573a03477b9..86b2cbf3f6ae 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -13,7 +13,6 @@ #undef VERBOSE_DEBUG #undef PACKET_TRACE
-#include <common.h> #include <dm/devres.h> #include <linux/bug.h> #include <linux/err.h> diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 4c420747b0b6..f99553df8d49 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -7,7 +7,6 @@ * Bo Shen voice.shen@atmel.com */
-#include <common.h> #include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c b/drivers/usb/gadget/bcm_udc_otg_phy.c index c89cd57c253d..9875191091cc 100644 --- a/drivers/usb/gadget/bcm_udc_otg_phy.c +++ b/drivers/usb/gadget/bcm_udc_otg_phy.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <asm/io.h> #include <asm/arch/sysmap.h> #include <asm/kona-common/clk.h> diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 750d47148798..bbe03cfff1fb 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -7,7 +7,6 @@ * Murray.Jensen@cmst.csiro.au, 27-Jan-01. */
-#include <common.h> #include <command.h> #include <config.h> #include <cpu_func.h> diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index e96782644f31..1363ef9e73df 100644 --- a/drivers/usb/gadget/config.c +++ b/drivers/usb/gadget/config.c @@ -8,7 +8,6 @@ * Remy Bohmer linux@bohmer.net */
-#include <common.h> #include <asm/unaligned.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 27082f5152cb..6bd395a6235a 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -17,7 +17,6 @@ * Lukasz Majewski l.majewski@samsumg.com */ #undef DEBUG -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c index 7f8e9564b9e5..c7eea7b34421 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_phy.c +++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c @@ -17,7 +17,6 @@ * Lukasz Majewski l.majewski@samsumg.com */
-#include <common.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c index 1c34b753511d..16b2a03f9e4b 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c @@ -17,7 +17,6 @@ * Lukasz Majewski l.majewski@samsumg.com */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <linux/bug.h> diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c index c256cc31fbd2..9d08640ff23a 100644 --- a/drivers/usb/gadget/ep0.c +++ b/drivers/usb/gadget/ep0.c @@ -36,7 +36,6 @@ * XXX */
-#include <common.h> #include <serial.h> #include <usbdevice.h>
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index bb0d2971d06b..0a70035ce04b 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -8,7 +8,6 @@ * Remy Bohmer linux@bohmer.net */
-#include <common.h> #include <linux/usb/ch9.h> #include <linux/errno.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 36618f0bdf36..b8b29d399b13 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -7,7 +7,6 @@ * Copyright (C) 2008 Nokia Corporation */
-#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index ba216128ab27..f18c6a0a7611 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -10,7 +10,6 @@ */
#include <circbuf.h> -#include <common.h> #include <console.h> #include <errno.h> #include <g_dnl.h> diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 44877df4ec6b..ca8b36e077bc 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -16,7 +16,6 @@
#include <env.h> #include <errno.h> -#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 09e740cc9622..8df0e3f331d1 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -11,7 +11,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <fastboot.h> diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index ef90c7ec7fb5..89a96dbb7a74 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -244,7 +244,6 @@ #include <hexdump.h> #include <log.h> #include <malloc.h> -#include <common.h> #include <console.h> #include <g_dnl.h> #include <dm/devres.h> diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index 98a7ffa2a752..d679cdae97c8 100644 --- a/drivers/usb/gadget/f_rockusb.c +++ b/drivers/usb/gadget/f_rockusb.c @@ -6,7 +6,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index ca2760c00d0d..89496917a61f 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -17,7 +17,6 @@ */
#include <errno.h> -#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 0e7529dcdbb6..543721183480 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -15,7 +15,6 @@ */
#include <command.h> -#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index afb7b74f3057..b5b5f5d8c118 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -6,7 +6,6 @@ * Lukasz Majewski l.majewski@samsung.com */
-#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/max3420_udc.c b/drivers/usb/gadget/max3420_udc.c index fa655c98dcc5..5a227c0ffd99 100644 --- a/drivers/usb/gadget/max3420_udc.c +++ b/drivers/usb/gadget/max3420_udc.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <linux/errno.h> #include <linux/delay.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index e7276ccd37a3..5e6e5a054ca7 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c @@ -18,7 +18,6 @@ * updates to merge with Linux 2.6, better match RNDIS spec */
-#include <common.h> #include <log.h> #include <net.h> #include <malloc.h> diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index ba658d922966..6bb419ae2abc 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -19,7 +19,6 @@ #include <malloc.h> #include <asm/cache.h> #include <linux/dma-mapping.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 30ee1cab0668..5dc23a55bb58 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/printk.h> diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index e2464ad923f8..4617a95bd0a7 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c @@ -6,7 +6,6 @@ * Remy Bohmer linux@bohmer.net */
-#include <common.h> #include <linux/errno.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 637eb2dd06f5..a9dbb85f4e6c 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -4,7 +4,6 @@ * Copyright (C) 2014 Marek Vasut marex@denx.de */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index f9df59d2e5d7..d52e7d22d1a7 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -10,7 +10,6 @@ * Author: Neil Armstrong narmstron@baylibre.com */
-#include <common.h> #include <dm.h> #include <reset.h> #include <clk.h> diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 4a3ab6111276..3e6834e38e38 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -6,7 +6,6 @@ * Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics. */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index c6d50fd4551a..ee751224463a 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -5,7 +5,6 @@ * Written-by: Bo Shen voice.shen@atmel.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index c1cdd4b0889a..1e4a5a0b6f6c 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -6,7 +6,6 @@ * Vivek Gautam gautam.vivek@samsung.com */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 0569dd54fff9..ee3eb065b142 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -7,7 +7,6 @@ * Author: Tor Krill tor@excito.com */
-#include <common.h> #include <env.h> #include <log.h> #include <pci.h> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 936e30438d9f..23c3ed25554f 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com */
-#include <common.h> #include <clk.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 9839aa17492d..7d5519c65a9e 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -6,7 +6,6 @@ * * All rights reserved. */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c index 6093c8fb0b68..ca0ab57d49c2 100644 --- a/drivers/usb/host/ehci-marvell.c +++ b/drivers/usb/host/ehci-marvell.c @@ -5,7 +5,6 @@ * Written-by: Prafulla Wadaskar prafulla@marvell.com */
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 98fe7bc3bcb1..a081f71b187d 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -7,7 +7,6 @@ * Based on Linux driver */
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index c11279867c7c..fb912654097e 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -4,7 +4,6 @@ * Copyright (C) 2010 Freescale Semiconductor, Inc. */
-#include <common.h> #include <log.h> #include <usb.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index a35fcca43a23..31cd8a50f4a2 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -4,7 +4,6 @@ * Copyright (C) 2010 Freescale Semiconductor, Inc. */
-#include <common.h> #include <clk.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c index ddf7cc2d00a7..95af5c9254cb 100644 --- a/drivers/usb/host/ehci-mxs.c +++ b/drivers/usb/host/ehci-mxs.c @@ -6,7 +6,6 @@ * on behalf of DENX Software Engineering GmbH */
-#include <common.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-npcm.c b/drivers/usb/host/ehci-npcm.c index 357a5614edb7..d2a9965b4b4f 100644 --- a/drivers/usb/host/ehci-npcm.c +++ b/drivers/usb/host/ehci-npcm.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 765336a3c42b..a95fcad02131 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -10,8 +10,8 @@ * */
-#include <common.h> #include <log.h> +#include <time.h> #include <usb.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index e98ab312618d..572686580cd5 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -4,7 +4,6 @@ * All rights reserved. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 2cf16256703d..343893b9f19a 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -5,7 +5,6 @@ * Copyright (c) 2013 Lucas Stach */
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 648e136447d9..5afe28ea3033 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -6,7 +6,6 @@ * Based on ehci-mx6 driver */
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c index f7e458cb15a2..dfaff5c60f4e 100644 --- a/drivers/usb/host/ehci-zynq.c +++ b/drivers/usb/host/ehci-zynq.c @@ -5,7 +5,6 @@ * USB Low level initialization(Specific to zynq) */
-#include <common.h> #include <dm.h> #include <usb.h> #include <asm/arch/hardware.h> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 9b955c1bd678..b170f26e6c6a 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -4,7 +4,6 @@ * DENX Software Engineering mk@denx.de */
-#include <common.h> #include <asm/arch/clk.h>
int usb_cpu_init(void) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d3d73d238442..d321d147c2f9 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -3,7 +3,6 @@ * Copyright (C) 2012 Sughosh Ganu urwithsughosh@gmail.com */
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c index ceed1911a95a..f1325cd49534 100644 --- a/drivers/usb/host/ohci-generic.c +++ b/drivers/usb/host/ohci-generic.c @@ -3,7 +3,6 @@ * Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 3f4418198ccd..c020d13c43d2 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -27,7 +27,7 @@ * to activate workaround for bug #41 or this driver will NOT work! */
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <asm/byteorder.h> #include <dm.h> diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/host/ohci-lpc32xx.c index a04b2961b961..ed04cae7afed 100644 --- a/drivers/usb/host/ohci-lpc32xx.c +++ b/drivers/usb/host/ohci-lpc32xx.c @@ -7,7 +7,6 @@ * Copyright (c) 2015 Tyco Fire Protection Products. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ohci-npcm.c b/drivers/usb/host/ohci-npcm.c index 9e1d52988099..ffeb6bc206a8 100644 --- a/drivers/usb/host/ohci-npcm.c +++ b/drivers/usb/host/ohci-npcm.c @@ -3,7 +3,6 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f061aec28966..f10f10924205 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -5,7 +5,6 @@ * */
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 3ccbc16da379..f0b18bffba41 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -5,7 +5,6 @@ * Copyright (C) 2008 Yoshihiro Shimoda shimoda.yoshihiro@renesas.com */
-#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index 3d4f8d653b5d..e26f0b292ed5 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index a1cd0ad2d669..cd3a07e4c374 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c index 7fa1c601dff5..362b46dc466e 100644 --- a/drivers/usb/host/usb_bootdev.c +++ b/drivers/usb/host/usb_bootdev.c @@ -6,7 +6,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c index fe17924028cd..2ffad148dea6 100644 --- a/drivers/usb/host/xhci-brcm.c +++ b/drivers/usb/host/xhci-brcm.c @@ -3,7 +3,6 @@ * Copyright (C) 2019 Broadcom. */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 6cebe1cc30cb..e3e0ceff43e6 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 270be934e7fc..6a2d422c4b8e 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -12,7 +12,6 @@ * exynos5 specific PHY-init sequence. */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index e67e09e31e4a..3484ae1d21ee 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -7,7 +7,6 @@ * Author: Ramneek Mehreshramneek.mehresh@freescale.com */
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 72b753062650..045b0fba8128 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -13,7 +13,6 @@ * Vikas Sajjan vikas.sajjan@samsung.com */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 63dfb793c6bd..7e288f0575b6 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 46b89de85d1e..1338b1021c64 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -5,7 +5,6 @@ * MVEBU USB HOST xHCI Controller */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index 501129d769a2..66da94c07098 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -8,7 +8,6 @@ * Author: Dan Murphy dmurphy@ti.com */
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 11f1c02000af..f6972af7963d 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -5,7 +5,6 @@ * All rights reserved. */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <init.h> diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@ * Renesas RCar USB HOST xHCI Controller */
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@ * Vikas Sajjan vikas.sajjan@samsung.com */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/byteorder.h> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 741e186ee05b..d30725d3fcaa 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -19,7 +19,6 @@ * The quirk devices support hasn't been given yet. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index a6c4d97aee3f..96c483fb9afa 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -7,7 +7,6 @@ */
#include <hexdump.h> -#include <common.h> #include <asm/cache.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index c96ab459f93e..54246b49d5fe 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c @@ -6,7 +6,6 @@ * (c) 2007 Sebastian Siewior bigeasy@linutronix.de */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-uboot.c b/drivers/usb/isp1760/isp1760-uboot.c index 203500a4cb7f..8dcb7768a2c2 100644 --- a/drivers/usb/isp1760/isp1760-uboot.c +++ b/drivers/usb/isp1760/isp1760-uboot.c @@ -6,7 +6,6 @@ * */
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index b1b22b9357ce..ca86b58dfcd7 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c @@ -5,7 +5,6 @@ * Author: Chunfeng Yun chunfeng.yun@mediatek.com */
-#include <common.h> #include <dm/lists.h> #include <linux/iopoll.h>
diff --git a/drivers/usb/musb-new/am35x.c b/drivers/usb/musb-new/am35x.c index 0a52e09e19f1..42bc816e4f1e 100644 --- a/drivers/usb/musb-new/am35x.c +++ b/drivers/usb/musb-new/am35x.c @@ -24,7 +24,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <asm/omap_musb.h> #include <linux/bug.h> #include <linux/delay.h> diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c index 68fc0c36146d..7caf03cc2e14 100644 --- a/drivers/usb/musb-new/da8xx.c +++ b/drivers/usb/musb-new/da8xx.c @@ -13,7 +13,6 @@ * */
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c index 1e632dca0462..14b28bbae6b1 100644 --- a/drivers/usb/musb-new/mt85xx.c +++ b/drivers/usb/musb-new/mt85xx.c @@ -9,7 +9,6 @@ * * This file is part of the Inventra Controller Driver for Linux. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index 00da554982fe..257e7685cfa3 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -79,7 +79,6 @@ #include <linux/platform_device.h> #include <linux/io.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c index a8ff7434c9f7..b73f3531ce24 100644 --- a/drivers/usb/musb-new/musb_dsps.c +++ b/drivers/usb/musb-new/musb_dsps.c @@ -31,7 +31,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/omap_musb.h> diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c index c6083963ede9..29e225aa0f11 100644 --- a/drivers/usb/musb-new/musb_gadget.c +++ b/drivers/usb/musb-new/musb_gadget.c @@ -22,7 +22,6 @@ #include <linux/dma-mapping.h> #include <linux/slab.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bug.h> diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c index 55ce8de99bb1..63eee31a6b3e 100644 --- a/drivers/usb/musb-new/musb_gadget_ep0.c +++ b/drivers/usb/musb-new/musb_gadget_ep0.c @@ -18,7 +18,6 @@ #include <linux/device.h> #include <linux/interrupt.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c index e5905d90d66f..2f2fc7c1359b 100644 --- a/drivers/usb/musb-new/musb_host.c +++ b/drivers/usb/musb-new/musb_host.c @@ -21,7 +21,6 @@ #include <linux/list.h> #include <linux/dma-mapping.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 7cea9a2ed65c..43ab3245e5c3 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -1,4 +1,3 @@ -#include <common.h> #include <console.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index 308eff832c9e..c8dd73050b29 100644 --- a/drivers/usb/musb-new/omap2430.c +++ b/drivers/usb/musb-new/omap2430.c @@ -8,7 +8,6 @@ * * This file is part of the Inventra Controller Driver for Linux. */ -#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 4ed5e6e90c6c..0b25e5893b3c 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -9,7 +9,6 @@ * Based on the dsps "glue layer" code. */
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 778b01b22ea7..b577ba418780 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -15,7 +15,6 @@ * * This file is part of the Inventra Controller Driver for Linux. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index ed5e5194d8c9..76e8b88369e3 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -5,7 +5,6 @@ * (C) Copyright 2016 * Texas Instruments Incorporated, <www.ti.com> */ -#include <common.h> #include <command.h> #include <console.h> #include <dm.h> diff --git a/drivers/usb/musb-new/ux500.c b/drivers/usb/musb-new/ux500.c index 57c7d5630d37..6b4ef3c85782 100644 --- a/drivers/usb/musb-new/ux500.c +++ b/drivers/usb/musb-new/ux500.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index f945f1f5e2c5..2c23043d40e9 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -9,7 +9,6 @@ * Copyright (c) 2010 Texas Instruments Incorporated */
-#include <common.h> #include <linux/delay.h>
#include "am35x.h" diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 9651f074a49d..260552e4dbd4 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -8,7 +8,6 @@ * Author: Thomas Abraham t-abraham@ti.com, Texas Instruments */
-#include <common.h> #include <linux/bitops.h>
#include "musb_core.h" diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index 4676cabae0aa..c95c6a482812 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -7,7 +7,6 @@ * Author: Thomas Abraham t-abraham@ti.com, Texas Instruments */
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/delay.h> diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index 2ffcb7caaad7..696855ee3a61 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -37,7 +37,6 @@ * ------------------------------------------------------------------------- */
-#include <common.h> #include <hang.h> #include <serial.h> #include <usbdevice.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index c46ad86d3d65..9ec5b2d172b8 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -3,7 +3,6 @@ * Copyright 2016 Rockchip Electronics Co., Ltd */
-#include <common.h> #include <hang.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/usb/ulpi/omap-ulpi-viewport.c b/drivers/usb/ulpi/omap-ulpi-viewport.c index 1b01cd4c559f..6f0c3eb154ee 100644 --- a/drivers/usb/ulpi/omap-ulpi-viewport.c +++ b/drivers/usb/ulpi/omap-ulpi-viewport.c @@ -7,7 +7,6 @@ * Author: Govindraj R govindraj.raja@ti.com */
-#include <common.h> #include <log.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index 55a62808384d..bac20a02f018 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -13,7 +13,6 @@ * Copyright (C) 2011 Google, Inc. */
-#include <common.h> #include <asm/io.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index b5d2c2c2d1c3..128adcbde134 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -19,7 +19,6 @@ * Freescale Semiconductors */
-#include <common.h> #include <exports.h> #include <log.h> #include <linux/delay.h>

Hi Tom,
Thank you for the patch
On mer., mai 01, 2024 at 19:31, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
[...]
diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@
- Renesas RCar USB HOST xHCI Controller
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h>
This generates the following build warning with khadas-vim3_android_defconfig:
drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event': drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration] 464 | unsigned long ts = get_timer(0); | ^~~~~~~~~ | get_mem
Adding: "#include <time.h>" fixes the warning.
With the above fix included:
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
#include <cpu_func.h> #include <log.h> #include <asm/byteorder.h> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 741e186ee05b..d30725d3fcaa 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -19,7 +19,6 @@
- The quirk devices support hasn't been given yet.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h>
[...]

On Thu, May 02, 2024 at 09:40:52AM +0200, Mattijs Korpershoek wrote:
Hi Tom,
Thank you for the patch
On mer., mai 01, 2024 at 19:31, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
[...]
diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@
- Renesas RCar USB HOST xHCI Controller
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h>
This generates the following build warning with khadas-vim3_android_defconfig:
drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event': drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration] 464 | unsigned long ts = get_timer(0); | ^~~~~~~~~ | get_mem
Adding: "#include <time.h>" fixes the warning.
With the above fix included:
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Did you have the full series applied? I don't see the warning here (nor in CI) and I suspect that: https://patchwork.ozlabs.org/project/uboot/patch/20240502013138.2383421-9-tr... is what resolves this warning.

Hi Tom,
On jeu., mai 02, 2024 at 08:51, Tom Rini trini@konsulko.com wrote:
On Thu, May 02, 2024 at 09:40:52AM +0200, Mattijs Korpershoek wrote:
Hi Tom,
Thank you for the patch
On mer., mai 01, 2024 at 19:31, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
[...]
diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@
- Renesas RCar USB HOST xHCI Controller
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h>
This generates the following build warning with khadas-vim3_android_defconfig:
drivers/usb/host/xhci-ring.c: In function 'xhci_wait_for_event': drivers/usb/host/xhci-ring.c:464:28: warning: implicit declaration of function 'get_timer'; did you mean 'get_mem'? [-Wimplicit-function-declaration] 464 | unsigned long ts = get_timer(0); | ^~~~~~~~~ | get_mem
Adding: "#include <time.h>" fixes the warning.
With the above fix included:
Reviewed-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Did you have the full series applied? I don't see the warning here (nor in CI) and I suspect that: https://patchwork.ozlabs.org/project/uboot/patch/20240502013138.2383421-9-tr... is what resolves this warning.
No, I did not apply the full series. I had some conflicts on both: - master: ff0de1f0557e ("Merge patch series "Update PHYTEC SOM Detection"") - next: bc39e0677816 ("Subtree merge tag 'v6.8-dts' of devicetree-rebasing repo [1] into dts/upstream")
The above patch resolves the warning, indeed!
Thanks
-- Tom

On Wed, May 1, 2024 at 7:00 PM Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Marek Vasut marex@denx.de Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Lukasz Majewski lukma@denx.de Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Eddie Cai eddie.cai.linux@gmail.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nishanth Menon nm@ti.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Roger Quadros rogerq@kernel.org Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Jagan Teki jagan@amarulasolutions.com Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Peter Korsgaard peter@korsgaard.com Cc: Oleksandr Suvorov oleksandr.suvorov@foundries.io Cc: Alexey Romanov avromanov@salutedevices.com Cc: Sean Anderson seanga2@gmail.com Cc: Miquel Raynal miquel.raynal@bootlin.com Cc: Teik Heng Chong teik.heng.chong@intel.com Cc: Tim Harvey tharvey@gateworks.com Cc: Mathieu Othacehe othacehe@gnu.org Cc: Fabio Estevam festevam@gmail.com Cc: Johan Jonker jbx6244@gmail.com Cc: Xavier Drudis Ferran xdrudis@tinet.cat Cc: Fabrice Gasnier fabrice.gasnier@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Sam Edwards cfsworks@gmail.com Cc: Andre Przywara andre.przywara@arm.com
drivers/usb/cdns3/cdns3-ti.c | 1 - drivers/usb/cdns3/core.c | 1 - drivers/usb/common/common.c | 1 - drivers/usb/common/fsl-dt-fixup.c | 1 - drivers/usb/common/fsl-errata.c | 1 - drivers/usb/dwc3/core.c | 1 - drivers/usb/dwc3/dwc3-generic.c | 1 - drivers/usb/dwc3/dwc3-layerscape.c | 1 - drivers/usb/dwc3/dwc3-meson-g12a.c | 1 - drivers/usb/dwc3/dwc3-meson-gxl.c | 1 - drivers/usb/dwc3/dwc3-omap.c | 1 - drivers/usb/dwc3/ep0.c | 1 - drivers/usb/dwc3/gadget.c | 1 - drivers/usb/dwc3/samsung_usb_phy.c | 2 +- drivers/usb/dwc3/ti_usb_phy.c | 1 - drivers/usb/emul/sandbox_flash.c | 1 - drivers/usb/emul/sandbox_hub.c | 1 - drivers/usb/emul/sandbox_keyb.c | 1 - drivers/usb/emul/usb-emul-uclass.c | 1 - drivers/usb/eth/asix.c | 1 - drivers/usb/eth/asix88179.c | 1 - drivers/usb/eth/mcs7830.c | 1 - drivers/usb/eth/r8152.c | 1 - drivers/usb/eth/r8152_fw.c | 1 - drivers/usb/eth/smsc95xx.c | 1 - drivers/usb/eth/usb_ether.c | 1 - drivers/usb/gadget/at91_udc.c | 1 - drivers/usb/gadget/atmel_usba_udc.c | 1 - drivers/usb/gadget/bcm_udc_otg_phy.c | 1 - drivers/usb/gadget/ci_udc.c | 1 - drivers/usb/gadget/config.c | 1 - drivers/usb/gadget/dwc2_udc_otg.c | 1 - drivers/usb/gadget/dwc2_udc_otg_phy.c | 1 - drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 - drivers/usb/gadget/ep0.c | 1 - drivers/usb/gadget/epautoconf.c | 1 - drivers/usb/gadget/ether.c | 1 - drivers/usb/gadget/f_acm.c | 1 - drivers/usb/gadget/f_dfu.c | 1 - drivers/usb/gadget/f_fastboot.c | 1 - drivers/usb/gadget/f_mass_storage.c | 1 - drivers/usb/gadget/f_rockusb.c | 1 - drivers/usb/gadget/f_sdp.c | 1 - drivers/usb/gadget/f_thor.c | 1 - drivers/usb/gadget/g_dnl.c | 1 - drivers/usb/gadget/max3420_udc.c | 1 - drivers/usb/gadget/rndis.c | 1 - drivers/usb/gadget/udc/udc-core.c | 1 - drivers/usb/gadget/udc/udc-uclass.c | 1 - drivers/usb/gadget/usbstring.c | 1 - drivers/usb/host/dwc2.c | 1 - drivers/usb/host/dwc3-of-simple.c | 1 - drivers/usb/host/dwc3-sti-glue.c | 1 - drivers/usb/host/ehci-atmel.c | 1 - drivers/usb/host/ehci-exynos.c | 1 - drivers/usb/host/ehci-fsl.c | 1 - drivers/usb/host/ehci-generic.c | 1 - drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/ehci-marvell.c | 1 - drivers/usb/host/ehci-msm.c | 1 - drivers/usb/host/ehci-mx5.c | 1 - drivers/usb/host/ehci-mx6.c | 1 - drivers/usb/host/ehci-mxs.c | 1 - drivers/usb/host/ehci-npcm.c | 1 - drivers/usb/host/ehci-omap.c | 2 +- drivers/usb/host/ehci-pci.c | 1 - drivers/usb/host/ehci-tegra.c | 1 - drivers/usb/host/ehci-vf.c | 1 - drivers/usb/host/ehci-zynq.c | 1 - drivers/usb/host/ohci-at91.c | 1 - drivers/usb/host/ohci-da8xx.c | 1 - drivers/usb/host/ohci-generic.c | 1 - drivers/usb/host/ohci-hcd.c | 2 +- drivers/usb/host/ohci-lpc32xx.c | 1 - drivers/usb/host/ohci-npcm.c | 1 - drivers/usb/host/ohci-pci.c | 1 - drivers/usb/host/r8a66597-hcd.c | 1 - drivers/usb/host/usb-sandbox.c | 1 - drivers/usb/host/usb-uclass.c | 1 - drivers/usb/host/usb_bootdev.c | 1 - drivers/usb/host/xhci-brcm.c | 1 - drivers/usb/host/xhci-dwc3.c | 1 - drivers/usb/host/xhci-exynos5.c | 1 - drivers/usb/host/xhci-fsl.c | 1 - drivers/usb/host/xhci-mem.c | 1 - drivers/usb/host/xhci-mtk.c | 1 - drivers/usb/host/xhci-mvebu.c | 1 - drivers/usb/host/xhci-omap.c | 1 - drivers/usb/host/xhci-pci.c | 1 - drivers/usb/host/xhci-rcar.c | 1 - drivers/usb/host/xhci-ring.c | 1 - drivers/usb/host/xhci.c | 1 - drivers/usb/isp1760/isp1760-hcd.c | 1 - drivers/usb/isp1760/isp1760-if.c | 1 - drivers/usb/isp1760/isp1760-uboot.c | 1 - drivers/usb/mtu3/mtu3_plat.c | 1 - drivers/usb/musb-new/am35x.c | 1 - drivers/usb/musb-new/da8xx.c | 1 - drivers/usb/musb-new/mt85xx.c | 1 - drivers/usb/musb-new/musb_core.c | 1 - drivers/usb/musb-new/musb_dsps.c | 1 - drivers/usb/musb-new/musb_gadget.c | 1 - drivers/usb/musb-new/musb_gadget_ep0.c | 1 - drivers/usb/musb-new/musb_host.c | 1 - drivers/usb/musb-new/musb_uboot.c | 1 - drivers/usb/musb-new/omap2430.c | 1 - drivers/usb/musb-new/pic32.c | 1 - drivers/usb/musb-new/sunxi.c | 1 - drivers/usb/musb-new/ti-musb.c | 1 - drivers/usb/musb-new/ux500.c | 1 - drivers/usb/musb/am35x.c | 1 - drivers/usb/musb/musb_core.c | 1 - drivers/usb/musb/musb_hcd.c | 1 - drivers/usb/musb/musb_udc.c | 1 - drivers/usb/phy/rockchip_usb2_phy.c | 1 - drivers/usb/ulpi/omap-ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi.c | 1 - 118 files changed, 3 insertions(+), 118 deletions(-)
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index 2e44aadea47b..ac072260c30a 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 12a741c6ea7c..b4e931646b88 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -11,7 +11,6 @@
Roger Quadros <rogerq@ti.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 7137a569d97c..13e9a61072a9 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -6,7 +6,6 @@
Texas Instruments Incorporated, <www.ti.com>
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <linux/printk.h> diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c index 00b8cd368b1a..6a68bd76c274 100644 --- a/drivers/usb/common/fsl-dt-fixup.c +++ b/drivers/usb/common/fsl-dt-fixup.c @@ -7,7 +7,6 @@
- Author: Tor Krill tor@excito.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <asm/io.h> diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 9eb1d2306725..89ae73f2ba48 100644 --- a/drivers/usb/common/fsl-errata.c +++ b/drivers/usb/common/fsl-errata.c @@ -5,7 +5,6 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <hwconfig.h> #include <fsl_errata.h> #include<fsl_usb.h> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 96e850b7170f..c443d56746dd 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -13,7 +13,6 @@
- commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 7a00529a2a8e..8db678eb85d4 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -7,7 +7,6 @@
- Based on dwc3-omap.c.
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <dm.h> diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c index c32df2396d74..ff83bf71e898 100644 --- a/drivers/usb/dwc3/dwc3-layerscape.c +++ b/drivers/usb/dwc3/dwc3-layerscape.c @@ -7,7 +7,6 @@
- Based on dwc3-generic.c.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 1a3e9350c46d..21e4f637bb15 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c index 2ce915701a85..3e693c5ff310 100644 --- a/drivers/usb/dwc3/dwc3-meson-gxl.c +++ b/drivers/usb/dwc3/dwc3-meson-gxl.c @@ -7,7 +7,6 @@ */
#define DEBUG -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 53c4d4826b45..4b219c35eb35 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -13,7 +13,6 @@
- commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 1133cf82b1ae..117d38a0340b 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -12,7 +12,6 @@
- commit c00552ebaf : Merge 3.18-rc7 into usb-next
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 406d36ceafe4..4de007cb0c38 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -13,7 +13,6 @@
- commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/samsung_usb_phy.c b/drivers/usb/dwc3/samsung_usb_phy.c index abbd41368901..0a7713081636 100644 --- a/drivers/usb/dwc3/samsung_usb_phy.c +++ b/drivers/usb/dwc3/samsung_usb_phy.c @@ -7,7 +7,7 @@
- Author: Joonyoung Shim jy0922.shim@samsung.com
*/
-#include <common.h> +#include <asm/io.h> #include <asm/arch/power.h> #include <asm/arch/xhci-exynos.h> #include <linux/delay.h> diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index 8ae130860f79..f0ecdea958ae 100644 --- a/drivers/usb/dwc3/ti_usb_phy.c +++ b/drivers/usb/dwc3/ti_usb_phy.c @@ -16,7 +16,6 @@
- and remove" for phy-omap-usb2.c
*/
-#include <common.h> #include <malloc.h> #include <ti-usb-phy-uboot.h> #include <dm/device_compat.h> diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 7c5c1ab3de73..24420e3d51e1 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 084cc16cc683..3b3e59f978f7 100644 --- a/drivers/usb/emul/sandbox_hub.c +++ b/drivers/usb/emul/sandbox_hub.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c index 5ec1e98e4ed4..db769883ba3b 100644 --- a/drivers/usb/emul/sandbox_keyb.c +++ b/drivers/usb/emul/sandbox_keyb.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <os.h> diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c index b31dc950e3ab..cdc18d6cbb97 100644 --- a/drivers/usb/emul/usb-emul-uclass.c +++ b/drivers/usb/emul/usb-emul-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_EMUL
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 26dd312b7d06..c5a01ec922be 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -5,7 +5,6 @@
- Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c index 2e737e606685..7bfd285b3aa4 100644 --- a/drivers/usb/eth/asix88179.c +++ b/drivers/usb/eth/asix88179.c @@ -5,7 +5,6 @@
- from the Linux AX88179_178a driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c index d94204f22d5f..199fb7a5d08e 100644 --- a/drivers/usb/eth/mcs7830.c +++ b/drivers/usb/eth/mcs7830.c @@ -9,7 +9,6 @@
- MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 3c866f4f1e2d..e3f20e08c33c 100644 --- a/drivers/usb/eth/r8152.c +++ b/drivers/usb/eth/r8152.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index a41abed3069a..3159f3010602 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index de6586e62639..b4fcb2c2bb0d 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -6,7 +6,6 @@
- Copyright (C) 2007-2008 SMSC (Steve Glendinning)
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c index 2e9af54fd63d..8bba3e0974e6 100644 --- a/drivers/usb/eth/usb_ether.c +++ b/drivers/usb/eth/usb_ether.c @@ -3,7 +3,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index e573a03477b9..86b2cbf3f6ae 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -13,7 +13,6 @@ #undef VERBOSE_DEBUG #undef PACKET_TRACE
-#include <common.h> #include <dm/devres.h> #include <linux/bug.h> #include <linux/err.h> diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 4c420747b0b6..f99553df8d49 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -7,7 +7,6 @@
Bo Shen <voice.shen@atmel.com>
*/
-#include <common.h> #include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c b/drivers/usb/gadget/bcm_udc_otg_phy.c index c89cd57c253d..9875191091cc 100644 --- a/drivers/usb/gadget/bcm_udc_otg_phy.c +++ b/drivers/usb/gadget/bcm_udc_otg_phy.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <asm/io.h> #include <asm/arch/sysmap.h> #include <asm/kona-common/clk.h> diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 750d47148798..bbe03cfff1fb 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -7,7 +7,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <command.h> #include <config.h> #include <cpu_func.h> diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index e96782644f31..1363ef9e73df 100644 --- a/drivers/usb/gadget/config.c +++ b/drivers/usb/gadget/config.c @@ -8,7 +8,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <asm/unaligned.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 27082f5152cb..6bd395a6235a 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/ #undef DEBUG -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c index 7f8e9564b9e5..c7eea7b34421 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_phy.c +++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/
-#include <common.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c index 1c34b753511d..16b2a03f9e4b 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <linux/bug.h> diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c index c256cc31fbd2..9d08640ff23a 100644 --- a/drivers/usb/gadget/ep0.c +++ b/drivers/usb/gadget/ep0.c @@ -36,7 +36,6 @@
- XXX
*/
-#include <common.h> #include <serial.h> #include <usbdevice.h>
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index bb0d2971d06b..0a70035ce04b 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -8,7 +8,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <linux/usb/ch9.h> #include <linux/errno.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 36618f0bdf36..b8b29d399b13 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -7,7 +7,6 @@
- Copyright (C) 2008 Nokia Corporation
*/
-#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index ba216128ab27..f18c6a0a7611 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -10,7 +10,6 @@ */
#include <circbuf.h> -#include <common.h> #include <console.h> #include <errno.h> #include <g_dnl.h> diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 44877df4ec6b..ca8b36e077bc 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -16,7 +16,6 @@
#include <env.h> #include <errno.h> -#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 09e740cc9622..8df0e3f331d1 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -11,7 +11,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <fastboot.h> diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index ef90c7ec7fb5..89a96dbb7a74 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -244,7 +244,6 @@ #include <hexdump.h> #include <log.h> #include <malloc.h> -#include <common.h> #include <console.h> #include <g_dnl.h> #include <dm/devres.h> diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index 98a7ffa2a752..d679cdae97c8 100644 --- a/drivers/usb/gadget/f_rockusb.c +++ b/drivers/usb/gadget/f_rockusb.c @@ -6,7 +6,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index ca2760c00d0d..89496917a61f 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -17,7 +17,6 @@ */
#include <errno.h> -#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 0e7529dcdbb6..543721183480 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -15,7 +15,6 @@ */
#include <command.h> -#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index afb7b74f3057..b5b5f5d8c118 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -6,7 +6,6 @@
- Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/max3420_udc.c b/drivers/usb/gadget/max3420_udc.c index fa655c98dcc5..5a227c0ffd99 100644 --- a/drivers/usb/gadget/max3420_udc.c +++ b/drivers/usb/gadget/max3420_udc.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <linux/errno.h> #include <linux/delay.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index e7276ccd37a3..5e6e5a054ca7 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c @@ -18,7 +18,6 @@
updates to merge with Linux 2.6, better match RNDIS spec
*/
-#include <common.h> #include <log.h> #include <net.h> #include <malloc.h> diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index ba658d922966..6bb419ae2abc 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -19,7 +19,6 @@ #include <malloc.h> #include <asm/cache.h> #include <linux/dma-mapping.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 30ee1cab0668..5dc23a55bb58 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/printk.h> diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index e2464ad923f8..4617a95bd0a7 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c @@ -6,7 +6,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <linux/errno.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 637eb2dd06f5..a9dbb85f4e6c 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -4,7 +4,6 @@
- Copyright (C) 2014 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index f9df59d2e5d7..d52e7d22d1a7 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -10,7 +10,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <reset.h> #include <clk.h> diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 4a3ab6111276..3e6834e38e38 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index c6d50fd4551a..ee751224463a 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -5,7 +5,6 @@
- Written-by: Bo Shen voice.shen@atmel.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index c1cdd4b0889a..1e4a5a0b6f6c 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -6,7 +6,6 @@
Vivek Gautam <gautam.vivek@samsung.com>
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 0569dd54fff9..ee3eb065b142 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -7,7 +7,6 @@
- Author: Tor Krill tor@excito.com
*/
-#include <common.h> #include <env.h> #include <log.h> #include <pci.h> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 936e30438d9f..23c3ed25554f 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 9839aa17492d..7d5519c65a9e 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -6,7 +6,6 @@
- All rights reserved.
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c index 6093c8fb0b68..ca0ab57d49c2 100644 --- a/drivers/usb/host/ehci-marvell.c +++ b/drivers/usb/host/ehci-marvell.c @@ -5,7 +5,6 @@
- Written-by: Prafulla Wadaskar prafulla@marvell.com
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 98fe7bc3bcb1..a081f71b187d 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -7,7 +7,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index c11279867c7c..fb912654097e 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -4,7 +4,6 @@
- Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index a35fcca43a23..31cd8a50f4a2 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -4,7 +4,6 @@
- Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c index ddf7cc2d00a7..95af5c9254cb 100644 --- a/drivers/usb/host/ehci-mxs.c +++ b/drivers/usb/host/ehci-mxs.c @@ -6,7 +6,6 @@
- on behalf of DENX Software Engineering GmbH
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-npcm.c b/drivers/usb/host/ehci-npcm.c index 357a5614edb7..d2a9965b4b4f 100644 --- a/drivers/usb/host/ehci-npcm.c +++ b/drivers/usb/host/ehci-npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 765336a3c42b..a95fcad02131 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -10,8 +10,8 @@
*/
-#include <common.h> #include <log.h> +#include <time.h> #include <usb.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index e98ab312618d..572686580cd5 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -4,7 +4,6 @@
- All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 2cf16256703d..343893b9f19a 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -5,7 +5,6 @@
- Copyright (c) 2013 Lucas Stach
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 648e136447d9..5afe28ea3033 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -6,7 +6,6 @@
- Based on ehci-mx6 driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c index f7e458cb15a2..dfaff5c60f4e 100644 --- a/drivers/usb/host/ehci-zynq.c +++ b/drivers/usb/host/ehci-zynq.c @@ -5,7 +5,6 @@
- USB Low level initialization(Specific to zynq)
*/
-#include <common.h> #include <dm.h> #include <usb.h> #include <asm/arch/hardware.h> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 9b955c1bd678..b170f26e6c6a 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -4,7 +4,6 @@
- DENX Software Engineering mk@denx.de
*/
-#include <common.h> #include <asm/arch/clk.h>
int usb_cpu_init(void) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d3d73d238442..d321d147c2f9 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -3,7 +3,6 @@
- Copyright (C) 2012 Sughosh Ganu urwithsughosh@gmail.com
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c index ceed1911a95a..f1325cd49534 100644 --- a/drivers/usb/host/ohci-generic.c +++ b/drivers/usb/host/ohci-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 3f4418198ccd..c020d13c43d2 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -27,7 +27,7 @@
to activate workaround for bug #41 or this driver will NOT work!
*/
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <asm/byteorder.h> #include <dm.h> diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/host/ohci-lpc32xx.c index a04b2961b961..ed04cae7afed 100644 --- a/drivers/usb/host/ohci-lpc32xx.c +++ b/drivers/usb/host/ohci-lpc32xx.c @@ -7,7 +7,6 @@
- Copyright (c) 2015 Tyco Fire Protection Products.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ohci-npcm.c b/drivers/usb/host/ohci-npcm.c index 9e1d52988099..ffeb6bc206a8 100644 --- a/drivers/usb/host/ohci-npcm.c +++ b/drivers/usb/host/ohci-npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f061aec28966..f10f10924205 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 3ccbc16da379..f0b18bffba41 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -5,7 +5,6 @@
- Copyright (C) 2008 Yoshihiro Shimoda shimoda.yoshihiro@renesas.com
*/
-#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index 3d4f8d653b5d..e26f0b292ed5 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index a1cd0ad2d669..cd3a07e4c374 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c index 7fa1c601dff5..362b46dc466e 100644 --- a/drivers/usb/host/usb_bootdev.c +++ b/drivers/usb/host/usb_bootdev.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c index fe17924028cd..2ffad148dea6 100644 --- a/drivers/usb/host/xhci-brcm.c +++ b/drivers/usb/host/xhci-brcm.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Broadcom.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 6cebe1cc30cb..e3e0ceff43e6 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 270be934e7fc..6a2d422c4b8e 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -12,7 +12,6 @@
- exynos5 specific PHY-init sequence.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index e67e09e31e4a..3484ae1d21ee 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -7,7 +7,6 @@
- Author: Ramneek Mehreshramneek.mehresh@freescale.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 72b753062650..045b0fba8128 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 63dfb793c6bd..7e288f0575b6 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 46b89de85d1e..1338b1021c64 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -5,7 +5,6 @@
- MVEBU USB HOST xHCI Controller
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index 501129d769a2..66da94c07098 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -8,7 +8,6 @@
- Author: Dan Murphy dmurphy@ti.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 11f1c02000af..f6972af7963d 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -5,7 +5,6 @@
- All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <init.h> diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@
- Renesas RCar USB HOST xHCI Controller
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/byteorder.h> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 741e186ee05b..d30725d3fcaa 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -19,7 +19,6 @@
- The quirk devices support hasn't been given yet.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index a6c4d97aee3f..96c483fb9afa 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -7,7 +7,6 @@ */
#include <hexdump.h> -#include <common.h> #include <asm/cache.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index c96ab459f93e..54246b49d5fe 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c @@ -6,7 +6,6 @@
- (c) 2007 Sebastian Siewior bigeasy@linutronix.de
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-uboot.c b/drivers/usb/isp1760/isp1760-uboot.c index 203500a4cb7f..8dcb7768a2c2 100644 --- a/drivers/usb/isp1760/isp1760-uboot.c +++ b/drivers/usb/isp1760/isp1760-uboot.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index b1b22b9357ce..ca86b58dfcd7 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c @@ -5,7 +5,6 @@
- Author: Chunfeng Yun chunfeng.yun@mediatek.com
*/
-#include <common.h> #include <dm/lists.h> #include <linux/iopoll.h>
diff --git a/drivers/usb/musb-new/am35x.c b/drivers/usb/musb-new/am35x.c index 0a52e09e19f1..42bc816e4f1e 100644 --- a/drivers/usb/musb-new/am35x.c +++ b/drivers/usb/musb-new/am35x.c @@ -24,7 +24,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <asm/omap_musb.h> #include <linux/bug.h> #include <linux/delay.h> diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c index 68fc0c36146d..7caf03cc2e14 100644 --- a/drivers/usb/musb-new/da8xx.c +++ b/drivers/usb/musb-new/da8xx.c @@ -13,7 +13,6 @@
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c index 1e632dca0462..14b28bbae6b1 100644 --- a/drivers/usb/musb-new/mt85xx.c +++ b/drivers/usb/musb-new/mt85xx.c @@ -9,7 +9,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index 00da554982fe..257e7685cfa3 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -79,7 +79,6 @@ #include <linux/platform_device.h> #include <linux/io.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c index a8ff7434c9f7..b73f3531ce24 100644 --- a/drivers/usb/musb-new/musb_dsps.c +++ b/drivers/usb/musb-new/musb_dsps.c @@ -31,7 +31,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/omap_musb.h> diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c index c6083963ede9..29e225aa0f11 100644 --- a/drivers/usb/musb-new/musb_gadget.c +++ b/drivers/usb/musb-new/musb_gadget.c @@ -22,7 +22,6 @@ #include <linux/dma-mapping.h> #include <linux/slab.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bug.h> diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c index 55ce8de99bb1..63eee31a6b3e 100644 --- a/drivers/usb/musb-new/musb_gadget_ep0.c +++ b/drivers/usb/musb-new/musb_gadget_ep0.c @@ -18,7 +18,6 @@ #include <linux/device.h> #include <linux/interrupt.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c index e5905d90d66f..2f2fc7c1359b 100644 --- a/drivers/usb/musb-new/musb_host.c +++ b/drivers/usb/musb-new/musb_host.c @@ -21,7 +21,6 @@ #include <linux/list.h> #include <linux/dma-mapping.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 7cea9a2ed65c..43ab3245e5c3 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -1,4 +1,3 @@ -#include <common.h> #include <console.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index 308eff832c9e..c8dd73050b29 100644 --- a/drivers/usb/musb-new/omap2430.c +++ b/drivers/usb/musb-new/omap2430.c @@ -8,7 +8,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 4ed5e6e90c6c..0b25e5893b3c 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -9,7 +9,6 @@
- Based on the dsps "glue layer" code.
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 778b01b22ea7..b577ba418780 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -15,7 +15,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index ed5e5194d8c9..76e8b88369e3 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -5,7 +5,6 @@
- (C) Copyright 2016
Texas Instruments Incorporated, <www.ti.com>
*/ -#include <common.h> #include <command.h> #include <console.h> #include <dm.h> diff --git a/drivers/usb/musb-new/ux500.c b/drivers/usb/musb-new/ux500.c index 57c7d5630d37..6b4ef3c85782 100644 --- a/drivers/usb/musb-new/ux500.c +++ b/drivers/usb/musb-new/ux500.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index f945f1f5e2c5..2c23043d40e9 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -9,7 +9,6 @@
- Copyright (c) 2010 Texas Instruments Incorporated
*/
-#include <common.h> #include <linux/delay.h>
#include "am35x.h" diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 9651f074a49d..260552e4dbd4 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -8,7 +8,6 @@
- Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
-#include <common.h> #include <linux/bitops.h>
#include "musb_core.h" diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index 4676cabae0aa..c95c6a482812 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -7,7 +7,6 @@
- Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/delay.h> diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index 2ffcb7caaad7..696855ee3a61 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -37,7 +37,6 @@
*/
-#include <common.h> #include <hang.h> #include <serial.h> #include <usbdevice.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index c46ad86d3d65..9ec5b2d172b8 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -3,7 +3,6 @@
- Copyright 2016 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <hang.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/usb/ulpi/omap-ulpi-viewport.c b/drivers/usb/ulpi/omap-ulpi-viewport.c index 1b01cd4c559f..6f0c3eb154ee 100644 --- a/drivers/usb/ulpi/omap-ulpi-viewport.c +++ b/drivers/usb/ulpi/omap-ulpi-viewport.c @@ -7,7 +7,6 @@
- Author: Govindraj R govindraj.raja@ti.com
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index 55a62808384d..bac20a02f018 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -13,7 +13,6 @@
- Copyright (C) 2011 Google, Inc.
*/
-#include <common.h> #include <asm/io.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index b5d2c2c2d1c3..128adcbde134 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -19,7 +19,6 @@
- Freescale Semiconductors
*/
-#include <common.h> #include <exports.h> #include <log.h>
#include <linux/delay.h>
2.34.1
There is a warning for RISC-V maybe to do with having only the generic find_next_zero_bit and not an optimized one in arch/riscv/include/asm/bitops.h:
CC drivers/usb/cdns3/gadget.o In file included from drivers/usb/cdns3/gadget.c:70: include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’: include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration] 170 | index = find_next_zero_bit(map, size, start); | ^~~~~~~~~~~~~~~~~~ | find_next_bit CC drivers/usb/cdns3/ep0.o In file included from include/linux/usb/composite.h:26, from drivers/usb/cdns3/ep0.c:19: include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’: include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration] 170 | index = find_next_zero_bit(map, size, start); | ^~~~~~~~~~~~~~~~~~ | find_next_bit CC drivers/usb/cdns3/host.o
I would guess that for architectures that have optimized versions there is no implicit declaration. This was HEAD (2f1e76bc) with patch series 405474 "Add Starfive JH7110 Cadence USB driver" applied and starfive_visionfive2_defconfig. -E

On Sat, May 04, 2024 at 10:09:52AM -0700, E Shattow wrote:
On Wed, May 1, 2024 at 7:00 PM Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Marek Vasut marex@denx.de Cc: Tom Rini trini@konsulko.com Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Lukasz Majewski lukma@denx.de Cc: Mattijs Korpershoek mkorpershoek@baylibre.com Cc: Eddie Cai eddie.cai.linux@gmail.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Caleb Connolly caleb.connolly@linaro.org Cc: Sumit Garg sumit.garg@linaro.org Cc: Michal Simek michal.simek@amd.com Cc: Bin Meng bmeng.cn@gmail.com Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Nobuhiro Iwamatsu iwamatsu@nigauri.org Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Nishanth Menon nm@ti.com Cc: Igor Prusov ivprusov@salutedevices.com Cc: Roger Quadros rogerq@kernel.org Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Jonas Karlman jonas@kwiboo.se Cc: Jagan Teki jagan@amarulasolutions.com Cc: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com Cc: Peter Korsgaard peter@korsgaard.com Cc: Oleksandr Suvorov oleksandr.suvorov@foundries.io Cc: Alexey Romanov avromanov@salutedevices.com Cc: Sean Anderson seanga2@gmail.com Cc: Miquel Raynal miquel.raynal@bootlin.com Cc: Teik Heng Chong teik.heng.chong@intel.com Cc: Tim Harvey tharvey@gateworks.com Cc: Mathieu Othacehe othacehe@gnu.org Cc: Fabio Estevam festevam@gmail.com Cc: Johan Jonker jbx6244@gmail.com Cc: Xavier Drudis Ferran xdrudis@tinet.cat Cc: Fabrice Gasnier fabrice.gasnier@foss.st.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Sam Edwards cfsworks@gmail.com Cc: Andre Przywara andre.przywara@arm.com
drivers/usb/cdns3/cdns3-ti.c | 1 - drivers/usb/cdns3/core.c | 1 - drivers/usb/common/common.c | 1 - drivers/usb/common/fsl-dt-fixup.c | 1 - drivers/usb/common/fsl-errata.c | 1 - drivers/usb/dwc3/core.c | 1 - drivers/usb/dwc3/dwc3-generic.c | 1 - drivers/usb/dwc3/dwc3-layerscape.c | 1 - drivers/usb/dwc3/dwc3-meson-g12a.c | 1 - drivers/usb/dwc3/dwc3-meson-gxl.c | 1 - drivers/usb/dwc3/dwc3-omap.c | 1 - drivers/usb/dwc3/ep0.c | 1 - drivers/usb/dwc3/gadget.c | 1 - drivers/usb/dwc3/samsung_usb_phy.c | 2 +- drivers/usb/dwc3/ti_usb_phy.c | 1 - drivers/usb/emul/sandbox_flash.c | 1 - drivers/usb/emul/sandbox_hub.c | 1 - drivers/usb/emul/sandbox_keyb.c | 1 - drivers/usb/emul/usb-emul-uclass.c | 1 - drivers/usb/eth/asix.c | 1 - drivers/usb/eth/asix88179.c | 1 - drivers/usb/eth/mcs7830.c | 1 - drivers/usb/eth/r8152.c | 1 - drivers/usb/eth/r8152_fw.c | 1 - drivers/usb/eth/smsc95xx.c | 1 - drivers/usb/eth/usb_ether.c | 1 - drivers/usb/gadget/at91_udc.c | 1 - drivers/usb/gadget/atmel_usba_udc.c | 1 - drivers/usb/gadget/bcm_udc_otg_phy.c | 1 - drivers/usb/gadget/ci_udc.c | 1 - drivers/usb/gadget/config.c | 1 - drivers/usb/gadget/dwc2_udc_otg.c | 1 - drivers/usb/gadget/dwc2_udc_otg_phy.c | 1 - drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 - drivers/usb/gadget/ep0.c | 1 - drivers/usb/gadget/epautoconf.c | 1 - drivers/usb/gadget/ether.c | 1 - drivers/usb/gadget/f_acm.c | 1 - drivers/usb/gadget/f_dfu.c | 1 - drivers/usb/gadget/f_fastboot.c | 1 - drivers/usb/gadget/f_mass_storage.c | 1 - drivers/usb/gadget/f_rockusb.c | 1 - drivers/usb/gadget/f_sdp.c | 1 - drivers/usb/gadget/f_thor.c | 1 - drivers/usb/gadget/g_dnl.c | 1 - drivers/usb/gadget/max3420_udc.c | 1 - drivers/usb/gadget/rndis.c | 1 - drivers/usb/gadget/udc/udc-core.c | 1 - drivers/usb/gadget/udc/udc-uclass.c | 1 - drivers/usb/gadget/usbstring.c | 1 - drivers/usb/host/dwc2.c | 1 - drivers/usb/host/dwc3-of-simple.c | 1 - drivers/usb/host/dwc3-sti-glue.c | 1 - drivers/usb/host/ehci-atmel.c | 1 - drivers/usb/host/ehci-exynos.c | 1 - drivers/usb/host/ehci-fsl.c | 1 - drivers/usb/host/ehci-generic.c | 1 - drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/ehci-marvell.c | 1 - drivers/usb/host/ehci-msm.c | 1 - drivers/usb/host/ehci-mx5.c | 1 - drivers/usb/host/ehci-mx6.c | 1 - drivers/usb/host/ehci-mxs.c | 1 - drivers/usb/host/ehci-npcm.c | 1 - drivers/usb/host/ehci-omap.c | 2 +- drivers/usb/host/ehci-pci.c | 1 - drivers/usb/host/ehci-tegra.c | 1 - drivers/usb/host/ehci-vf.c | 1 - drivers/usb/host/ehci-zynq.c | 1 - drivers/usb/host/ohci-at91.c | 1 - drivers/usb/host/ohci-da8xx.c | 1 - drivers/usb/host/ohci-generic.c | 1 - drivers/usb/host/ohci-hcd.c | 2 +- drivers/usb/host/ohci-lpc32xx.c | 1 - drivers/usb/host/ohci-npcm.c | 1 - drivers/usb/host/ohci-pci.c | 1 - drivers/usb/host/r8a66597-hcd.c | 1 - drivers/usb/host/usb-sandbox.c | 1 - drivers/usb/host/usb-uclass.c | 1 - drivers/usb/host/usb_bootdev.c | 1 - drivers/usb/host/xhci-brcm.c | 1 - drivers/usb/host/xhci-dwc3.c | 1 - drivers/usb/host/xhci-exynos5.c | 1 - drivers/usb/host/xhci-fsl.c | 1 - drivers/usb/host/xhci-mem.c | 1 - drivers/usb/host/xhci-mtk.c | 1 - drivers/usb/host/xhci-mvebu.c | 1 - drivers/usb/host/xhci-omap.c | 1 - drivers/usb/host/xhci-pci.c | 1 - drivers/usb/host/xhci-rcar.c | 1 - drivers/usb/host/xhci-ring.c | 1 - drivers/usb/host/xhci.c | 1 - drivers/usb/isp1760/isp1760-hcd.c | 1 - drivers/usb/isp1760/isp1760-if.c | 1 - drivers/usb/isp1760/isp1760-uboot.c | 1 - drivers/usb/mtu3/mtu3_plat.c | 1 - drivers/usb/musb-new/am35x.c | 1 - drivers/usb/musb-new/da8xx.c | 1 - drivers/usb/musb-new/mt85xx.c | 1 - drivers/usb/musb-new/musb_core.c | 1 - drivers/usb/musb-new/musb_dsps.c | 1 - drivers/usb/musb-new/musb_gadget.c | 1 - drivers/usb/musb-new/musb_gadget_ep0.c | 1 - drivers/usb/musb-new/musb_host.c | 1 - drivers/usb/musb-new/musb_uboot.c | 1 - drivers/usb/musb-new/omap2430.c | 1 - drivers/usb/musb-new/pic32.c | 1 - drivers/usb/musb-new/sunxi.c | 1 - drivers/usb/musb-new/ti-musb.c | 1 - drivers/usb/musb-new/ux500.c | 1 - drivers/usb/musb/am35x.c | 1 - drivers/usb/musb/musb_core.c | 1 - drivers/usb/musb/musb_hcd.c | 1 - drivers/usb/musb/musb_udc.c | 1 - drivers/usb/phy/rockchip_usb2_phy.c | 1 - drivers/usb/ulpi/omap-ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi-viewport.c | 1 - drivers/usb/ulpi/ulpi.c | 1 - 118 files changed, 3 insertions(+), 118 deletions(-)
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index 2e44aadea47b..ac072260c30a 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -5,7 +5,6 @@
- Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 12a741c6ea7c..b4e931646b88 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -11,7 +11,6 @@
Roger Quadros <rogerq@ti.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 7137a569d97c..13e9a61072a9 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -6,7 +6,6 @@
Texas Instruments Incorporated, <www.ti.com>
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <linux/printk.h> diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c index 00b8cd368b1a..6a68bd76c274 100644 --- a/drivers/usb/common/fsl-dt-fixup.c +++ b/drivers/usb/common/fsl-dt-fixup.c @@ -7,7 +7,6 @@
- Author: Tor Krill tor@excito.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <asm/io.h> diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 9eb1d2306725..89ae73f2ba48 100644 --- a/drivers/usb/common/fsl-errata.c +++ b/drivers/usb/common/fsl-errata.c @@ -5,7 +5,6 @@
- Copyright 2013 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <hwconfig.h> #include <fsl_errata.h> #include<fsl_usb.h> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 96e850b7170f..c443d56746dd 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -13,7 +13,6 @@
- commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 7a00529a2a8e..8db678eb85d4 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -7,7 +7,6 @@
- Based on dwc3-omap.c.
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <dm.h> diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c index c32df2396d74..ff83bf71e898 100644 --- a/drivers/usb/dwc3/dwc3-layerscape.c +++ b/drivers/usb/dwc3/dwc3-layerscape.c @@ -7,7 +7,6 @@
- Based on dwc3-generic.c.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 1a3e9350c46d..21e4f637bb15 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <log.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c index 2ce915701a85..3e693c5ff310 100644 --- a/drivers/usb/dwc3/dwc3-meson-gxl.c +++ b/drivers/usb/dwc3/dwc3-meson-gxl.c @@ -7,7 +7,6 @@ */
#define DEBUG -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 53c4d4826b45..4b219c35eb35 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -13,7 +13,6 @@
- commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 1133cf82b1ae..117d38a0340b 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -12,7 +12,6 @@
- commit c00552ebaf : Merge 3.18-rc7 into usb-next
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 406d36ceafe4..4de007cb0c38 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -13,7 +13,6 @@
- commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/samsung_usb_phy.c b/drivers/usb/dwc3/samsung_usb_phy.c index abbd41368901..0a7713081636 100644 --- a/drivers/usb/dwc3/samsung_usb_phy.c +++ b/drivers/usb/dwc3/samsung_usb_phy.c @@ -7,7 +7,7 @@
- Author: Joonyoung Shim jy0922.shim@samsung.com
*/
-#include <common.h> +#include <asm/io.h> #include <asm/arch/power.h> #include <asm/arch/xhci-exynos.h> #include <linux/delay.h> diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index 8ae130860f79..f0ecdea958ae 100644 --- a/drivers/usb/dwc3/ti_usb_phy.c +++ b/drivers/usb/dwc3/ti_usb_phy.c @@ -16,7 +16,6 @@
- and remove" for phy-omap-usb2.c
*/
-#include <common.h> #include <malloc.h> #include <ti-usb-phy-uboot.h> #include <dm/device_compat.h> diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 7c5c1ab3de73..24420e3d51e1 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 084cc16cc683..3b3e59f978f7 100644 --- a/drivers/usb/emul/sandbox_hub.c +++ b/drivers/usb/emul/sandbox_hub.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c index 5ec1e98e4ed4..db769883ba3b 100644 --- a/drivers/usb/emul/sandbox_keyb.c +++ b/drivers/usb/emul/sandbox_keyb.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <os.h> diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c index b31dc950e3ab..cdc18d6cbb97 100644 --- a/drivers/usb/emul/usb-emul-uclass.c +++ b/drivers/usb/emul/usb-emul-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_EMUL
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 26dd312b7d06..c5a01ec922be 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -5,7 +5,6 @@
- Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c index 2e737e606685..7bfd285b3aa4 100644 --- a/drivers/usb/eth/asix88179.c +++ b/drivers/usb/eth/asix88179.c @@ -5,7 +5,6 @@
- from the Linux AX88179_178a driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c index d94204f22d5f..199fb7a5d08e 100644 --- a/drivers/usb/eth/mcs7830.c +++ b/drivers/usb/eth/mcs7830.c @@ -9,7 +9,6 @@
- MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 3c866f4f1e2d..e3f20e08c33c 100644 --- a/drivers/usb/eth/r8152.c +++ b/drivers/usb/eth/r8152.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index a41abed3069a..3159f3010602 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
*/ -#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index de6586e62639..b4fcb2c2bb0d 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -6,7 +6,6 @@
- Copyright (C) 2007-2008 SMSC (Steve Glendinning)
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c index 2e9af54fd63d..8bba3e0974e6 100644 --- a/drivers/usb/eth/usb_ether.c +++ b/drivers/usb/eth/usb_ether.c @@ -3,7 +3,6 @@
- Copyright (c) 2011 The Chromium OS Authors.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index e573a03477b9..86b2cbf3f6ae 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -13,7 +13,6 @@ #undef VERBOSE_DEBUG #undef PACKET_TRACE
-#include <common.h> #include <dm/devres.h> #include <linux/bug.h> #include <linux/err.h> diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 4c420747b0b6..f99553df8d49 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -7,7 +7,6 @@
Bo Shen <voice.shen@atmel.com>
*/
-#include <common.h> #include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c b/drivers/usb/gadget/bcm_udc_otg_phy.c index c89cd57c253d..9875191091cc 100644 --- a/drivers/usb/gadget/bcm_udc_otg_phy.c +++ b/drivers/usb/gadget/bcm_udc_otg_phy.c @@ -4,7 +4,6 @@ */
#include <config.h> -#include <common.h> #include <asm/io.h> #include <asm/arch/sysmap.h> #include <asm/kona-common/clk.h> diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 750d47148798..bbe03cfff1fb 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -7,7 +7,6 @@
- Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
-#include <common.h> #include <command.h> #include <config.h> #include <cpu_func.h> diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index e96782644f31..1363ef9e73df 100644 --- a/drivers/usb/gadget/config.c +++ b/drivers/usb/gadget/config.c @@ -8,7 +8,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <asm/unaligned.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 27082f5152cb..6bd395a6235a 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/ #undef DEBUG -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c index 7f8e9564b9e5..c7eea7b34421 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_phy.c +++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/
-#include <common.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c index 1c34b753511d..16b2a03f9e4b 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c @@ -17,7 +17,6 @@
- Lukasz Majewski l.majewski@samsumg.com
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <linux/bug.h> diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c index c256cc31fbd2..9d08640ff23a 100644 --- a/drivers/usb/gadget/ep0.c +++ b/drivers/usb/gadget/ep0.c @@ -36,7 +36,6 @@
- XXX
*/
-#include <common.h> #include <serial.h> #include <usbdevice.h>
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index bb0d2971d06b..0a70035ce04b 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -8,7 +8,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <linux/usb/ch9.h> #include <linux/errno.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 36618f0bdf36..b8b29d399b13 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -7,7 +7,6 @@
- Copyright (C) 2008 Nokia Corporation
*/
-#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index ba216128ab27..f18c6a0a7611 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -10,7 +10,6 @@ */
#include <circbuf.h> -#include <common.h> #include <console.h> #include <errno.h> #include <g_dnl.h> diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index 44877df4ec6b..ca8b36e077bc 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -16,7 +16,6 @@
#include <env.h> #include <errno.h> -#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 09e740cc9622..8df0e3f331d1 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -11,7 +11,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <fastboot.h> diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index ef90c7ec7fb5..89a96dbb7a74 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -244,7 +244,6 @@ #include <hexdump.h> #include <log.h> #include <malloc.h> -#include <common.h> #include <console.h> #include <g_dnl.h> #include <dm/devres.h> diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index 98a7ffa2a752..d679cdae97c8 100644 --- a/drivers/usb/gadget/f_rockusb.c +++ b/drivers/usb/gadget/f_rockusb.c @@ -6,7 +6,6 @@ */ #include <command.h> #include <config.h> -#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index ca2760c00d0d..89496917a61f 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -17,7 +17,6 @@ */
#include <errno.h> -#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 0e7529dcdbb6..543721183480 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -15,7 +15,6 @@ */
#include <command.h> -#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index afb7b74f3057..b5b5f5d8c118 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -6,7 +6,6 @@
- Lukasz Majewski l.majewski@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h>
diff --git a/drivers/usb/gadget/max3420_udc.c b/drivers/usb/gadget/max3420_udc.c index fa655c98dcc5..5a227c0ffd99 100644 --- a/drivers/usb/gadget/max3420_udc.c +++ b/drivers/usb/gadget/max3420_udc.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <linux/errno.h> #include <linux/delay.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index e7276ccd37a3..5e6e5a054ca7 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c @@ -18,7 +18,6 @@
updates to merge with Linux 2.6, better match RNDIS spec
*/
-#include <common.h> #include <log.h> #include <net.h> #include <malloc.h> diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index ba658d922966..6bb419ae2abc 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -19,7 +19,6 @@ #include <malloc.h> #include <asm/cache.h> #include <linux/dma-mapping.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 30ee1cab0668..5dc23a55bb58 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/printk.h> diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index e2464ad923f8..4617a95bd0a7 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c @@ -6,7 +6,6 @@
Remy Bohmer <linux@bohmer.net>
*/
-#include <common.h> #include <linux/errno.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 637eb2dd06f5..a9dbb85f4e6c 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -4,7 +4,6 @@
- Copyright (C) 2014 Marek Vasut marex@denx.de
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index f9df59d2e5d7..d52e7d22d1a7 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -10,7 +10,6 @@
- Author: Neil Armstrong narmstron@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <reset.h> #include <clk.h> diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 4a3ab6111276..3e6834e38e38 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -6,7 +6,6 @@
- Author(s): Patrice Chotard, patrice.chotard@foss.st.com for STMicroelectronics.
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index c6d50fd4551a..ee751224463a 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -5,7 +5,6 @@
- Written-by: Bo Shen voice.shen@atmel.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index c1cdd4b0889a..1e4a5a0b6f6c 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -6,7 +6,6 @@
Vivek Gautam <gautam.vivek@samsung.com>
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 0569dd54fff9..ee3eb065b142 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -7,7 +7,6 @@
- Author: Tor Krill tor@excito.com
*/
-#include <common.h> #include <env.h> #include <log.h> #include <pci.h> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 936e30438d9f..23c3ed25554f 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 9839aa17492d..7d5519c65a9e 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -6,7 +6,6 @@
- All rights reserved.
*/ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c index 6093c8fb0b68..ca0ab57d49c2 100644 --- a/drivers/usb/host/ehci-marvell.c +++ b/drivers/usb/host/ehci-marvell.c @@ -5,7 +5,6 @@
- Written-by: Prafulla Wadaskar prafulla@marvell.com
*/
-#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 98fe7bc3bcb1..a081f71b187d 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -7,7 +7,6 @@
- Based on Linux driver
*/
-#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index c11279867c7c..fb912654097e 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -4,7 +4,6 @@
- Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index a35fcca43a23..31cd8a50f4a2 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -4,7 +4,6 @@
- Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <clk.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c index ddf7cc2d00a7..95af5c9254cb 100644 --- a/drivers/usb/host/ehci-mxs.c +++ b/drivers/usb/host/ehci-mxs.c @@ -6,7 +6,6 @@
- on behalf of DENX Software Engineering GmbH
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-npcm.c b/drivers/usb/host/ehci-npcm.c index 357a5614edb7..d2a9965b4b4f 100644 --- a/drivers/usb/host/ehci-npcm.c +++ b/drivers/usb/host/ehci-npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 765336a3c42b..a95fcad02131 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -10,8 +10,8 @@
*/
-#include <common.h> #include <log.h> +#include <time.h> #include <usb.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index e98ab312618d..572686580cd5 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -4,7 +4,6 @@
- All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 2cf16256703d..343893b9f19a 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -5,7 +5,6 @@
- Copyright (c) 2013 Lucas Stach
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 648e136447d9..5afe28ea3033 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -6,7 +6,6 @@
- Based on ehci-mx6 driver
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c index f7e458cb15a2..dfaff5c60f4e 100644 --- a/drivers/usb/host/ehci-zynq.c +++ b/drivers/usb/host/ehci-zynq.c @@ -5,7 +5,6 @@
- USB Low level initialization(Specific to zynq)
*/
-#include <common.h> #include <dm.h> #include <usb.h> #include <asm/arch/hardware.h> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 9b955c1bd678..b170f26e6c6a 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -4,7 +4,6 @@
- DENX Software Engineering mk@denx.de
*/
-#include <common.h> #include <asm/arch/clk.h>
int usb_cpu_init(void) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d3d73d238442..d321d147c2f9 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -3,7 +3,6 @@
- Copyright (C) 2012 Sughosh Ganu urwithsughosh@gmail.com
*/
-#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c index ceed1911a95a..f1325cd49534 100644 --- a/drivers/usb/host/ohci-generic.c +++ b/drivers/usb/host/ohci-generic.c @@ -3,7 +3,6 @@
- Copyright (C) 2015 Alexey Brodkin abrodkin@synopsys.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 3f4418198ccd..c020d13c43d2 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -27,7 +27,7 @@
to activate workaround for bug #41 or this driver will NOT work!
*/
-#include <common.h> +#include <config.h> #include <cpu_func.h> #include <asm/byteorder.h> #include <dm.h> diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/host/ohci-lpc32xx.c index a04b2961b961..ed04cae7afed 100644 --- a/drivers/usb/host/ohci-lpc32xx.c +++ b/drivers/usb/host/ohci-lpc32xx.c @@ -7,7 +7,6 @@
- Copyright (c) 2015 Tyco Fire Protection Products.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ohci-npcm.c b/drivers/usb/host/ohci-npcm.c index 9e1d52988099..ffeb6bc206a8 100644 --- a/drivers/usb/host/ohci-npcm.c +++ b/drivers/usb/host/ohci-npcm.c @@ -3,7 +3,6 @@
- Copyright (c) 2021 Nuvoton Technology Corp.
*/
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f061aec28966..f10f10924205 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -5,7 +5,6 @@
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 3ccbc16da379..f0b18bffba41 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -5,7 +5,6 @@
- Copyright (C) 2008 Yoshihiro Shimoda shimoda.yoshihiro@renesas.com
*/
-#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index 3d4f8d653b5d..e26f0b292ed5 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index a1cd0ad2d669..cd3a07e4c374 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_USB
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c index 7fa1c601dff5..362b46dc466e 100644 --- a/drivers/usb/host/usb_bootdev.c +++ b/drivers/usb/host/usb_bootdev.c @@ -6,7 +6,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c index fe17924028cd..2ffad148dea6 100644 --- a/drivers/usb/host/xhci-brcm.c +++ b/drivers/usb/host/xhci-brcm.c @@ -3,7 +3,6 @@
- Copyright (C) 2019 Broadcom.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 6cebe1cc30cb..e3e0ceff43e6 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -8,7 +8,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 270be934e7fc..6a2d422c4b8e 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -12,7 +12,6 @@
- exynos5 specific PHY-init sequence.
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index e67e09e31e4a..3484ae1d21ee 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -7,7 +7,6 @@
- Author: Ramneek Mehreshramneek.mehresh@freescale.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 72b753062650..045b0fba8128 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 63dfb793c6bd..7e288f0575b6 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -5,7 +5,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 46b89de85d1e..1338b1021c64 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -5,7 +5,6 @@
- MVEBU USB HOST xHCI Controller
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index 501129d769a2..66da94c07098 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -8,7 +8,6 @@
- Author: Dan Murphy dmurphy@ti.com
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 11f1c02000af..f6972af7963d 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -5,7 +5,6 @@
- All rights reserved.
*/
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <init.h> diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index fedcf7869295..38c5928faed5 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,7 +5,6 @@
- Renesas RCar USB HOST xHCI Controller
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 910c5f3352b8..1360a5940fa0 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,7 +13,6 @@
Vikas Sajjan <vikas.sajjan@samsung.com>
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/byteorder.h> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 741e186ee05b..d30725d3fcaa 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -19,7 +19,6 @@
- The quirk devices support hasn't been given yet.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index a6c4d97aee3f..96c483fb9afa 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -7,7 +7,6 @@ */
#include <hexdump.h> -#include <common.h> #include <asm/cache.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index c96ab459f93e..54246b49d5fe 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c @@ -6,7 +6,6 @@
- (c) 2007 Sebastian Siewior bigeasy@linutronix.de
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-uboot.c b/drivers/usb/isp1760/isp1760-uboot.c index 203500a4cb7f..8dcb7768a2c2 100644 --- a/drivers/usb/isp1760/isp1760-uboot.c +++ b/drivers/usb/isp1760/isp1760-uboot.c @@ -6,7 +6,6 @@
*/
-#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index b1b22b9357ce..ca86b58dfcd7 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c @@ -5,7 +5,6 @@
- Author: Chunfeng Yun chunfeng.yun@mediatek.com
*/
-#include <common.h> #include <dm/lists.h> #include <linux/iopoll.h>
diff --git a/drivers/usb/musb-new/am35x.c b/drivers/usb/musb-new/am35x.c index 0a52e09e19f1..42bc816e4f1e 100644 --- a/drivers/usb/musb-new/am35x.c +++ b/drivers/usb/musb-new/am35x.c @@ -24,7 +24,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <asm/omap_musb.h> #include <linux/bug.h> #include <linux/delay.h> diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c index 68fc0c36146d..7caf03cc2e14 100644 --- a/drivers/usb/musb-new/da8xx.c +++ b/drivers/usb/musb-new/da8xx.c @@ -13,7 +13,6 @@
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c index 1e632dca0462..14b28bbae6b1 100644 --- a/drivers/usb/musb-new/mt85xx.c +++ b/drivers/usb/musb-new/mt85xx.c @@ -9,7 +9,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index 00da554982fe..257e7685cfa3 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -79,7 +79,6 @@ #include <linux/platform_device.h> #include <linux/io.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c index a8ff7434c9f7..b73f3531ce24 100644 --- a/drivers/usb/musb-new/musb_dsps.c +++ b/drivers/usb/musb-new/musb_dsps.c @@ -31,7 +31,6 @@
#include <plat/usb.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/omap_musb.h> diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c index c6083963ede9..29e225aa0f11 100644 --- a/drivers/usb/musb-new/musb_gadget.c +++ b/drivers/usb/musb-new/musb_gadget.c @@ -22,7 +22,6 @@ #include <linux/dma-mapping.h> #include <linux/slab.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bug.h> diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c index 55ce8de99bb1..63eee31a6b3e 100644 --- a/drivers/usb/musb-new/musb_gadget_ep0.c +++ b/drivers/usb/musb-new/musb_gadget_ep0.c @@ -18,7 +18,6 @@ #include <linux/device.h> #include <linux/interrupt.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c index e5905d90d66f..2f2fc7c1359b 100644 --- a/drivers/usb/musb-new/musb_host.c +++ b/drivers/usb/musb-new/musb_host.c @@ -21,7 +21,6 @@ #include <linux/list.h> #include <linux/dma-mapping.h> #else -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 7cea9a2ed65c..43ab3245e5c3 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -1,4 +1,3 @@ -#include <common.h> #include <console.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index 308eff832c9e..c8dd73050b29 100644 --- a/drivers/usb/musb-new/omap2430.c +++ b/drivers/usb/musb-new/omap2430.c @@ -8,7 +8,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 4ed5e6e90c6c..0b25e5893b3c 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -9,7 +9,6 @@
- Based on the dsps "glue layer" code.
*/
-#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 778b01b22ea7..b577ba418780 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -15,7 +15,6 @@
- This file is part of the Inventra Controller Driver for Linux.
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index ed5e5194d8c9..76e8b88369e3 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -5,7 +5,6 @@
- (C) Copyright 2016
Texas Instruments Incorporated, <www.ti.com>
*/ -#include <common.h> #include <command.h> #include <console.h> #include <dm.h> diff --git a/drivers/usb/musb-new/ux500.c b/drivers/usb/musb-new/ux500.c index 57c7d5630d37..6b4ef3c85782 100644 --- a/drivers/usb/musb-new/ux500.c +++ b/drivers/usb/musb-new/ux500.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <generic-phy.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index f945f1f5e2c5..2c23043d40e9 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -9,7 +9,6 @@
- Copyright (c) 2010 Texas Instruments Incorporated
*/
-#include <common.h> #include <linux/delay.h>
#include "am35x.h" diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 9651f074a49d..260552e4dbd4 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -8,7 +8,6 @@
- Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
-#include <common.h> #include <linux/bitops.h>
#include "musb_core.h" diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index 4676cabae0aa..c95c6a482812 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -7,7 +7,6 @@
- Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
*/
-#include <common.h> #include <log.h> #include <usb.h> #include <linux/delay.h> diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index 2ffcb7caaad7..696855ee3a61 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -37,7 +37,6 @@
*/
-#include <common.h> #include <hang.h> #include <serial.h> #include <usbdevice.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index c46ad86d3d65..9ec5b2d172b8 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -3,7 +3,6 @@
- Copyright 2016 Rockchip Electronics Co., Ltd
*/
-#include <common.h> #include <hang.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/usb/ulpi/omap-ulpi-viewport.c b/drivers/usb/ulpi/omap-ulpi-viewport.c index 1b01cd4c559f..6f0c3eb154ee 100644 --- a/drivers/usb/ulpi/omap-ulpi-viewport.c +++ b/drivers/usb/ulpi/omap-ulpi-viewport.c @@ -7,7 +7,6 @@
- Author: Govindraj R govindraj.raja@ti.com
*/
-#include <common.h> #include <log.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index 55a62808384d..bac20a02f018 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -13,7 +13,6 @@
- Copyright (C) 2011 Google, Inc.
*/
-#include <common.h> #include <asm/io.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index b5d2c2c2d1c3..128adcbde134 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -19,7 +19,6 @@
- Freescale Semiconductors
*/
-#include <common.h> #include <exports.h> #include <log.h>
#include <linux/delay.h>
2.34.1
There is a warning for RISC-V maybe to do with having only the generic find_next_zero_bit and not an optimized one in arch/riscv/include/asm/bitops.h:
CC drivers/usb/cdns3/gadget.o In file included from drivers/usb/cdns3/gadget.c:70: include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’: include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration] 170 | index = find_next_zero_bit(map, size, start); | ^~~~~~~~~~~~~~~~~~ | find_next_bit CC drivers/usb/cdns3/ep0.o In file included from include/linux/usb/composite.h:26, from drivers/usb/cdns3/ep0.c:19: include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’: include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration] 170 | index = find_next_zero_bit(map, size, start); | ^~~~~~~~~~~~~~~~~~ | find_next_bit CC drivers/usb/cdns3/host.o
I would guess that for architectures that have optimized versions there is no implicit declaration. This was HEAD (2f1e76bc) with patch series 405474 "Add Starfive JH7110 Cadence USB driver" applied and starfive_visionfive2_defconfig. -E
I suspect you missed one of the earlier series, all platforms compile without warnings in the end.

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Anatolij Gustschin agust@denx.de Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michal Simek michal.simek@amd.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Johan Jonker jbx6244@gmail.com --- drivers/video/anx9804.c | 1 - drivers/video/atmel_hlcdfb.c | 1 - drivers/video/atmel_lcdfb.c | 1 - drivers/video/backlight-uclass.c | 1 - drivers/video/backlight_gpio.c | 1 - drivers/video/bcm2835.c | 1 - drivers/video/bmp.c | 1 - drivers/video/bochs.c | 1 - drivers/video/bridge/anx6345.c | 1 - drivers/video/bridge/ps862x.c | 1 - drivers/video/bridge/ptn3460.c | 1 - drivers/video/bridge/ssd2825.c | 1 - drivers/video/bridge/video-bridge-uclass.c | 1 - drivers/video/broadwell_igd.c | 2 +- drivers/video/console_normal.c | 1 - drivers/video/console_rotate.c | 1 - drivers/video/console_truetype.c | 1 - drivers/video/coreboot.c | 1 - drivers/video/display-uclass.c | 1 - drivers/video/dsi-host-uclass.c | 1 - drivers/video/dw_hdmi.c | 3 ++- drivers/video/dw_mipi_dsi.c | 1 - drivers/video/efi.c | 1 - drivers/video/endeavoru-panel.c | 1 - drivers/video/exynos/exynos_dp.c | 1 - drivers/video/exynos/exynos_dp_lowlevel.c | 1 - drivers/video/exynos/exynos_fb.c | 1 - drivers/video/exynos/exynos_mipi_dsi.c | 1 - drivers/video/exynos/exynos_mipi_dsi_common.c | 1 - drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 - drivers/video/himax-hx8394.c | 1 - drivers/video/hitachi_tx18d42vm_lcd.c | 1 - drivers/video/hx8238d.c | 1 - drivers/video/ihs_video_out.c | 1 - drivers/video/imx/ipu_common.c | 2 +- drivers/video/imx/ipu_disp.c | 1 - drivers/video/imx/mxc_ipuv3_fb.c | 1 - drivers/video/ivybridge_igd.c | 1 - drivers/video/lm3533_backlight.c | 1 - drivers/video/logicore_dp_tx.c | 1 - drivers/video/mali_dp.c | 1 - drivers/video/mcde_simple.c | 1 - drivers/video/meson/meson_canvas.c | 1 - drivers/video/meson/meson_dw_hdmi.c | 1 - drivers/video/meson/meson_plane.c | 1 - drivers/video/meson/meson_vclk.c | 1 - drivers/video/meson/meson_venc.c | 1 - drivers/video/meson/meson_vpu.c | 1 - drivers/video/meson/meson_vpu_init.c | 1 - drivers/video/mipi_dsi.c | 1 - drivers/video/mvebu_lcd.c | 1 - drivers/video/mxsfb.c | 1 - drivers/video/nexell/s5pxx18_dp.c | 1 - drivers/video/nexell/s5pxx18_dp_hdmi.c | 1 - drivers/video/nexell/s5pxx18_dp_lvds.c | 2 +- drivers/video/nexell/s5pxx18_dp_mipi.c | 1 - drivers/video/nexell/s5pxx18_dp_rgb.c | 2 +- drivers/video/nexell/soc/s5pxx18_soc_disptop.h | 1 + drivers/video/nexell_display.c | 1 - drivers/video/omap3_dss.c | 1 - drivers/video/orisetech_otm8009a.c | 1 - drivers/video/panel-uclass.c | 1 - drivers/video/pwm_backlight.c | 1 - drivers/video/raydium-rm68200.c | 1 - drivers/video/renesas-r61307.c | 1 - drivers/video/renesas-r69328.c | 1 - drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 1 - drivers/video/rockchip/rk3288_hdmi.c | 1 - drivers/video/rockchip/rk3288_mipi.c | 1 - drivers/video/rockchip/rk3288_vop.c | 1 - drivers/video/rockchip/rk3399_hdmi.c | 1 - drivers/video/rockchip/rk3399_mipi.c | 1 - drivers/video/rockchip/rk3399_vop.c | 1 - drivers/video/rockchip/rk_edp.c | 1 - drivers/video/rockchip/rk_hdmi.c | 1 - drivers/video/rockchip/rk_lvds.c | 1 - drivers/video/rockchip/rk_mipi.c | 1 - drivers/video/rockchip/rk_vop.c | 1 - drivers/video/sandbox_dsi_host.c | 1 - drivers/video/sandbox_osd.c | 1 - drivers/video/sandbox_sdl.c | 1 - drivers/video/seps525.c | 1 - drivers/video/simple_panel.c | 1 - drivers/video/simplefb.c | 1 - drivers/video/ssd2828.c | 1 - drivers/video/stm32/stm32_dsi.c | 1 - drivers/video/stm32/stm32_ltdc.c | 1 - drivers/video/sunxi/lcdc.c | 1 - drivers/video/sunxi/sunxi_de2.c | 1 - drivers/video/sunxi/sunxi_display.c | 2 +- drivers/video/sunxi/sunxi_dw_hdmi.c | 1 - drivers/video/sunxi/sunxi_lcd.c | 1 - drivers/video/sunxi/tve_common.c | 1 - drivers/video/tda19988.c | 1 - drivers/video/tdo-tl070wsh30.c | 1 - drivers/video/tegra124/display.c | 2 +- drivers/video/tegra124/dp.c | 2 +- drivers/video/tegra124/sor.c | 1 - drivers/video/tegra20/mipi-phy.c | 1 - drivers/video/tegra20/tegra-dsi.c | 1 - drivers/video/tegra20/tegra-pwm-backlight.c | 1 - drivers/video/ti/tilcdc-panel.c | 1 - drivers/video/ti/tilcdc.c | 1 - drivers/video/tidss/tidss_drv.c | 1 - drivers/video/vesa.c | 1 - drivers/video/vidconsole-uclass.c | 1 - drivers/video/video-uclass.c | 1 - drivers/video/video_bmp.c | 1 - drivers/video/video_osd-uclass.c | 1 - drivers/video/videomodes.c | 1 - drivers/video/zynqmp/zynqmp_dpsub.c | 1 - 111 files changed, 10 insertions(+), 110 deletions(-)
diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index 52b5988ba5f2..a149e6f5b95d 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -9,7 +9,6 @@ * interface for driving eDP TFT displays. */
-#include <common.h> #include <i2c.h> #include <linux/delay.h> #include "anx98xx-edp.h" diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 652ba1418018..89bc0eeb680a 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -5,7 +5,6 @@ * Copyright (C) 2012 Atmel Corporation */
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 5a7a54ada70e..281c3a1d6632 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -5,7 +5,6 @@ * Copyright (C) 2007 Atmel Corporation */
-#include <common.h> #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c index c14996d003c0..2a09b2da9106 100644 --- a/drivers/video/backlight-uclass.c +++ b/drivers/video/backlight-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h>
diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index eea824ab5e16..b26fa9a8acf1 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -4,7 +4,6 @@ * Author: Patrick Delaunay patrick.delaunay@foss.st.com */
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 63efa762db16..0c81e6066229 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -3,7 +3,6 @@ * (C) Copyright 2012 Stephen Warren */
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/bmp.c b/drivers/video/bmp.c index bab6fa7265af..291ed36440c8 100644 --- a/drivers/video/bmp.c +++ b/drivers/video/bmp.c @@ -8,7 +8,6 @@ * BMP handling routines */
-#include <common.h> #include <bmp_layout.h> #include <command.h> #include <dm.h> diff --git a/drivers/video/bochs.c b/drivers/video/bochs.c index 022ea38d4cfe..00e673a4db08 100644 --- a/drivers/video/bochs.c +++ b/drivers/video/bochs.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 93fa25f16e31..8cee4c958bd8 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 Vasily Khoruzhick anarsoul@gmail.com */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index d1d22a6e235c..efd03752281c 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 4760f04108f7..5851e1ef15e9 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/bridge/ssd2825.c b/drivers/video/bridge/ssd2825.c index f0ef3dafb93b..f978021c860e 100644 --- a/drivers/video/bridge/ssd2825.c +++ b/drivers/video/bridge/ssd2825.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index f389bc6b1475..2084a2e03ee8 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <dm.h> #include <errno.h> #include <edid.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index 83b6c908a8db..a26154ab588f 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -5,12 +5,12 @@ * Copyright (C) 2016 Google, Inc */
-#include <common.h> #include <bios_emul.h> #include <bootstage.h> #include <dm.h> #include <init.h> #include <log.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <asm/cpu.h> diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 34ef5a522942..6f4194a18147 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -6,7 +6,6 @@ * (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com */
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c index e4303dfb364c..dc9698362741 100644 --- a/drivers/video/console_rotate.c +++ b/drivers/video/console_rotate.c @@ -6,7 +6,6 @@ * (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com */
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 28665a327575..c435162d3f94 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -3,7 +3,6 @@ * Copyright (c) 2016 Google, Inc */
-#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c index 5b718ae3e5a5..9aede2626423 100644 --- a/drivers/video/coreboot.c +++ b/drivers/video/coreboot.c @@ -3,7 +3,6 @@ * Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <init.h> #include <vesa.h> diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 2da3d1d14e95..61a73e1bc2a6 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_DISPLAY
-#include <common.h> #include <dm.h> #include <display.h> #include <edid.h> diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index 6e5256eb1265..fde275ad7e2e 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_DSI_HOST
-#include <common.h> #include <dm.h> #include <dsi_host.h>
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index c217af97878e..35559cef2298 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -5,13 +5,14 @@ * Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net */
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> +#include <time.h> #include <linux/delay.h> +#include <linux/errno.h> #include "dw_hdmi.h"
struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index a7e0784596a9..c74fe678d12a 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -9,7 +9,6 @@ * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c. */
-#include <common.h> #include <clk.h> #include <dsi_host.h> #include <dm.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 28ac15ff61b9..78d123fad4be 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
-#include <common.h> #include <dm.h> #include <efi_api.h> #include <log.h> diff --git a/drivers/video/endeavoru-panel.c b/drivers/video/endeavoru-panel.c index 1bff641434e1..d4ba4d8b6da6 100644 --- a/drivers/video/endeavoru-panel.c +++ b/drivers/video/endeavoru-panel.c @@ -3,7 +3,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 59838da6c926..b0afb2338fb7 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -5,7 +5,6 @@ * Author: Donghwa Lee dh09.lee@samsung.com */
-#include <common.h> #include <dm.h> #include <display.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index ae500a702804..f007b319b20e 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 86970a6d5d20..0407a3f51b0d 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <display.h> #include <div64.h> #include <dm.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 804fcd0b2484..edeb0a87bbb7 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -6,7 +6,6 @@ * Author: Donghwa Lee dh09.lee@samsung.com */
-#include <common.h> #include <log.h> #include <malloc.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index be67cebae7f2..fc2767adc38c 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -6,7 +6,6 @@ * Author: Donghwa Lee dh09.lee@samsung.com */
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 8111acd9a0b5..9f18b5da1026 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -6,7 +6,6 @@ * Author: Donghwa Lee dh09.lee@samsung.com */
-#include <common.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> diff --git a/drivers/video/himax-hx8394.c b/drivers/video/himax-hx8394.c index 63637b4db022..cb7f93e9c997 100644 --- a/drivers/video/himax-hx8394.c +++ b/drivers/video/himax-hx8394.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2022 Ondrej Jirman megi@xff.cz */ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index 95984fe3d3d1..68f7b75eef99 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -5,7 +5,6 @@ * (C) Copyright 2015 Hans de Goede hdegoede@redhat.com */
-#include <common.h> #include <malloc.h> #include <linux/delay.h>
diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index 6ee97cb4ff3a..2491a32810e2 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -12,7 +12,6 @@ * */
-#include <common.h> #include <dm.h> #include <panel.h> #include <spi.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index 73b8f4bd1c9b..bf4d4995c36c 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -9,7 +9,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.de */
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index b0a99c9cd5d9..d582fb8ad9d9 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -11,7 +11,7 @@ */
/* #define DEBUG */ -#include <common.h> +#include <config.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index 144322e4e26b..aaba7d135a46 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -12,7 +12,6 @@
/* #define DEBUG */
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 7e60385bcfa5..039b22086a93 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -10,7 +10,6 @@ * (C) Copyright 2004-2010 Freescale Semiconductor, Inc. */
-#include <common.h> #include <log.h> #include <part.h> #include <asm/cache.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index c2cc976618a1..ad688640733e 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Google, Inc */
-#include <common.h> #include <bios_emul.h> #include <dm.h> #include <errno.h> diff --git a/drivers/video/lm3533_backlight.c b/drivers/video/lm3533_backlight.c index 00297a09b7fc..6b51fa0628e4 100644 --- a/drivers/video/lm3533_backlight.c +++ b/drivers/video/lm3533_backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 624084d38bca..643a77a0f4e1 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -9,7 +9,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dbb2f5386171..c89212674624 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -5,7 +5,6 @@ * */ #define DEBUG -#include <common.h> #include <malloc.h> #include <video.h> #include <dm.h> diff --git a/drivers/video/mcde_simple.c b/drivers/video/mcde_simple.c index 0924ceee3098..2ba5d0de1529 100644 --- a/drivers/video/mcde_simple.c +++ b/drivers/video/mcde_simple.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/meson/meson_canvas.c b/drivers/video/meson/meson_canvas.c index eccac2f8f24a..dd4c546222d5 100644 --- a/drivers/video/meson/meson_canvas.c +++ b/drivers/video/meson/meson_canvas.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <asm/io.h>
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 259af1b45717..587df7beb9b0 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -4,7 +4,6 @@ * Author: Jorge Ramirez-Ortiz jramirez@baylibre.com */
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index e3f784ecfe42..899ce22d067e 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index e718a0074ed6..4761ff661e4e 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <edid.h> #include <linux/bitops.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index e7366dd2fdea..1bc6aaf73055 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <dm.h> #include <edid.h> #include <fdtdec.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index 67d4ce7b3b49..ca627728743b 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -6,7 +6,6 @@ * Author: Neil Armstrong narmstrong@baylibre.com */
-#include <common.h> #include <display.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index c9808e1c6317..0e34cefd1002 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -8,7 +8,6 @@
#define DEBUG
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c index ecacea1dbebd..dc949c8ae61f 100644 --- a/drivers/video/mipi_dsi.c +++ b/drivers/video/mipi_dsi.c @@ -32,7 +32,6 @@ * */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index d3d07e5f8333..3fc5640b71ec 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -5,7 +5,6 @@ * Initialization of LCD interface and setup of SPLASH screen image */
-#include <common.h> #include <dm.h> #include <part.h> #include <video.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 515363f6a49b..792d6314d15e 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -4,7 +4,6 @@ * * Copyright (C) 2011-2013 Marek Vasut marex@denx.de */ -#include <common.h> #include <clk.h> #include <dm.h> #include <env.h> diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c index 2248f4790575..16a489b88dc2 100644 --- a/drivers/video/nexell/s5pxx18_dp.c +++ b/drivers/video/nexell/s5pxx18_dp.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c index 3f1fb8a5757b..109d9f28bb01 100644 --- a/drivers/video/nexell/s5pxx18_dp_hdmi.c +++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c index f8ea63fdf1b3..5db8d2b73b14 100644 --- a/drivers/video/nexell/s5pxx18_dp_lvds.c +++ b/drivers/video/nexell/s5pxx18_dp_lvds.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/nexell.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c index 670272b26802..58493a825982 100644 --- a/drivers/video/nexell/s5pxx18_dp_mipi.c +++ b/drivers/video/nexell/s5pxx18_dp_mipi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h>
#include <asm/arch/nexell.h> diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c index 44e8edb02a22..6abb8b5e216b 100644 --- a/drivers/video/nexell/s5pxx18_dp_rgb.c +++ b/drivers/video/nexell/s5pxx18_dp_rgb.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/display.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h index c7bf5043e605..4ad353256ebc 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h +++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h @@ -8,6 +8,7 @@ #ifndef _S5PXX18_SOC_DISPTOP_H_ #define _S5PXX18_SOC_DISPTOP_H_
+#include <linux/types.h> #include "s5pxx18_soc_disptype.h"
#define NUMBER_OF_DISPTOP_MODULE 1 diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index af2698ffca84..7bda33fb16e1 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index 432b16bfbfe7..0b7ce348d5ad 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -25,7 +25,6 @@ * MA 02111-1307 USA */
-#include <common.h> #include <asm/io.h> #include <asm/arch/dss.h>
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 848f174b6e48..a29e909decc9 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -7,7 +7,6 @@ * This otm8009a panel driver is inspired from the Linux Kernel driver * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c. */ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c index 1f7e20e0b506..52a3466dc8c1 100644 --- a/drivers/video/panel-uclass.c +++ b/drivers/video/panel-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL
-#include <common.h> #include <dm.h> #include <panel.h>
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 1c747d98d7ac..a4576c888cf0 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index f1fce55a2cb2..b8662ca22bf2 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -7,7 +7,6 @@ * This rm68200 panel driver is inspired from the Linux Kernel driver * drivers/gpu/drm/panel/panel-raydium-rm68200.c. */ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/renesas-r61307.c b/drivers/video/renesas-r61307.c index 3f5859055c98..a3697bce5ee3 100644 --- a/drivers/video/renesas-r61307.c +++ b/drivers/video/renesas-r61307.c @@ -5,7 +5,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/renesas-r69328.c b/drivers/video/renesas-r69328.c index 082f5bc3d0a0..9861c3fef11a 100644 --- a/drivers/video/renesas-r69328.c +++ b/drivers/video/renesas-r69328.c @@ -5,7 +5,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index fb784636e877..fa512173510b 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -24,7 +24,6 @@ #include <dm/lists.h> #include <linux/iopoll.h>
-#include <common.h> #include <log.h> #include <video.h> #include <dm/device-internal.h> diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index efa87540340b..3d39f31a5ade 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -3,7 +3,6 @@ * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 9d42119c8261..850fe3107549 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -4,7 +4,6 @@ * Author: Eric Gao eric.gao@rock-chips.com */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index a4683852ea0c..282831eaac44 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -5,7 +5,6 @@ * Copyright 2014 Rockchip Inc. */
-#include <common.h> #include <display.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c index 5f3f5d26886d..c7630ccf5558 100644 --- a/drivers/video/rockchip/rk3399_hdmi.c +++ b/drivers/video/rockchip/rk3399_hdmi.c @@ -3,7 +3,6 @@ * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index b62d80866745..57e36eed6a99 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -4,7 +4,6 @@ * Author: Eric Gao eric.gao@rock-chips.com */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index cb589c7537e6..17e1601e8144 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -5,7 +5,6 @@ * Copyright 2014 Rockchip Inc. */
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index 5f68a610e4ac..eb881ba4b0ef 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -4,7 +4,6 @@ * Copyright 2014 Rockchip Inc. */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index d31f6a4ff81b..0ac0a3a1ecd0 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -5,7 +5,6 @@ * Copyright 2014 Rockchip Inc. */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index d0a015e31ee8..c969dae30b69 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -3,7 +3,6 @@ * Copyright 2016 Rockchip Inc. */
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f14cbc6dbf7f..0a603083ba9a 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -4,7 +4,6 @@ * Author: Eric Gao eric.gao@rock-chips.com */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index acc02e5d7c78..17dfe62c9dae 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -4,7 +4,6 @@ * Copyright 2014 Rockchip Inc. */
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sandbox_dsi_host.c b/drivers/video/sandbox_dsi_host.c index c84a27ee3be6..7025ac986e3c 100644 --- a/drivers/video/sandbox_dsi_host.c +++ b/drivers/video/sandbox_dsi_host.c @@ -3,7 +3,6 @@ * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */
-#include <common.h> #include <display.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c index 2a854d3958b7..bedc32b7c80e 100644 --- a/drivers/video/sandbox_osd.c +++ b/drivers/video/sandbox_osd.c @@ -3,7 +3,6 @@ * (C) Copyright 2018 * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc */ -#include <common.h> #include <display.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 9081c7da62e4..69dfa9302735 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -3,7 +3,6 @@ * Copyright (c) 2013 Google, Inc */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c index 74c8721e1e11..86cd301c4b91 100644 --- a/drivers/video/seps525.c +++ b/drivers/video/seps525.c @@ -6,7 +6,6 @@ * Copyright (C) 2020 Xilinx Inc. */
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 76a30427a59f..b6c5b058b2e9 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -4,7 +4,6 @@ * Written by Simon Glass sjg@chromium.org */
-#include <common.h> #include <backlight.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 33bb78bc3a3e..cb518b149cb5 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -3,7 +3,6 @@ * (C) Copyright 2017 Rob Clark */
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 948f5e74d0fe..4334bbd72353 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -9,7 +9,6 @@ * interface for driving a MIPI compatible TFT display. */
-#include <common.h> #include <malloc.h> #include <mipi_display.h> #include <asm/gpio.h> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index a18c1e027a87..438ed41e8d5f 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <clk.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 4f60ba8ebeeb..0a062c8939db 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 73033c3b8589..264d775c1256 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -7,7 +7,6 @@ * (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net */
-#include <common.h> #include <log.h> #include <linux/delay.h>
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index e02d359cd259..154641b9a699 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -5,7 +5,6 @@ * (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net */
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 8da44a1bb6d8..4a6a89ef9d26 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -6,7 +6,7 @@ * (C) Copyright 2014-2015 Hans de Goede hdegoede@redhat.com */
-#include <common.h> +#include <config.h> #include <display.h> #include <dm.h> #include <cpu_func.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index a5e8d39e98f8..b9c03ea03864 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <display.h> #include <dm.h> #include <dw_hdmi.h> diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 7a01cc343cac..953233fcd683 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -5,7 +5,6 @@ * (C) Copyright 2017 Vasily Khoruzhick anarsoul@gmail.com */
-#include <common.h> #include <display.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/sunxi/tve_common.c b/drivers/video/sunxi/tve_common.c index 35251371d14f..7bc2b3b29090 100644 --- a/drivers/video/sunxi/tve_common.c +++ b/drivers/video/sunxi/tve_common.c @@ -7,7 +7,6 @@ * (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net */
-#include <common.h>
#include <asm/arch/tve.h> #include <asm/io.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 244874390454..ebc8521c6edd 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -5,7 +5,6 @@ * Based on the Linux driver, (C) 2012 Texas Instruments */
-#include <common.h> #include <dm.h> #include <display.h> #include <i2c.h> diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index 273672db024a..d772958f46ed 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 BayLibre, SAS * Author: Neil Armstrong narmstrong@baylibre.com */ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index 9261cc9384a2..abe31e27d84d 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -5,7 +5,6 @@ * Extracted from Chromium coreboot commit 3f59b13d */
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <edid.h> @@ -14,6 +13,7 @@ #include <edid.h> #include <log.h> #include <part.h> +#include <time.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index b27b1633bab5..763f7ee39fcd 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -4,12 +4,12 @@ * Copyright 2014 Google Inc. */
-#include <common.h> #include <display.h> #include <dm.h> #include <div64.h> #include <errno.h> #include <log.h> +#include <time.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 258685182c7d..1ce5330c6bcf 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -3,7 +3,6 @@ * Copyright (c) 2011-2013, NVIDIA Corporation. */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/tegra20/mipi-phy.c b/drivers/video/tegra20/mipi-phy.c index c3ebc4074b53..576262e405d6 100644 --- a/drivers/video/tegra20/mipi-phy.c +++ b/drivers/video/tegra20/mipi-phy.c @@ -3,7 +3,6 @@ * Copyright (C) 2013 NVIDIA Corporation */
-#include <common.h> #include <linux/err.h>
#include "mipi-phy.h" diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 13dae37806f1..35a8e6c176b3 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -4,7 +4,6 @@ * Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pwm-backlight.c index 5f93f57fe908..79d8a021a3ac 100644 --- a/drivers/video/tegra20/tegra-pwm-backlight.c +++ b/drivers/video/tegra20/tegra-pwm-backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/ti/tilcdc-panel.c b/drivers/video/ti/tilcdc-panel.c index df95086a5151..d40765230600 100644 --- a/drivers/video/ti/tilcdc-panel.c +++ b/drivers/video/ti/tilcdc-panel.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <backlight.h> #include <clk.h> #include <display.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 2734754ecde7..493e2f18cd2d 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -3,7 +3,6 @@ * Copyright (C) 2020 Dario Binacchi dariobin@libero.it */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 1380c6b69375..865d4bddb7f9 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -9,7 +9,6 @@ * Author: Tomi Valkeinen tomi.valkeinen@ti.com */
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/video/vesa.c b/drivers/video/vesa.c index 50912c5c8bca..ab756ac8ea12 100644 --- a/drivers/video/vesa.c +++ b/drivers/video/vesa.c @@ -3,7 +3,6 @@ * Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 5d06e51ff236..80e7adf6a1a4 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
-#include <common.h> #include <abuf.h> #include <charset.h> #include <command.h> diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 7b5d1dfbb3bd..ff1382f4a43b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <bloblist.h> #include <console.h> #include <cpu_func.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index 45f003c8251a..ad512d99a1b9 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -3,7 +3,6 @@ * Copyright (c) 2015 Google, Inc */
-#include <common.h> #include <bmp_layout.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/video_osd-uclass.c b/drivers/video/video_osd-uclass.c index 0d3aae4d8272..923686345ff7 100644 --- a/drivers/video/video_osd-uclass.c +++ b/drivers/video/video_osd-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_OSD
-#include <common.h> #include <dm.h> #include <video_osd.h>
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 35955a5df7dd..d86d86798415 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -55,7 +55,6 @@ "myvideo" and setting the variable "videomode=myvideo".. ****************************************************************************/
-#include <common.h> #include <edid.h> #include <env.h> #include <errno.h> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c index def4dcf6261a..1405b29cb8b9 100644 --- a/drivers/video/zynqmp/zynqmp_dpsub.c +++ b/drivers/video/zynqmp/zynqmp_dpsub.c @@ -6,7 +6,6 @@ * Xilinx displayport(DP) Tx Subsytem driver */
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h>

On Thu, 2 May 2024 at 02:34, Tom Rini trini@konsulko.com wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Peter Robinson pbrobinson@gmail.com
LGTM.
Cc: Anatolij Gustschin agust@denx.de Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michal Simek michal.simek@amd.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Johan Jonker jbx6244@gmail.com
drivers/video/anx9804.c | 1 - drivers/video/atmel_hlcdfb.c | 1 - drivers/video/atmel_lcdfb.c | 1 - drivers/video/backlight-uclass.c | 1 - drivers/video/backlight_gpio.c | 1 - drivers/video/bcm2835.c | 1 - drivers/video/bmp.c | 1 - drivers/video/bochs.c | 1 - drivers/video/bridge/anx6345.c | 1 - drivers/video/bridge/ps862x.c | 1 - drivers/video/bridge/ptn3460.c | 1 - drivers/video/bridge/ssd2825.c | 1 - drivers/video/bridge/video-bridge-uclass.c | 1 - drivers/video/broadwell_igd.c | 2 +- drivers/video/console_normal.c | 1 - drivers/video/console_rotate.c | 1 - drivers/video/console_truetype.c | 1 - drivers/video/coreboot.c | 1 - drivers/video/display-uclass.c | 1 - drivers/video/dsi-host-uclass.c | 1 - drivers/video/dw_hdmi.c | 3 ++- drivers/video/dw_mipi_dsi.c | 1 - drivers/video/efi.c | 1 - drivers/video/endeavoru-panel.c | 1 - drivers/video/exynos/exynos_dp.c | 1 - drivers/video/exynos/exynos_dp_lowlevel.c | 1 - drivers/video/exynos/exynos_fb.c | 1 - drivers/video/exynos/exynos_mipi_dsi.c | 1 - drivers/video/exynos/exynos_mipi_dsi_common.c | 1 - drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 - drivers/video/himax-hx8394.c | 1 - drivers/video/hitachi_tx18d42vm_lcd.c | 1 - drivers/video/hx8238d.c | 1 - drivers/video/ihs_video_out.c | 1 - drivers/video/imx/ipu_common.c | 2 +- drivers/video/imx/ipu_disp.c | 1 - drivers/video/imx/mxc_ipuv3_fb.c | 1 - drivers/video/ivybridge_igd.c | 1 - drivers/video/lm3533_backlight.c | 1 - drivers/video/logicore_dp_tx.c | 1 - drivers/video/mali_dp.c | 1 - drivers/video/mcde_simple.c | 1 - drivers/video/meson/meson_canvas.c | 1 - drivers/video/meson/meson_dw_hdmi.c | 1 - drivers/video/meson/meson_plane.c | 1 - drivers/video/meson/meson_vclk.c | 1 - drivers/video/meson/meson_venc.c | 1 - drivers/video/meson/meson_vpu.c | 1 - drivers/video/meson/meson_vpu_init.c | 1 - drivers/video/mipi_dsi.c | 1 - drivers/video/mvebu_lcd.c | 1 - drivers/video/mxsfb.c | 1 - drivers/video/nexell/s5pxx18_dp.c | 1 - drivers/video/nexell/s5pxx18_dp_hdmi.c | 1 - drivers/video/nexell/s5pxx18_dp_lvds.c | 2 +- drivers/video/nexell/s5pxx18_dp_mipi.c | 1 - drivers/video/nexell/s5pxx18_dp_rgb.c | 2 +- drivers/video/nexell/soc/s5pxx18_soc_disptop.h | 1 + drivers/video/nexell_display.c | 1 - drivers/video/omap3_dss.c | 1 - drivers/video/orisetech_otm8009a.c | 1 - drivers/video/panel-uclass.c | 1 - drivers/video/pwm_backlight.c | 1 - drivers/video/raydium-rm68200.c | 1 - drivers/video/renesas-r61307.c | 1 - drivers/video/renesas-r69328.c | 1 - drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 1 - drivers/video/rockchip/rk3288_hdmi.c | 1 - drivers/video/rockchip/rk3288_mipi.c | 1 - drivers/video/rockchip/rk3288_vop.c | 1 - drivers/video/rockchip/rk3399_hdmi.c | 1 - drivers/video/rockchip/rk3399_mipi.c | 1 - drivers/video/rockchip/rk3399_vop.c | 1 - drivers/video/rockchip/rk_edp.c | 1 - drivers/video/rockchip/rk_hdmi.c | 1 - drivers/video/rockchip/rk_lvds.c | 1 - drivers/video/rockchip/rk_mipi.c | 1 - drivers/video/rockchip/rk_vop.c | 1 - drivers/video/sandbox_dsi_host.c | 1 - drivers/video/sandbox_osd.c | 1 - drivers/video/sandbox_sdl.c | 1 - drivers/video/seps525.c | 1 - drivers/video/simple_panel.c | 1 - drivers/video/simplefb.c | 1 - drivers/video/ssd2828.c | 1 - drivers/video/stm32/stm32_dsi.c | 1 - drivers/video/stm32/stm32_ltdc.c | 1 - drivers/video/sunxi/lcdc.c | 1 - drivers/video/sunxi/sunxi_de2.c | 1 - drivers/video/sunxi/sunxi_display.c | 2 +- drivers/video/sunxi/sunxi_dw_hdmi.c | 1 - drivers/video/sunxi/sunxi_lcd.c | 1 - drivers/video/sunxi/tve_common.c | 1 - drivers/video/tda19988.c | 1 - drivers/video/tdo-tl070wsh30.c | 1 - drivers/video/tegra124/display.c | 2 +- drivers/video/tegra124/dp.c | 2 +- drivers/video/tegra124/sor.c | 1 - drivers/video/tegra20/mipi-phy.c | 1 - drivers/video/tegra20/tegra-dsi.c | 1 - drivers/video/tegra20/tegra-pwm-backlight.c | 1 - drivers/video/ti/tilcdc-panel.c | 1 - drivers/video/ti/tilcdc.c | 1 - drivers/video/tidss/tidss_drv.c | 1 - drivers/video/vesa.c | 1 - drivers/video/vidconsole-uclass.c | 1 - drivers/video/video-uclass.c | 1 - drivers/video/video_bmp.c | 1 - drivers/video/video_osd-uclass.c | 1 - drivers/video/videomodes.c | 1 - drivers/video/zynqmp/zynqmp_dpsub.c | 1 - 111 files changed, 10 insertions(+), 110 deletions(-)
diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index 52b5988ba5f2..a149e6f5b95d 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -9,7 +9,6 @@
- interface for driving eDP TFT displays.
*/
-#include <common.h> #include <i2c.h> #include <linux/delay.h> #include "anx98xx-edp.h" diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 652ba1418018..89bc0eeb680a 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2012 Atmel Corporation
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 5a7a54ada70e..281c3a1d6632 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2007 Atmel Corporation
*/
-#include <common.h> #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c index c14996d003c0..2a09b2da9106 100644 --- a/drivers/video/backlight-uclass.c +++ b/drivers/video/backlight-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h>
diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index eea824ab5e16..b26fa9a8acf1 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -4,7 +4,6 @@
- Author: Patrick Delaunay patrick.delaunay@foss.st.com
*/
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 63efa762db16..0c81e6066229 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -3,7 +3,6 @@
- (C) Copyright 2012 Stephen Warren
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/bmp.c b/drivers/video/bmp.c index bab6fa7265af..291ed36440c8 100644 --- a/drivers/video/bmp.c +++ b/drivers/video/bmp.c @@ -8,7 +8,6 @@
- BMP handling routines
*/
-#include <common.h> #include <bmp_layout.h> #include <command.h> #include <dm.h> diff --git a/drivers/video/bochs.c b/drivers/video/bochs.c index 022ea38d4cfe..00e673a4db08 100644 --- a/drivers/video/bochs.c +++ b/drivers/video/bochs.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 93fa25f16e31..8cee4c958bd8 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index d1d22a6e235c..efd03752281c 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 4760f04108f7..5851e1ef15e9 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/bridge/ssd2825.c b/drivers/video/bridge/ssd2825.c index f0ef3dafb93b..f978021c860e 100644 --- a/drivers/video/bridge/ssd2825.c +++ b/drivers/video/bridge/ssd2825.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index f389bc6b1475..2084a2e03ee8 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <dm.h> #include <errno.h> #include <edid.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index 83b6c908a8db..a26154ab588f 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -5,12 +5,12 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <bootstage.h> #include <dm.h> #include <init.h> #include <log.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <asm/cpu.h> diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 34ef5a522942..6f4194a18147 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c index e4303dfb364c..dc9698362741 100644 --- a/drivers/video/console_rotate.c +++ b/drivers/video/console_rotate.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 28665a327575..c435162d3f94 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -3,7 +3,6 @@
- Copyright (c) 2016 Google, Inc
*/
-#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c index 5b718ae3e5a5..9aede2626423 100644 --- a/drivers/video/coreboot.c +++ b/drivers/video/coreboot.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <init.h> #include <vesa.h> diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 2da3d1d14e95..61a73e1bc2a6 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_DISPLAY
-#include <common.h> #include <dm.h> #include <display.h> #include <edid.h> diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index 6e5256eb1265..fde275ad7e2e 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_DSI_HOST
-#include <common.h> #include <dm.h> #include <dsi_host.h>
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index c217af97878e..35559cef2298 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -5,13 +5,14 @@
- Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> +#include <time.h> #include <linux/delay.h> +#include <linux/errno.h> #include "dw_hdmi.h"
struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index a7e0784596a9..c74fe678d12a 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -9,7 +9,6 @@
- the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
*/
-#include <common.h> #include <clk.h> #include <dsi_host.h> #include <dm.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 28ac15ff61b9..78d123fad4be 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
-#include <common.h> #include <dm.h> #include <efi_api.h> #include <log.h> diff --git a/drivers/video/endeavoru-panel.c b/drivers/video/endeavoru-panel.c index 1bff641434e1..d4ba4d8b6da6 100644 --- a/drivers/video/endeavoru-panel.c +++ b/drivers/video/endeavoru-panel.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 59838da6c926..b0afb2338fb7 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -5,7 +5,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index ae500a702804..f007b319b20e 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 86970a6d5d20..0407a3f51b0d 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <display.h> #include <div64.h> #include <dm.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 804fcd0b2484..edeb0a87bbb7 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index be67cebae7f2..fc2767adc38c 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 8111acd9a0b5..9f18b5da1026 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> diff --git a/drivers/video/himax-hx8394.c b/drivers/video/himax-hx8394.c index 63637b4db022..cb7f93e9c997 100644 --- a/drivers/video/himax-hx8394.c +++ b/drivers/video/himax-hx8394.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2022 Ondrej Jirman megi@xff.cz
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index 95984fe3d3d1..68f7b75eef99 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> #include <malloc.h> #include <linux/delay.h>
diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index 6ee97cb4ff3a..2491a32810e2 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -12,7 +12,6 @@
*/
-#include <common.h> #include <dm.h> #include <panel.h> #include <spi.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index 73b8f4bd1c9b..bf4d4995c36c 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.de
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index b0a99c9cd5d9..d582fb8ad9d9 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -11,7 +11,7 @@ */
/* #define DEBUG */ -#include <common.h> +#include <config.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index 144322e4e26b..aaba7d135a46 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -12,7 +12,6 @@
/* #define DEBUG */
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 7e60385bcfa5..039b22086a93 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -10,7 +10,6 @@
- (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <log.h> #include <part.h> #include <asm/cache.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index c2cc976618a1..ad688640733e 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <dm.h> #include <errno.h> diff --git a/drivers/video/lm3533_backlight.c b/drivers/video/lm3533_backlight.c index 00297a09b7fc..6b51fa0628e4 100644 --- a/drivers/video/lm3533_backlight.c +++ b/drivers/video/lm3533_backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 624084d38bca..643a77a0f4e1 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dbb2f5386171..c89212674624 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -5,7 +5,6 @@
*/ #define DEBUG -#include <common.h> #include <malloc.h> #include <video.h> #include <dm.h> diff --git a/drivers/video/mcde_simple.c b/drivers/video/mcde_simple.c index 0924ceee3098..2ba5d0de1529 100644 --- a/drivers/video/mcde_simple.c +++ b/drivers/video/mcde_simple.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/meson/meson_canvas.c b/drivers/video/meson/meson_canvas.c index eccac2f8f24a..dd4c546222d5 100644 --- a/drivers/video/meson/meson_canvas.c +++ b/drivers/video/meson/meson_canvas.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h>
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 259af1b45717..587df7beb9b0 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -4,7 +4,6 @@
- Author: Jorge Ramirez-Ortiz jramirez@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index e3f784ecfe42..899ce22d067e 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index e718a0074ed6..4761ff661e4e 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <linux/bitops.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index e7366dd2fdea..1bc6aaf73055 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <fdtdec.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index 67d4ce7b3b49..ca627728743b 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index c9808e1c6317..0e34cefd1002 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -8,7 +8,6 @@
#define DEBUG
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c index ecacea1dbebd..dc949c8ae61f 100644 --- a/drivers/video/mipi_dsi.c +++ b/drivers/video/mipi_dsi.c @@ -32,7 +32,6 @@
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index d3d07e5f8333..3fc5640b71ec 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -5,7 +5,6 @@
- Initialization of LCD interface and setup of SPLASH screen image
*/
-#include <common.h> #include <dm.h> #include <part.h> #include <video.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 515363f6a49b..792d6314d15e 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -4,7 +4,6 @@
- Copyright (C) 2011-2013 Marek Vasut marex@denx.de
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <env.h> diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c index 2248f4790575..16a489b88dc2 100644 --- a/drivers/video/nexell/s5pxx18_dp.c +++ b/drivers/video/nexell/s5pxx18_dp.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c index 3f1fb8a5757b..109d9f28bb01 100644 --- a/drivers/video/nexell/s5pxx18_dp_hdmi.c +++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c index f8ea63fdf1b3..5db8d2b73b14 100644 --- a/drivers/video/nexell/s5pxx18_dp_lvds.c +++ b/drivers/video/nexell/s5pxx18_dp_lvds.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/nexell.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c index 670272b26802..58493a825982 100644 --- a/drivers/video/nexell/s5pxx18_dp_mipi.c +++ b/drivers/video/nexell/s5pxx18_dp_mipi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h>
#include <asm/arch/nexell.h> diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c index 44e8edb02a22..6abb8b5e216b 100644 --- a/drivers/video/nexell/s5pxx18_dp_rgb.c +++ b/drivers/video/nexell/s5pxx18_dp_rgb.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/display.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h index c7bf5043e605..4ad353256ebc 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h +++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h @@ -8,6 +8,7 @@ #ifndef _S5PXX18_SOC_DISPTOP_H_ #define _S5PXX18_SOC_DISPTOP_H_
+#include <linux/types.h> #include "s5pxx18_soc_disptype.h"
#define NUMBER_OF_DISPTOP_MODULE 1 diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index af2698ffca84..7bda33fb16e1 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index 432b16bfbfe7..0b7ce348d5ad 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -25,7 +25,6 @@
- MA 02111-1307 USA
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/dss.h>
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 848f174b6e48..a29e909decc9 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -7,7 +7,6 @@
- This otm8009a panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c index 1f7e20e0b506..52a3466dc8c1 100644 --- a/drivers/video/panel-uclass.c +++ b/drivers/video/panel-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL
-#include <common.h> #include <dm.h> #include <panel.h>
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 1c747d98d7ac..a4576c888cf0 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index f1fce55a2cb2..b8662ca22bf2 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -7,7 +7,6 @@
- This rm68200 panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-raydium-rm68200.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/renesas-r61307.c b/drivers/video/renesas-r61307.c index 3f5859055c98..a3697bce5ee3 100644 --- a/drivers/video/renesas-r61307.c +++ b/drivers/video/renesas-r61307.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/renesas-r69328.c b/drivers/video/renesas-r69328.c index 082f5bc3d0a0..9861c3fef11a 100644 --- a/drivers/video/renesas-r69328.c +++ b/drivers/video/renesas-r69328.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index fb784636e877..fa512173510b 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -24,7 +24,6 @@ #include <dm/lists.h> #include <linux/iopoll.h>
-#include <common.h> #include <log.h> #include <video.h> #include <dm/device-internal.h> diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index efa87540340b..3d39f31a5ade 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 9d42119c8261..850fe3107549 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index a4683852ea0c..282831eaac44 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c index 5f3f5d26886d..c7630ccf5558 100644 --- a/drivers/video/rockchip/rk3399_hdmi.c +++ b/drivers/video/rockchip/rk3399_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index b62d80866745..57e36eed6a99 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index cb589c7537e6..17e1601e8144 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index 5f68a610e4ac..eb881ba4b0ef 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index d31f6a4ff81b..0ac0a3a1ecd0 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index d0a015e31ee8..c969dae30b69 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -3,7 +3,6 @@
- Copyright 2016 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f14cbc6dbf7f..0a603083ba9a 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index acc02e5d7c78..17dfe62c9dae 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sandbox_dsi_host.c b/drivers/video/sandbox_dsi_host.c index c84a27ee3be6..7025ac986e3c 100644 --- a/drivers/video/sandbox_dsi_host.c +++ b/drivers/video/sandbox_dsi_host.c @@ -3,7 +3,6 @@
- Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c index 2a854d3958b7..bedc32b7c80e 100644 --- a/drivers/video/sandbox_osd.c +++ b/drivers/video/sandbox_osd.c @@ -3,7 +3,6 @@
- (C) Copyright 2018
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/ -#include <common.h> #include <display.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 9081c7da62e4..69dfa9302735 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c index 74c8721e1e11..86cd301c4b91 100644 --- a/drivers/video/seps525.c +++ b/drivers/video/seps525.c @@ -6,7 +6,6 @@
- Copyright (C) 2020 Xilinx Inc.
*/
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 76a30427a59f..b6c5b058b2e9 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 33bb78bc3a3e..cb518b149cb5 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rob Clark
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 948f5e74d0fe..4334bbd72353 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -9,7 +9,6 @@
- interface for driving a MIPI compatible TFT display.
*/
-#include <common.h> #include <malloc.h> #include <mipi_display.h> #include <asm/gpio.h> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index a18c1e027a87..438ed41e8d5f 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <clk.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 4f60ba8ebeeb..0a062c8939db 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 73033c3b8589..264d775c1256 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <log.h> #include <linux/delay.h>
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index e02d359cd259..154641b9a699 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 8da44a1bb6d8..4a6a89ef9d26 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -6,7 +6,7 @@
- (C) Copyright 2014-2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> +#include <config.h> #include <display.h> #include <dm.h> #include <cpu_func.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index a5e8d39e98f8..b9c03ea03864 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <display.h> #include <dm.h> #include <dw_hdmi.h> diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 7a01cc343cac..953233fcd683 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <display.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/sunxi/tve_common.c b/drivers/video/sunxi/tve_common.c index 35251371d14f..7bc2b3b29090 100644 --- a/drivers/video/sunxi/tve_common.c +++ b/drivers/video/sunxi/tve_common.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h>
#include <asm/arch/tve.h> #include <asm/io.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 244874390454..ebc8521c6edd 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -5,7 +5,6 @@
- Based on the Linux driver, (C) 2012 Texas Instruments
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <i2c.h> diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index 273672db024a..d772958f46ed 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 BayLibre, SAS
- Author: Neil Armstrong narmstrong@baylibre.com
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index 9261cc9384a2..abe31e27d84d 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -5,7 +5,6 @@
- Extracted from Chromium coreboot commit 3f59b13d
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <edid.h> @@ -14,6 +13,7 @@ #include <edid.h> #include <log.h> #include <part.h> +#include <time.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index b27b1633bab5..763f7ee39fcd 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -4,12 +4,12 @@
- Copyright 2014 Google Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <div64.h> #include <errno.h> #include <log.h> +#include <time.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 258685182c7d..1ce5330c6bcf 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -3,7 +3,6 @@
- Copyright (c) 2011-2013, NVIDIA Corporation.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/tegra20/mipi-phy.c b/drivers/video/tegra20/mipi-phy.c index c3ebc4074b53..576262e405d6 100644 --- a/drivers/video/tegra20/mipi-phy.c +++ b/drivers/video/tegra20/mipi-phy.c @@ -3,7 +3,6 @@
- Copyright (C) 2013 NVIDIA Corporation
*/
-#include <common.h> #include <linux/err.h>
#include "mipi-phy.h" diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 13dae37806f1..35a8e6c176b3 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -4,7 +4,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pwm-backlight.c index 5f93f57fe908..79d8a021a3ac 100644 --- a/drivers/video/tegra20/tegra-pwm-backlight.c +++ b/drivers/video/tegra20/tegra-pwm-backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/ti/tilcdc-panel.c b/drivers/video/ti/tilcdc-panel.c index df95086a5151..d40765230600 100644 --- a/drivers/video/ti/tilcdc-panel.c +++ b/drivers/video/ti/tilcdc-panel.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <backlight.h> #include <clk.h> #include <display.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 2734754ecde7..493e2f18cd2d 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 1380c6b69375..865d4bddb7f9 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -9,7 +9,6 @@
- Author: Tomi Valkeinen tomi.valkeinen@ti.com
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/video/vesa.c b/drivers/video/vesa.c index 50912c5c8bca..ab756ac8ea12 100644 --- a/drivers/video/vesa.c +++ b/drivers/video/vesa.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 5d06e51ff236..80e7adf6a1a4 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
-#include <common.h> #include <abuf.h> #include <charset.h> #include <command.h> diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 7b5d1dfbb3bd..ff1382f4a43b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <bloblist.h> #include <console.h> #include <cpu_func.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index 45f003c8251a..ad512d99a1b9 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <bmp_layout.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/video_osd-uclass.c b/drivers/video/video_osd-uclass.c index 0d3aae4d8272..923686345ff7 100644 --- a/drivers/video/video_osd-uclass.c +++ b/drivers/video/video_osd-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_OSD
-#include <common.h> #include <dm.h> #include <video_osd.h>
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 35955a5df7dd..d86d86798415 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -55,7 +55,6 @@ "myvideo" and setting the variable "videomode=myvideo".. ****************************************************************************/
-#include <common.h> #include <edid.h> #include <env.h> #include <errno.h> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c index def4dcf6261a..1405b29cb8b9 100644 --- a/drivers/video/zynqmp/zynqmp_dpsub.c +++ b/drivers/video/zynqmp/zynqmp_dpsub.c @@ -6,7 +6,6 @@
- Xilinx displayport(DP) Tx Subsytem driver
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h>
#include <dm.h>
2.34.1

On 02.05.24 03:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Tested-by: Stefan Bosch stefan_b@posteo.net
Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).
Thanks a lot!
Cc: Anatolij Gustschin agust@denx.de Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michal Simek michal.simek@amd.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Johan Jonker jbx6244@gmail.com
drivers/video/anx9804.c | 1 - drivers/video/atmel_hlcdfb.c | 1 - drivers/video/atmel_lcdfb.c | 1 - drivers/video/backlight-uclass.c | 1 - drivers/video/backlight_gpio.c | 1 - drivers/video/bcm2835.c | 1 - drivers/video/bmp.c | 1 - drivers/video/bochs.c | 1 - drivers/video/bridge/anx6345.c | 1 - drivers/video/bridge/ps862x.c | 1 - drivers/video/bridge/ptn3460.c | 1 - drivers/video/bridge/ssd2825.c | 1 - drivers/video/bridge/video-bridge-uclass.c | 1 - drivers/video/broadwell_igd.c | 2 +- drivers/video/console_normal.c | 1 - drivers/video/console_rotate.c | 1 - drivers/video/console_truetype.c | 1 - drivers/video/coreboot.c | 1 - drivers/video/display-uclass.c | 1 - drivers/video/dsi-host-uclass.c | 1 - drivers/video/dw_hdmi.c | 3 ++- drivers/video/dw_mipi_dsi.c | 1 - drivers/video/efi.c | 1 - drivers/video/endeavoru-panel.c | 1 - drivers/video/exynos/exynos_dp.c | 1 - drivers/video/exynos/exynos_dp_lowlevel.c | 1 - drivers/video/exynos/exynos_fb.c | 1 - drivers/video/exynos/exynos_mipi_dsi.c | 1 - drivers/video/exynos/exynos_mipi_dsi_common.c | 1 - drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 - drivers/video/himax-hx8394.c | 1 - drivers/video/hitachi_tx18d42vm_lcd.c | 1 - drivers/video/hx8238d.c | 1 - drivers/video/ihs_video_out.c | 1 - drivers/video/imx/ipu_common.c | 2 +- drivers/video/imx/ipu_disp.c | 1 - drivers/video/imx/mxc_ipuv3_fb.c | 1 - drivers/video/ivybridge_igd.c | 1 - drivers/video/lm3533_backlight.c | 1 - drivers/video/logicore_dp_tx.c | 1 - drivers/video/mali_dp.c | 1 - drivers/video/mcde_simple.c | 1 - drivers/video/meson/meson_canvas.c | 1 - drivers/video/meson/meson_dw_hdmi.c | 1 - drivers/video/meson/meson_plane.c | 1 - drivers/video/meson/meson_vclk.c | 1 - drivers/video/meson/meson_venc.c | 1 - drivers/video/meson/meson_vpu.c | 1 - drivers/video/meson/meson_vpu_init.c | 1 - drivers/video/mipi_dsi.c | 1 - drivers/video/mvebu_lcd.c | 1 - drivers/video/mxsfb.c | 1 - drivers/video/nexell/s5pxx18_dp.c | 1 - drivers/video/nexell/s5pxx18_dp_hdmi.c | 1 - drivers/video/nexell/s5pxx18_dp_lvds.c | 2 +- drivers/video/nexell/s5pxx18_dp_mipi.c | 1 - drivers/video/nexell/s5pxx18_dp_rgb.c | 2 +- drivers/video/nexell/soc/s5pxx18_soc_disptop.h | 1 + drivers/video/nexell_display.c | 1 - drivers/video/omap3_dss.c | 1 - drivers/video/orisetech_otm8009a.c | 1 - drivers/video/panel-uclass.c | 1 - drivers/video/pwm_backlight.c | 1 - drivers/video/raydium-rm68200.c | 1 - drivers/video/renesas-r61307.c | 1 - drivers/video/renesas-r69328.c | 1 - drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 1 - drivers/video/rockchip/rk3288_hdmi.c | 1 - drivers/video/rockchip/rk3288_mipi.c | 1 - drivers/video/rockchip/rk3288_vop.c | 1 - drivers/video/rockchip/rk3399_hdmi.c | 1 - drivers/video/rockchip/rk3399_mipi.c | 1 - drivers/video/rockchip/rk3399_vop.c | 1 - drivers/video/rockchip/rk_edp.c | 1 - drivers/video/rockchip/rk_hdmi.c | 1 - drivers/video/rockchip/rk_lvds.c | 1 - drivers/video/rockchip/rk_mipi.c | 1 - drivers/video/rockchip/rk_vop.c | 1 - drivers/video/sandbox_dsi_host.c | 1 - drivers/video/sandbox_osd.c | 1 - drivers/video/sandbox_sdl.c | 1 - drivers/video/seps525.c | 1 - drivers/video/simple_panel.c | 1 - drivers/video/simplefb.c | 1 - drivers/video/ssd2828.c | 1 - drivers/video/stm32/stm32_dsi.c | 1 - drivers/video/stm32/stm32_ltdc.c | 1 - drivers/video/sunxi/lcdc.c | 1 - drivers/video/sunxi/sunxi_de2.c | 1 - drivers/video/sunxi/sunxi_display.c | 2 +- drivers/video/sunxi/sunxi_dw_hdmi.c | 1 - drivers/video/sunxi/sunxi_lcd.c | 1 - drivers/video/sunxi/tve_common.c | 1 - drivers/video/tda19988.c | 1 - drivers/video/tdo-tl070wsh30.c | 1 - drivers/video/tegra124/display.c | 2 +- drivers/video/tegra124/dp.c | 2 +- drivers/video/tegra124/sor.c | 1 - drivers/video/tegra20/mipi-phy.c | 1 - drivers/video/tegra20/tegra-dsi.c | 1 - drivers/video/tegra20/tegra-pwm-backlight.c | 1 - drivers/video/ti/tilcdc-panel.c | 1 - drivers/video/ti/tilcdc.c | 1 - drivers/video/tidss/tidss_drv.c | 1 - drivers/video/vesa.c | 1 - drivers/video/vidconsole-uclass.c | 1 - drivers/video/video-uclass.c | 1 - drivers/video/video_bmp.c | 1 - drivers/video/video_osd-uclass.c | 1 - drivers/video/videomodes.c | 1 - drivers/video/zynqmp/zynqmp_dpsub.c | 1 - 111 files changed, 10 insertions(+), 110 deletions(-)
diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index 52b5988ba5f2..a149e6f5b95d 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -9,7 +9,6 @@
- interface for driving eDP TFT displays.
*/
-#include <common.h> #include <i2c.h> #include <linux/delay.h> #include "anx98xx-edp.h" diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 652ba1418018..89bc0eeb680a 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2012 Atmel Corporation
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 5a7a54ada70e..281c3a1d6632 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2007 Atmel Corporation
*/
-#include <common.h> #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c index c14996d003c0..2a09b2da9106 100644 --- a/drivers/video/backlight-uclass.c +++ b/drivers/video/backlight-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h>
diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index eea824ab5e16..b26fa9a8acf1 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -4,7 +4,6 @@
- Author: Patrick Delaunay patrick.delaunay@foss.st.com
*/
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 63efa762db16..0c81e6066229 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -3,7 +3,6 @@
- (C) Copyright 2012 Stephen Warren
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/bmp.c b/drivers/video/bmp.c index bab6fa7265af..291ed36440c8 100644 --- a/drivers/video/bmp.c +++ b/drivers/video/bmp.c @@ -8,7 +8,6 @@
- BMP handling routines
*/
-#include <common.h> #include <bmp_layout.h> #include <command.h> #include <dm.h> diff --git a/drivers/video/bochs.c b/drivers/video/bochs.c index 022ea38d4cfe..00e673a4db08 100644 --- a/drivers/video/bochs.c +++ b/drivers/video/bochs.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 93fa25f16e31..8cee4c958bd8 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index d1d22a6e235c..efd03752281c 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 4760f04108f7..5851e1ef15e9 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/bridge/ssd2825.c b/drivers/video/bridge/ssd2825.c index f0ef3dafb93b..f978021c860e 100644 --- a/drivers/video/bridge/ssd2825.c +++ b/drivers/video/bridge/ssd2825.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index f389bc6b1475..2084a2e03ee8 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <dm.h> #include <errno.h> #include <edid.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index 83b6c908a8db..a26154ab588f 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -5,12 +5,12 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <bootstage.h> #include <dm.h> #include <init.h> #include <log.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <asm/cpu.h> diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 34ef5a522942..6f4194a18147 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c index e4303dfb364c..dc9698362741 100644 --- a/drivers/video/console_rotate.c +++ b/drivers/video/console_rotate.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 28665a327575..c435162d3f94 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -3,7 +3,6 @@
- Copyright (c) 2016 Google, Inc
*/
-#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c index 5b718ae3e5a5..9aede2626423 100644 --- a/drivers/video/coreboot.c +++ b/drivers/video/coreboot.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <init.h> #include <vesa.h> diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 2da3d1d14e95..61a73e1bc2a6 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_DISPLAY
-#include <common.h> #include <dm.h> #include <display.h> #include <edid.h> diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index 6e5256eb1265..fde275ad7e2e 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_DSI_HOST
-#include <common.h> #include <dm.h> #include <dsi_host.h>
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index c217af97878e..35559cef2298 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -5,13 +5,14 @@
- Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> +#include <time.h> #include <linux/delay.h> +#include <linux/errno.h> #include "dw_hdmi.h"
struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index a7e0784596a9..c74fe678d12a 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -9,7 +9,6 @@
- the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
*/
-#include <common.h> #include <clk.h> #include <dsi_host.h> #include <dm.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 28ac15ff61b9..78d123fad4be 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
-#include <common.h> #include <dm.h> #include <efi_api.h> #include <log.h> diff --git a/drivers/video/endeavoru-panel.c b/drivers/video/endeavoru-panel.c index 1bff641434e1..d4ba4d8b6da6 100644 --- a/drivers/video/endeavoru-panel.c +++ b/drivers/video/endeavoru-panel.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 59838da6c926..b0afb2338fb7 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -5,7 +5,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index ae500a702804..f007b319b20e 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 86970a6d5d20..0407a3f51b0d 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <display.h> #include <div64.h> #include <dm.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 804fcd0b2484..edeb0a87bbb7 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index be67cebae7f2..fc2767adc38c 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 8111acd9a0b5..9f18b5da1026 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> diff --git a/drivers/video/himax-hx8394.c b/drivers/video/himax-hx8394.c index 63637b4db022..cb7f93e9c997 100644 --- a/drivers/video/himax-hx8394.c +++ b/drivers/video/himax-hx8394.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2022 Ondrej Jirman megi@xff.cz
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index 95984fe3d3d1..68f7b75eef99 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> #include <malloc.h> #include <linux/delay.h>
diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index 6ee97cb4ff3a..2491a32810e2 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -12,7 +12,6 @@
*/
-#include <common.h> #include <dm.h> #include <panel.h> #include <spi.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index 73b8f4bd1c9b..bf4d4995c36c 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.de
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index b0a99c9cd5d9..d582fb8ad9d9 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -11,7 +11,7 @@ */
/* #define DEBUG */ -#include <common.h> +#include <config.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index 144322e4e26b..aaba7d135a46 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -12,7 +12,6 @@
/* #define DEBUG */
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 7e60385bcfa5..039b22086a93 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -10,7 +10,6 @@
- (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <log.h> #include <part.h> #include <asm/cache.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index c2cc976618a1..ad688640733e 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <dm.h> #include <errno.h> diff --git a/drivers/video/lm3533_backlight.c b/drivers/video/lm3533_backlight.c index 00297a09b7fc..6b51fa0628e4 100644 --- a/drivers/video/lm3533_backlight.c +++ b/drivers/video/lm3533_backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 624084d38bca..643a77a0f4e1 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dbb2f5386171..c89212674624 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -5,7 +5,6 @@
*/ #define DEBUG -#include <common.h> #include <malloc.h> #include <video.h> #include <dm.h> diff --git a/drivers/video/mcde_simple.c b/drivers/video/mcde_simple.c index 0924ceee3098..2ba5d0de1529 100644 --- a/drivers/video/mcde_simple.c +++ b/drivers/video/mcde_simple.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/meson/meson_canvas.c b/drivers/video/meson/meson_canvas.c index eccac2f8f24a..dd4c546222d5 100644 --- a/drivers/video/meson/meson_canvas.c +++ b/drivers/video/meson/meson_canvas.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h>
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 259af1b45717..587df7beb9b0 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -4,7 +4,6 @@
- Author: Jorge Ramirez-Ortiz jramirez@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index e3f784ecfe42..899ce22d067e 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index e718a0074ed6..4761ff661e4e 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <linux/bitops.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index e7366dd2fdea..1bc6aaf73055 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <fdtdec.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index 67d4ce7b3b49..ca627728743b 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index c9808e1c6317..0e34cefd1002 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -8,7 +8,6 @@
#define DEBUG
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c index ecacea1dbebd..dc949c8ae61f 100644 --- a/drivers/video/mipi_dsi.c +++ b/drivers/video/mipi_dsi.c @@ -32,7 +32,6 @@
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index d3d07e5f8333..3fc5640b71ec 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -5,7 +5,6 @@
- Initialization of LCD interface and setup of SPLASH screen image
*/
-#include <common.h> #include <dm.h> #include <part.h> #include <video.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 515363f6a49b..792d6314d15e 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -4,7 +4,6 @@
- Copyright (C) 2011-2013 Marek Vasut marex@denx.de
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <env.h> diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c index 2248f4790575..16a489b88dc2 100644 --- a/drivers/video/nexell/s5pxx18_dp.c +++ b/drivers/video/nexell/s5pxx18_dp.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c index 3f1fb8a5757b..109d9f28bb01 100644 --- a/drivers/video/nexell/s5pxx18_dp_hdmi.c +++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c index f8ea63fdf1b3..5db8d2b73b14 100644 --- a/drivers/video/nexell/s5pxx18_dp_lvds.c +++ b/drivers/video/nexell/s5pxx18_dp_lvds.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/nexell.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c index 670272b26802..58493a825982 100644 --- a/drivers/video/nexell/s5pxx18_dp_mipi.c +++ b/drivers/video/nexell/s5pxx18_dp_mipi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h>
#include <asm/arch/nexell.h> diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c index 44e8edb02a22..6abb8b5e216b 100644 --- a/drivers/video/nexell/s5pxx18_dp_rgb.c +++ b/drivers/video/nexell/s5pxx18_dp_rgb.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/display.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h index c7bf5043e605..4ad353256ebc 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h +++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h @@ -8,6 +8,7 @@ #ifndef _S5PXX18_SOC_DISPTOP_H_ #define _S5PXX18_SOC_DISPTOP_H_
+#include <linux/types.h> #include "s5pxx18_soc_disptype.h"
#define NUMBER_OF_DISPTOP_MODULE 1 diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index af2698ffca84..7bda33fb16e1 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index 432b16bfbfe7..0b7ce348d5ad 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -25,7 +25,6 @@
- MA 02111-1307 USA
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/dss.h>
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 848f174b6e48..a29e909decc9 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -7,7 +7,6 @@
- This otm8009a panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c index 1f7e20e0b506..52a3466dc8c1 100644 --- a/drivers/video/panel-uclass.c +++ b/drivers/video/panel-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL
-#include <common.h> #include <dm.h> #include <panel.h>
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 1c747d98d7ac..a4576c888cf0 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index f1fce55a2cb2..b8662ca22bf2 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -7,7 +7,6 @@
- This rm68200 panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-raydium-rm68200.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/renesas-r61307.c b/drivers/video/renesas-r61307.c index 3f5859055c98..a3697bce5ee3 100644 --- a/drivers/video/renesas-r61307.c +++ b/drivers/video/renesas-r61307.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/renesas-r69328.c b/drivers/video/renesas-r69328.c index 082f5bc3d0a0..9861c3fef11a 100644 --- a/drivers/video/renesas-r69328.c +++ b/drivers/video/renesas-r69328.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index fb784636e877..fa512173510b 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -24,7 +24,6 @@ #include <dm/lists.h> #include <linux/iopoll.h>
-#include <common.h> #include <log.h> #include <video.h> #include <dm/device-internal.h> diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index efa87540340b..3d39f31a5ade 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 9d42119c8261..850fe3107549 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index a4683852ea0c..282831eaac44 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c index 5f3f5d26886d..c7630ccf5558 100644 --- a/drivers/video/rockchip/rk3399_hdmi.c +++ b/drivers/video/rockchip/rk3399_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index b62d80866745..57e36eed6a99 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index cb589c7537e6..17e1601e8144 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index 5f68a610e4ac..eb881ba4b0ef 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index d31f6a4ff81b..0ac0a3a1ecd0 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index d0a015e31ee8..c969dae30b69 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -3,7 +3,6 @@
- Copyright 2016 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f14cbc6dbf7f..0a603083ba9a 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index acc02e5d7c78..17dfe62c9dae 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sandbox_dsi_host.c b/drivers/video/sandbox_dsi_host.c index c84a27ee3be6..7025ac986e3c 100644 --- a/drivers/video/sandbox_dsi_host.c +++ b/drivers/video/sandbox_dsi_host.c @@ -3,7 +3,6 @@
- Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c index 2a854d3958b7..bedc32b7c80e 100644 --- a/drivers/video/sandbox_osd.c +++ b/drivers/video/sandbox_osd.c @@ -3,7 +3,6 @@
- (C) Copyright 2018
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/ -#include <common.h> #include <display.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 9081c7da62e4..69dfa9302735 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c index 74c8721e1e11..86cd301c4b91 100644 --- a/drivers/video/seps525.c +++ b/drivers/video/seps525.c @@ -6,7 +6,6 @@
- Copyright (C) 2020 Xilinx Inc.
*/
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 76a30427a59f..b6c5b058b2e9 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 33bb78bc3a3e..cb518b149cb5 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rob Clark
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 948f5e74d0fe..4334bbd72353 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -9,7 +9,6 @@
- interface for driving a MIPI compatible TFT display.
*/
-#include <common.h> #include <malloc.h> #include <mipi_display.h> #include <asm/gpio.h> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index a18c1e027a87..438ed41e8d5f 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <clk.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 4f60ba8ebeeb..0a062c8939db 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 73033c3b8589..264d775c1256 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <log.h> #include <linux/delay.h>
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index e02d359cd259..154641b9a699 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 8da44a1bb6d8..4a6a89ef9d26 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -6,7 +6,7 @@
- (C) Copyright 2014-2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> +#include <config.h> #include <display.h> #include <dm.h> #include <cpu_func.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index a5e8d39e98f8..b9c03ea03864 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <display.h> #include <dm.h> #include <dw_hdmi.h> diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 7a01cc343cac..953233fcd683 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <display.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/sunxi/tve_common.c b/drivers/video/sunxi/tve_common.c index 35251371d14f..7bc2b3b29090 100644 --- a/drivers/video/sunxi/tve_common.c +++ b/drivers/video/sunxi/tve_common.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h>
#include <asm/arch/tve.h> #include <asm/io.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 244874390454..ebc8521c6edd 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -5,7 +5,6 @@
- Based on the Linux driver, (C) 2012 Texas Instruments
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <i2c.h> diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index 273672db024a..d772958f46ed 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 BayLibre, SAS
- Author: Neil Armstrong narmstrong@baylibre.com
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index 9261cc9384a2..abe31e27d84d 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -5,7 +5,6 @@
- Extracted from Chromium coreboot commit 3f59b13d
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <edid.h> @@ -14,6 +13,7 @@ #include <edid.h> #include <log.h> #include <part.h> +#include <time.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index b27b1633bab5..763f7ee39fcd 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -4,12 +4,12 @@
- Copyright 2014 Google Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <div64.h> #include <errno.h> #include <log.h> +#include <time.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 258685182c7d..1ce5330c6bcf 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -3,7 +3,6 @@
- Copyright (c) 2011-2013, NVIDIA Corporation.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/tegra20/mipi-phy.c b/drivers/video/tegra20/mipi-phy.c index c3ebc4074b53..576262e405d6 100644 --- a/drivers/video/tegra20/mipi-phy.c +++ b/drivers/video/tegra20/mipi-phy.c @@ -3,7 +3,6 @@
- Copyright (C) 2013 NVIDIA Corporation
*/
-#include <common.h> #include <linux/err.h>
#include "mipi-phy.h" diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 13dae37806f1..35a8e6c176b3 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -4,7 +4,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pwm-backlight.c index 5f93f57fe908..79d8a021a3ac 100644 --- a/drivers/video/tegra20/tegra-pwm-backlight.c +++ b/drivers/video/tegra20/tegra-pwm-backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/ti/tilcdc-panel.c b/drivers/video/ti/tilcdc-panel.c index df95086a5151..d40765230600 100644 --- a/drivers/video/ti/tilcdc-panel.c +++ b/drivers/video/ti/tilcdc-panel.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <backlight.h> #include <clk.h> #include <display.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 2734754ecde7..493e2f18cd2d 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 1380c6b69375..865d4bddb7f9 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -9,7 +9,6 @@
- Author: Tomi Valkeinen tomi.valkeinen@ti.com
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/video/vesa.c b/drivers/video/vesa.c index 50912c5c8bca..ab756ac8ea12 100644 --- a/drivers/video/vesa.c +++ b/drivers/video/vesa.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 5d06e51ff236..80e7adf6a1a4 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
-#include <common.h> #include <abuf.h> #include <charset.h> #include <command.h> diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 7b5d1dfbb3bd..ff1382f4a43b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <bloblist.h> #include <console.h> #include <cpu_func.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index 45f003c8251a..ad512d99a1b9 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <bmp_layout.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/video_osd-uclass.c b/drivers/video/video_osd-uclass.c index 0d3aae4d8272..923686345ff7 100644 --- a/drivers/video/video_osd-uclass.c +++ b/drivers/video/video_osd-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_OSD
-#include <common.h> #include <dm.h> #include <video_osd.h>
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 35955a5df7dd..d86d86798415 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -55,7 +55,6 @@ "myvideo" and setting the variable "videomode=myvideo".. ****************************************************************************/
-#include <common.h> #include <edid.h> #include <env.h> #include <errno.h> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c index def4dcf6261a..1405b29cb8b9 100644 --- a/drivers/video/zynqmp/zynqmp_dpsub.c +++ b/drivers/video/zynqmp/zynqmp_dpsub.c @@ -6,7 +6,6 @@
- Xilinx displayport(DP) Tx Subsytem driver
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h>

On 2024/5/2 09:31, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Kever Yang kever.yang@rock-chips.com
Thanks, - Kever
Cc: Anatolij Gustschin agust@denx.de Cc: Tom Rini trini@konsulko.com Cc: Matthias Brugger mbrugger@suse.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Liviu Dudau liviu.dudau@foss.arm.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Linus Walleij linus.walleij@linaro.org Cc: Neil Armstrong neil.armstrong@linaro.org Cc: Stefan Bosch stefan_b@posteo.net Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com Cc: Michal Simek michal.simek@amd.com Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com Cc: Jagan Teki jagan@amarulasolutions.com Cc: Andre Przywara andre.przywara@arm.com Cc: Thierry Reding treding@nvidia.com Cc: Svyatoslav Ryhel clamor95@gmail.com Cc: Johan Jonker jbx6244@gmail.com
drivers/video/anx9804.c | 1 - drivers/video/atmel_hlcdfb.c | 1 - drivers/video/atmel_lcdfb.c | 1 - drivers/video/backlight-uclass.c | 1 - drivers/video/backlight_gpio.c | 1 - drivers/video/bcm2835.c | 1 - drivers/video/bmp.c | 1 - drivers/video/bochs.c | 1 - drivers/video/bridge/anx6345.c | 1 - drivers/video/bridge/ps862x.c | 1 - drivers/video/bridge/ptn3460.c | 1 - drivers/video/bridge/ssd2825.c | 1 - drivers/video/bridge/video-bridge-uclass.c | 1 - drivers/video/broadwell_igd.c | 2 +- drivers/video/console_normal.c | 1 - drivers/video/console_rotate.c | 1 - drivers/video/console_truetype.c | 1 - drivers/video/coreboot.c | 1 - drivers/video/display-uclass.c | 1 - drivers/video/dsi-host-uclass.c | 1 - drivers/video/dw_hdmi.c | 3 ++- drivers/video/dw_mipi_dsi.c | 1 - drivers/video/efi.c | 1 - drivers/video/endeavoru-panel.c | 1 - drivers/video/exynos/exynos_dp.c | 1 - drivers/video/exynos/exynos_dp_lowlevel.c | 1 - drivers/video/exynos/exynos_fb.c | 1 - drivers/video/exynos/exynos_mipi_dsi.c | 1 - drivers/video/exynos/exynos_mipi_dsi_common.c | 1 - drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 - drivers/video/himax-hx8394.c | 1 - drivers/video/hitachi_tx18d42vm_lcd.c | 1 - drivers/video/hx8238d.c | 1 - drivers/video/ihs_video_out.c | 1 - drivers/video/imx/ipu_common.c | 2 +- drivers/video/imx/ipu_disp.c | 1 - drivers/video/imx/mxc_ipuv3_fb.c | 1 - drivers/video/ivybridge_igd.c | 1 - drivers/video/lm3533_backlight.c | 1 - drivers/video/logicore_dp_tx.c | 1 - drivers/video/mali_dp.c | 1 - drivers/video/mcde_simple.c | 1 - drivers/video/meson/meson_canvas.c | 1 - drivers/video/meson/meson_dw_hdmi.c | 1 - drivers/video/meson/meson_plane.c | 1 - drivers/video/meson/meson_vclk.c | 1 - drivers/video/meson/meson_venc.c | 1 - drivers/video/meson/meson_vpu.c | 1 - drivers/video/meson/meson_vpu_init.c | 1 - drivers/video/mipi_dsi.c | 1 - drivers/video/mvebu_lcd.c | 1 - drivers/video/mxsfb.c | 1 - drivers/video/nexell/s5pxx18_dp.c | 1 - drivers/video/nexell/s5pxx18_dp_hdmi.c | 1 - drivers/video/nexell/s5pxx18_dp_lvds.c | 2 +- drivers/video/nexell/s5pxx18_dp_mipi.c | 1 - drivers/video/nexell/s5pxx18_dp_rgb.c | 2 +- drivers/video/nexell/soc/s5pxx18_soc_disptop.h | 1 + drivers/video/nexell_display.c | 1 - drivers/video/omap3_dss.c | 1 - drivers/video/orisetech_otm8009a.c | 1 - drivers/video/panel-uclass.c | 1 - drivers/video/pwm_backlight.c | 1 - drivers/video/raydium-rm68200.c | 1 - drivers/video/renesas-r61307.c | 1 - drivers/video/renesas-r69328.c | 1 - drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 1 - drivers/video/rockchip/rk3288_hdmi.c | 1 - drivers/video/rockchip/rk3288_mipi.c | 1 - drivers/video/rockchip/rk3288_vop.c | 1 - drivers/video/rockchip/rk3399_hdmi.c | 1 - drivers/video/rockchip/rk3399_mipi.c | 1 - drivers/video/rockchip/rk3399_vop.c | 1 - drivers/video/rockchip/rk_edp.c | 1 - drivers/video/rockchip/rk_hdmi.c | 1 - drivers/video/rockchip/rk_lvds.c | 1 - drivers/video/rockchip/rk_mipi.c | 1 - drivers/video/rockchip/rk_vop.c | 1 - drivers/video/sandbox_dsi_host.c | 1 - drivers/video/sandbox_osd.c | 1 - drivers/video/sandbox_sdl.c | 1 - drivers/video/seps525.c | 1 - drivers/video/simple_panel.c | 1 - drivers/video/simplefb.c | 1 - drivers/video/ssd2828.c | 1 - drivers/video/stm32/stm32_dsi.c | 1 - drivers/video/stm32/stm32_ltdc.c | 1 - drivers/video/sunxi/lcdc.c | 1 - drivers/video/sunxi/sunxi_de2.c | 1 - drivers/video/sunxi/sunxi_display.c | 2 +- drivers/video/sunxi/sunxi_dw_hdmi.c | 1 - drivers/video/sunxi/sunxi_lcd.c | 1 - drivers/video/sunxi/tve_common.c | 1 - drivers/video/tda19988.c | 1 - drivers/video/tdo-tl070wsh30.c | 1 - drivers/video/tegra124/display.c | 2 +- drivers/video/tegra124/dp.c | 2 +- drivers/video/tegra124/sor.c | 1 - drivers/video/tegra20/mipi-phy.c | 1 - drivers/video/tegra20/tegra-dsi.c | 1 - drivers/video/tegra20/tegra-pwm-backlight.c | 1 - drivers/video/ti/tilcdc-panel.c | 1 - drivers/video/ti/tilcdc.c | 1 - drivers/video/tidss/tidss_drv.c | 1 - drivers/video/vesa.c | 1 - drivers/video/vidconsole-uclass.c | 1 - drivers/video/video-uclass.c | 1 - drivers/video/video_bmp.c | 1 - drivers/video/video_osd-uclass.c | 1 - drivers/video/videomodes.c | 1 - drivers/video/zynqmp/zynqmp_dpsub.c | 1 - 111 files changed, 10 insertions(+), 110 deletions(-)
diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index 52b5988ba5f2..a149e6f5b95d 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -9,7 +9,6 @@
- interface for driving eDP TFT displays.
*/
-#include <common.h> #include <i2c.h> #include <linux/delay.h> #include "anx98xx-edp.h" diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 652ba1418018..89bc0eeb680a 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2012 Atmel Corporation
*/
-#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 5a7a54ada70e..281c3a1d6632 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -5,7 +5,6 @@
- Copyright (C) 2007 Atmel Corporation
*/
-#include <common.h> #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c index c14996d003c0..2a09b2da9106 100644 --- a/drivers/video/backlight-uclass.c +++ b/drivers/video/backlight-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h>
diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index eea824ab5e16..b26fa9a8acf1 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -4,7 +4,6 @@
- Author: Patrick Delaunay patrick.delaunay@foss.st.com
*/
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 63efa762db16..0c81e6066229 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -3,7 +3,6 @@
- (C) Copyright 2012 Stephen Warren
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/bmp.c b/drivers/video/bmp.c index bab6fa7265af..291ed36440c8 100644 --- a/drivers/video/bmp.c +++ b/drivers/video/bmp.c @@ -8,7 +8,6 @@
- BMP handling routines
*/
-#include <common.h> #include <bmp_layout.h> #include <command.h> #include <dm.h> diff --git a/drivers/video/bochs.c b/drivers/video/bochs.c index 022ea38d4cfe..00e673a4db08 100644 --- a/drivers/video/bochs.c +++ b/drivers/video/bochs.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 93fa25f16e31..8cee4c958bd8 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -3,7 +3,6 @@
- Copyright (C) 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index d1d22a6e235c..efd03752281c 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 4760f04108f7..5851e1ef15e9 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/bridge/ssd2825.c b/drivers/video/bridge/ssd2825.c index f0ef3dafb93b..f978021c860e 100644 --- a/drivers/video/bridge/ssd2825.c +++ b/drivers/video/bridge/ssd2825.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index f389bc6b1475..2084a2e03ee8 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <dm.h> #include <errno.h> #include <edid.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index 83b6c908a8db..a26154ab588f 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -5,12 +5,12 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <bootstage.h> #include <dm.h> #include <init.h> #include <log.h> +#include <time.h> #include <vesa.h> #include <video.h> #include <asm/cpu.h> diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 34ef5a522942..6f4194a18147 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c index e4303dfb364c..dc9698362741 100644 --- a/drivers/video/console_rotate.c +++ b/drivers/video/console_rotate.c @@ -6,7 +6,6 @@
- (C) Copyright 2023 Dzmitry Sankouski dsankouski@gmail.com
*/
-#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 28665a327575..c435162d3f94 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -3,7 +3,6 @@
- Copyright (c) 2016 Google, Inc
*/
-#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c index 5b718ae3e5a5..9aede2626423 100644 --- a/drivers/video/coreboot.c +++ b/drivers/video/coreboot.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <init.h> #include <vesa.h> diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 2da3d1d14e95..61a73e1bc2a6 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_DISPLAY
-#include <common.h> #include <dm.h> #include <display.h> #include <edid.h> diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index 6e5256eb1265..fde275ad7e2e 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_DSI_HOST
-#include <common.h> #include <dm.h> #include <dsi_host.h>
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index c217af97878e..35559cef2298 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -5,13 +5,14 @@
- Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> +#include <time.h> #include <linux/delay.h> +#include <linux/errno.h> #include "dw_hdmi.h"
struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index a7e0784596a9..c74fe678d12a 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -9,7 +9,6 @@
- the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
*/
-#include <common.h> #include <clk.h> #include <dsi_host.h> #include <dm.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 28ac15ff61b9..78d123fad4be 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
-#include <common.h> #include <dm.h> #include <efi_api.h> #include <log.h> diff --git a/drivers/video/endeavoru-panel.c b/drivers/video/endeavoru-panel.c index 1bff641434e1..d4ba4d8b6da6 100644 --- a/drivers/video/endeavoru-panel.c +++ b/drivers/video/endeavoru-panel.c @@ -3,7 +3,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 59838da6c926..b0afb2338fb7 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -5,7 +5,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index ae500a702804..f007b319b20e 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 86970a6d5d20..0407a3f51b0d 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -7,7 +7,6 @@ */
#include <config.h> -#include <common.h> #include <display.h> #include <div64.h> #include <dm.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 804fcd0b2484..edeb0a87bbb7 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <malloc.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index be67cebae7f2..fc2767adc38c 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 8111acd9a0b5..9f18b5da1026 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -6,7 +6,6 @@
- Author: Donghwa Lee dh09.lee@samsung.com
*/
-#include <common.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> diff --git a/drivers/video/himax-hx8394.c b/drivers/video/himax-hx8394.c index 63637b4db022..cb7f93e9c997 100644 --- a/drivers/video/himax-hx8394.c +++ b/drivers/video/himax-hx8394.c @@ -2,7 +2,6 @@ /*
- Copyright (C) 2022 Ondrej Jirman megi@xff.cz
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index 95984fe3d3d1..68f7b75eef99 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> #include <malloc.h> #include <linux/delay.h>
diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index 6ee97cb4ff3a..2491a32810e2 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -12,7 +12,6 @@
*/
-#include <common.h> #include <dm.h> #include <panel.h> #include <spi.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index 73b8f4bd1c9b..bf4d4995c36c 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.de
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index b0a99c9cd5d9..d582fb8ad9d9 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -11,7 +11,7 @@ */
/* #define DEBUG */ -#include <common.h> +#include <config.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index 144322e4e26b..aaba7d135a46 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -12,7 +12,6 @@
/* #define DEBUG */
-#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 7e60385bcfa5..039b22086a93 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -10,7 +10,6 @@
- (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <log.h> #include <part.h> #include <asm/cache.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index c2cc976618a1..ad688640733e 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Google, Inc
*/
-#include <common.h> #include <bios_emul.h> #include <dm.h> #include <errno.h> diff --git a/drivers/video/lm3533_backlight.c b/drivers/video/lm3533_backlight.c index 00297a09b7fc..6b51fa0628e4 100644 --- a/drivers/video/lm3533_backlight.c +++ b/drivers/video/lm3533_backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 624084d38bca..643a77a0f4e1 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -9,7 +9,6 @@
- Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dbb2f5386171..c89212674624 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -5,7 +5,6 @@
*/ #define DEBUG -#include <common.h> #include <malloc.h> #include <video.h> #include <dm.h> diff --git a/drivers/video/mcde_simple.c b/drivers/video/mcde_simple.c index 0924ceee3098..2ba5d0de1529 100644 --- a/drivers/video/mcde_simple.c +++ b/drivers/video/mcde_simple.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */
-#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/meson/meson_canvas.c b/drivers/video/meson/meson_canvas.c index eccac2f8f24a..dd4c546222d5 100644 --- a/drivers/video/meson/meson_canvas.c +++ b/drivers/video/meson/meson_canvas.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h>
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 259af1b45717..587df7beb9b0 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -4,7 +4,6 @@
- Author: Jorge Ramirez-Ortiz jramirez@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index e3f784ecfe42..899ce22d067e 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index e718a0074ed6..4761ff661e4e 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <linux/bitops.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index e7366dd2fdea..1bc6aaf73055 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <dm.h> #include <edid.h> #include <fdtdec.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index 67d4ce7b3b49..ca627728743b 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -6,7 +6,6 @@
- Author: Neil Armstrong narmstrong@baylibre.com
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index c9808e1c6317..0e34cefd1002 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -8,7 +8,6 @@
#define DEBUG
-#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c index ecacea1dbebd..dc949c8ae61f 100644 --- a/drivers/video/mipi_dsi.c +++ b/drivers/video/mipi_dsi.c @@ -32,7 +32,6 @@
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index d3d07e5f8333..3fc5640b71ec 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -5,7 +5,6 @@
- Initialization of LCD interface and setup of SPLASH screen image
*/
-#include <common.h> #include <dm.h> #include <part.h> #include <video.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 515363f6a49b..792d6314d15e 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -4,7 +4,6 @@
- Copyright (C) 2011-2013 Marek Vasut marex@denx.de
*/ -#include <common.h> #include <clk.h> #include <dm.h> #include <env.h> diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c index 2248f4790575..16a489b88dc2 100644 --- a/drivers/video/nexell/s5pxx18_dp.c +++ b/drivers/video/nexell/s5pxx18_dp.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c index 3f1fb8a5757b..109d9f28bb01 100644 --- a/drivers/video/nexell/s5pxx18_dp_hdmi.c +++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h> #include <log.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c index f8ea63fdf1b3..5db8d2b73b14 100644 --- a/drivers/video/nexell/s5pxx18_dp_lvds.c +++ b/drivers/video/nexell/s5pxx18_dp_lvds.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/nexell.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c index 670272b26802..58493a825982 100644 --- a/drivers/video/nexell/s5pxx18_dp_mipi.c +++ b/drivers/video/nexell/s5pxx18_dp_mipi.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <errno.h>
#include <asm/arch/nexell.h> diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c index 44e8edb02a22..6abb8b5e216b 100644 --- a/drivers/video/nexell/s5pxx18_dp_rgb.c +++ b/drivers/video/nexell/s5pxx18_dp_rgb.c @@ -6,8 +6,8 @@ */
#include <config.h> -#include <common.h> #include <errno.h> +#include <stdio.h>
#include <asm/arch/display.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h index c7bf5043e605..4ad353256ebc 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h +++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h @@ -8,6 +8,7 @@ #ifndef _S5PXX18_SOC_DISPTOP_H_ #define _S5PXX18_SOC_DISPTOP_H_
+#include <linux/types.h> #include "s5pxx18_soc_disptype.h"
#define NUMBER_OF_DISPTOP_MODULE 1 diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index af2698ffca84..7bda33fb16e1 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -8,7 +8,6 @@ */
#include <config.h> -#include <common.h> #include <command.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index 432b16bfbfe7..0b7ce348d5ad 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -25,7 +25,6 @@
- MA 02111-1307 USA
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/dss.h>
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 848f174b6e48..a29e909decc9 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -7,7 +7,6 @@
- This otm8009a panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c index 1f7e20e0b506..52a3466dc8c1 100644 --- a/drivers/video/panel-uclass.c +++ b/drivers/video/panel-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL
-#include <common.h> #include <dm.h> #include <panel.h>
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 1c747d98d7ac..a4576c888cf0 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
-#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index f1fce55a2cb2..b8662ca22bf2 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -7,7 +7,6 @@
- This rm68200 panel driver is inspired from the Linux Kernel driver
- drivers/gpu/drm/panel/panel-raydium-rm68200.c.
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/renesas-r61307.c b/drivers/video/renesas-r61307.c index 3f5859055c98..a3697bce5ee3 100644 --- a/drivers/video/renesas-r61307.c +++ b/drivers/video/renesas-r61307.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/renesas-r69328.c b/drivers/video/renesas-r69328.c index 082f5bc3d0a0..9861c3fef11a 100644 --- a/drivers/video/renesas-r69328.c +++ b/drivers/video/renesas-r69328.c @@ -5,7 +5,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index fb784636e877..fa512173510b 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -24,7 +24,6 @@ #include <dm/lists.h> #include <linux/iopoll.h>
-#include <common.h> #include <log.h> #include <video.h> #include <dm/device-internal.h> diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index efa87540340b..3d39f31a5ade 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 9d42119c8261..850fe3107549 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index a4683852ea0c..282831eaac44 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c index 5f3f5d26886d..c7630ccf5558 100644 --- a/drivers/video/rockchip/rk3399_hdmi.c +++ b/drivers/video/rockchip/rk3399_hdmi.c @@ -3,7 +3,6 @@
- Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index b62d80866745..57e36eed6a99 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index cb589c7537e6..17e1601e8144 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index 5f68a610e4ac..eb881ba4b0ef 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index d31f6a4ff81b..0ac0a3a1ecd0 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -5,7 +5,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index d0a015e31ee8..c969dae30b69 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -3,7 +3,6 @@
- Copyright 2016 Rockchip Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f14cbc6dbf7f..0a603083ba9a 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -4,7 +4,6 @@
- Author: Eric Gao eric.gao@rock-chips.com
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index acc02e5d7c78..17dfe62c9dae 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -4,7 +4,6 @@
- Copyright 2014 Rockchip Inc.
*/
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sandbox_dsi_host.c b/drivers/video/sandbox_dsi_host.c index c84a27ee3be6..7025ac986e3c 100644 --- a/drivers/video/sandbox_dsi_host.c +++ b/drivers/video/sandbox_dsi_host.c @@ -3,7 +3,6 @@
- Copyright (C) 2019, STMicroelectronics - All Rights Reserved
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c index 2a854d3958b7..bedc32b7c80e 100644 --- a/drivers/video/sandbox_osd.c +++ b/drivers/video/sandbox_osd.c @@ -3,7 +3,6 @@
- (C) Copyright 2018
- Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/ -#include <common.h> #include <display.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 9081c7da62e4..69dfa9302735 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -3,7 +3,6 @@
- Copyright (c) 2013 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c index 74c8721e1e11..86cd301c4b91 100644 --- a/drivers/video/seps525.c +++ b/drivers/video/seps525.c @@ -6,7 +6,6 @@
- Copyright (C) 2020 Xilinx Inc.
*/
-#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 76a30427a59f..b6c5b058b2e9 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -4,7 +4,6 @@
- Written by Simon Glass sjg@chromium.org
*/
-#include <common.h> #include <backlight.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 33bb78bc3a3e..cb518b149cb5 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -3,7 +3,6 @@
- (C) Copyright 2017 Rob Clark
*/
-#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 948f5e74d0fe..4334bbd72353 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -9,7 +9,6 @@
- interface for driving a MIPI compatible TFT display.
*/
-#include <common.h> #include <malloc.h> #include <mipi_display.h> #include <asm/gpio.h> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index a18c1e027a87..438ed41e8d5f 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -10,7 +10,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
-#include <common.h> #include <clk.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 4f60ba8ebeeb..0a062c8939db 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -7,7 +7,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 73033c3b8589..264d775c1256 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <log.h> #include <linux/delay.h>
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index e02d359cd259..154641b9a699 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 8da44a1bb6d8..4a6a89ef9d26 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -6,7 +6,7 @@
- (C) Copyright 2014-2015 Hans de Goede hdegoede@redhat.com
*/
-#include <common.h> +#include <config.h> #include <display.h> #include <dm.h> #include <cpu_func.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index a5e8d39e98f8..b9c03ea03864 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -6,7 +6,6 @@ */
#include <clk.h> -#include <common.h> #include <display.h> #include <dm.h> #include <dw_hdmi.h> diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 7a01cc343cac..953233fcd683 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -5,7 +5,6 @@
- (C) Copyright 2017 Vasily Khoruzhick anarsoul@gmail.com
*/
-#include <common.h> #include <display.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/sunxi/tve_common.c b/drivers/video/sunxi/tve_common.c index 35251371d14f..7bc2b3b29090 100644 --- a/drivers/video/sunxi/tve_common.c +++ b/drivers/video/sunxi/tve_common.c @@ -7,7 +7,6 @@
- (C) Copyright 2017 Jernej Skrabec jernej.skrabec@siol.net
*/
-#include <common.h>
#include <asm/arch/tve.h> #include <asm/io.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 244874390454..ebc8521c6edd 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -5,7 +5,6 @@
- Based on the Linux driver, (C) 2012 Texas Instruments
*/
-#include <common.h> #include <dm.h> #include <display.h> #include <i2c.h> diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index 273672db024a..d772958f46ed 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 BayLibre, SAS
- Author: Neil Armstrong narmstrong@baylibre.com
*/ -#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index 9261cc9384a2..abe31e27d84d 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -5,7 +5,6 @@
- Extracted from Chromium coreboot commit 3f59b13d
*/
-#include <common.h> #include <bootstage.h> #include <dm.h> #include <edid.h> @@ -14,6 +13,7 @@ #include <edid.h> #include <log.h> #include <part.h> +#include <time.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index b27b1633bab5..763f7ee39fcd 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -4,12 +4,12 @@
- Copyright 2014 Google Inc.
*/
-#include <common.h> #include <display.h> #include <dm.h> #include <div64.h> #include <errno.h> #include <log.h> +#include <time.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 258685182c7d..1ce5330c6bcf 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -3,7 +3,6 @@
- Copyright (c) 2011-2013, NVIDIA Corporation.
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/tegra20/mipi-phy.c b/drivers/video/tegra20/mipi-phy.c index c3ebc4074b53..576262e405d6 100644 --- a/drivers/video/tegra20/mipi-phy.c +++ b/drivers/video/tegra20/mipi-phy.c @@ -3,7 +3,6 @@
- Copyright (C) 2013 NVIDIA Corporation
*/
-#include <common.h> #include <linux/err.h>
#include "mipi-phy.h" diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 13dae37806f1..35a8e6c176b3 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -4,7 +4,6 @@
- Copyright (c) 2022 Svyatoslav Ryhel clamor95@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pwm-backlight.c index 5f93f57fe908..79d8a021a3ac 100644 --- a/drivers/video/tegra20/tegra-pwm-backlight.c +++ b/drivers/video/tegra20/tegra-pwm-backlight.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
#include <backlight.h> -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/ti/tilcdc-panel.c b/drivers/video/ti/tilcdc-panel.c index df95086a5151..d40765230600 100644 --- a/drivers/video/ti/tilcdc-panel.c +++ b/drivers/video/ti/tilcdc-panel.c @@ -5,7 +5,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <backlight.h> #include <clk.h> #include <display.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 2734754ecde7..493e2f18cd2d 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -3,7 +3,6 @@
- Copyright (C) 2020 Dario Binacchi dariobin@libero.it
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 1380c6b69375..865d4bddb7f9 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -9,7 +9,6 @@
- Author: Tomi Valkeinen tomi.valkeinen@ti.com
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/video/vesa.c b/drivers/video/vesa.c index 50912c5c8bca..ab756ac8ea12 100644 --- a/drivers/video/vesa.c +++ b/drivers/video/vesa.c @@ -3,7 +3,6 @@
- Copyright (C) 2016, Bin Meng bmeng.cn@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 5d06e51ff236..80e7adf6a1a4 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -9,7 +9,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
-#include <common.h> #include <abuf.h> #include <charset.h> #include <command.h> diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 7b5d1dfbb3bd..ff1382f4a43b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_VIDEO
-#include <common.h> #include <bloblist.h> #include <console.h> #include <cpu_func.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index 45f003c8251a..ad512d99a1b9 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -3,7 +3,6 @@
- Copyright (c) 2015 Google, Inc
*/
-#include <common.h> #include <bmp_layout.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/video_osd-uclass.c b/drivers/video/video_osd-uclass.c index 0d3aae4d8272..923686345ff7 100644 --- a/drivers/video/video_osd-uclass.c +++ b/drivers/video/video_osd-uclass.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIDEO_OSD
-#include <common.h> #include <dm.h> #include <video_osd.h>
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 35955a5df7dd..d86d86798415 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -55,7 +55,6 @@ "myvideo" and setting the variable "videomode=myvideo".. ****************************************************************************/
-#include <common.h> #include <edid.h> #include <env.h> #include <errno.h> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c index def4dcf6261a..1405b29cb8b9 100644 --- a/drivers/video/zynqmp/zynqmp_dpsub.c +++ b/drivers/video/zynqmp/zynqmp_dpsub.c @@ -6,7 +6,6 @@
- Xilinx displayport(DP) Tx Subsytem driver
*/
-#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Bin Meng bmeng.cn@gmail.com Cc: Tom Rini trini@konsulko.com Cc: Sughosh Ganu sughosh.ganu@linaro.org Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Simon Glass sjg@chromium.org --- drivers/virtio/virtio-uclass.c | 1 - drivers/virtio/virtio_blk.c | 1 - drivers/virtio/virtio_mmio.c | 1 - drivers/virtio/virtio_net.c | 1 - drivers/virtio/virtio_pci_legacy.c | 1 - drivers/virtio/virtio_pci_modern.c | 1 - drivers/virtio/virtio_ring.c | 1 - drivers/virtio/virtio_rng.c | 1 - drivers/virtio/virtio_sandbox.c | 1 - include/virtio.h | 1 + 10 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index c54201627352..1dbc1a56aa21 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -17,7 +17,6 @@
#define LOG_CATEGORY UCLASS_VIRTIO
-#include <common.h> #include <bootdev.h> #include <dm.h> #include <log.h> diff --git a/drivers/virtio/virtio_blk.c b/drivers/virtio/virtio_blk.c index 95810582867c..3404f61eba5f 100644 --- a/drivers/virtio/virtio_blk.c +++ b/drivers/virtio/virtio_blk.c @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIRTIO
-#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 78c15c821b4e..1cd737aca249 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -7,7 +7,6 @@ * Ported from Linux drivers/virtio/virtio_mmio.c */
-#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_net.c b/drivers/virtio/virtio_net.c index 1794f73a8de8..0e5367a085e4 100644 --- a/drivers/virtio/virtio_net.c +++ b/drivers/virtio/virtio_net.c @@ -4,7 +4,6 @@ * Copyright (C) 2018, Bin Meng bmeng.cn@gmail.com */
-#include <common.h> #include <dm.h> #include <net.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index aa89604ae84d..15f8c6e7d257 100644 --- a/drivers/virtio/virtio_pci_legacy.c +++ b/drivers/virtio/virtio_pci_legacy.c @@ -6,7 +6,6 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */
-#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index 3cdc2d2d6fd3..5850e0c18c69 100644 --- a/drivers/virtio/virtio_pci_modern.c +++ b/drivers/virtio/virtio_pci_modern.c @@ -6,7 +6,6 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */
-#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index c9adcce5c09b..306fa5b3f681 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -7,7 +7,6 @@ */
#include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/virtio/virtio_rng.c b/drivers/virtio/virtio_rng.c index 786359a6e364..90a371a59cc7 100644 --- a/drivers/virtio/virtio_rng.c +++ b/drivers/virtio/virtio_rng.c @@ -3,7 +3,6 @@ * Copyright (c) 2019, Linaro Limited */
-#include <common.h> #include <dm.h> #include <log.h> #include <rng.h> diff --git a/drivers/virtio/virtio_sandbox.c b/drivers/virtio/virtio_sandbox.c index b34f1d60455e..0f1ebef22e58 100644 --- a/drivers/virtio/virtio_sandbox.c +++ b/drivers/virtio/virtio_sandbox.c @@ -5,7 +5,6 @@ * VirtIO Sandbox transport driver, for testing purpose only */
-#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h> diff --git a/include/virtio.h b/include/virtio.h index 062a24630ce9..1ab0ec5f39f5 100644 --- a/include/virtio.h +++ b/include/virtio.h @@ -23,6 +23,7 @@ #include <virtio_types.h> #include <linux/bitops.h> #include <linux/bug.h> +#include <linux/typecheck.h> #define VIRTIO_ID_NET 1 /* virtio net */ #define VIRTIO_ID_BLOCK 2 /* virtio block */ #define VIRTIO_ID_RNG 4 /* virtio rng */

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com --- drivers/w1/mxc_w1.c | 1 - drivers/w1/w1-gpio.c | 1 - drivers/w1/w1-uclass.c | 1 - 3 files changed, 3 deletions(-)
diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c index b96c1a00bf24..9ebfc13c83aa 100644 --- a/drivers/w1/mxc_w1.c +++ b/drivers/w1/mxc_w1.c @@ -17,7 +17,6 @@ * Martin Fuzzey martin.fuzzey@flowbird.group */
-#include <common.h> #include <asm/arch/clock.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/w1/w1-gpio.c b/drivers/w1/w1-gpio.c index 9346f810ce11..759f94e224e4 100644 --- a/drivers/w1/w1-gpio.c +++ b/drivers/w1/w1-gpio.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <dm.h> #include <log.h> #include <w1.h> diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c index a4247ecd6233..9637ed242573 100644 --- a/drivers/w1/w1-uclass.c +++ b/drivers/w1/w1-uclass.c @@ -14,7 +14,6 @@
#define LOG_CATEGORY UCLASS_W1
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org --- drivers/w1-eeprom/ds24xxx.c | 1 - drivers/w1-eeprom/ds2502.c | 1 - drivers/w1-eeprom/eep_sandbox.c | 1 - drivers/w1-eeprom/w1-eeprom-uclass.c | 1 - 4 files changed, 4 deletions(-)
diff --git a/drivers/w1-eeprom/ds24xxx.c b/drivers/w1-eeprom/ds24xxx.c index 4be378b43d03..413d8bc58814 100644 --- a/drivers/w1-eeprom/ds24xxx.c +++ b/drivers/w1-eeprom/ds24xxx.c @@ -7,7 +7,6 @@ * */
-#include <common.h> #include <linux/err.h> #include <dm.h> #include <w1-eeprom.h> diff --git a/drivers/w1-eeprom/ds2502.c b/drivers/w1-eeprom/ds2502.c index a67f5edd0feb..db9f41e97269 100644 --- a/drivers/w1-eeprom/ds2502.c +++ b/drivers/w1-eeprom/ds2502.c @@ -20,7 +20,6 @@ * Martin Fuzzey martin.fuzzey@flowbird.group */
-#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/err.h> diff --git a/drivers/w1-eeprom/eep_sandbox.c b/drivers/w1-eeprom/eep_sandbox.c index 27c7f9f1b6b8..2a69ca27de79 100644 --- a/drivers/w1-eeprom/eep_sandbox.c +++ b/drivers/w1-eeprom/eep_sandbox.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <linux/err.h> #include <dm.h> #include <w1-eeprom.h> diff --git a/drivers/w1-eeprom/w1-eeprom-uclass.c b/drivers/w1-eeprom/w1-eeprom-uclass.c index 70ba537243f8..3919aad3c8af 100644 --- a/drivers/w1-eeprom/w1-eeprom-uclass.c +++ b/drivers/w1-eeprom/w1-eeprom-uclass.c @@ -12,7 +12,6 @@
#define LOG_CATEGORY UCLASS_W1_EEPROM
-#include <common.h> #include <dm.h> #include <log.h> #include <w1.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Stefan Roese sr@denx.de Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Huan Wang alison.wang@nxp.com Cc: Angelo Dureghello angelo@kernel-space.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Simon Glass sjg@chromium.org Cc: Priyanka Jain priyanka.jain@nxp.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com --- drivers/watchdog/armada-37xx-wdt.c | 1 - drivers/watchdog/ast2600_wdt.c | 1 - drivers/watchdog/ast_wdt.c | 1 - drivers/watchdog/at91sam9_wdt.c | 1 - drivers/watchdog/bcm6345_wdt.c | 1 - drivers/watchdog/cdns_wdt.c | 1 - drivers/watchdog/cortina_wdt.c | 1 - drivers/watchdog/designware_wdt.c | 1 - drivers/watchdog/ftwdt010_wdt.c | 1 - drivers/watchdog/imx_watchdog.c | 1 - drivers/watchdog/mcf_wdt.c | 2 +- drivers/watchdog/mpc8xxx_wdt.c | 1 - drivers/watchdog/mt7621_wdt.c | 1 - drivers/watchdog/mtk_wdt.c | 1 - drivers/watchdog/omap_wdt.c | 1 - drivers/watchdog/orion_wdt.c | 1 - drivers/watchdog/rti_wdt.c | 1 - drivers/watchdog/s5p_wdt.c | 1 - drivers/watchdog/sandbox_alarm-wdt.c | 1 - drivers/watchdog/sandbox_wdt.c | 1 - drivers/watchdog/sbsa_gwdt.c | 1 - drivers/watchdog/sl28cpld-wdt.c | 1 - drivers/watchdog/sp805_wdt.c | 1 - drivers/watchdog/stm32mp_wdt.c | 1 - drivers/watchdog/tangier_wdt.c | 1 - drivers/watchdog/ulp_wdog.c | 1 - drivers/watchdog/wdt-uclass.c | 1 - drivers/watchdog/xilinx_tb_wdt.c | 1 - drivers/watchdog/xilinx_wwdt.c | 1 - 29 files changed, 1 insertion(+), 29 deletions(-)
diff --git a/drivers/watchdog/armada-37xx-wdt.c b/drivers/watchdog/armada-37xx-wdt.c index e09f5ac9e34e..4b51178e1b8c 100644 --- a/drivers/watchdog/armada-37xx-wdt.c +++ b/drivers/watchdog/armada-37xx-wdt.c @@ -5,7 +5,6 @@ * Marek Behún kabel@kernel.org */
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/ast2600_wdt.c b/drivers/watchdog/ast2600_wdt.c index bc9842089bea..190490f3692b 100644 --- a/drivers/watchdog/ast2600_wdt.c +++ b/drivers/watchdog/ast2600_wdt.c @@ -3,7 +3,6 @@ * Copyright (c) 2020 Aspeed Technology, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index f7b5a1adc108..e61e13fdc49d 100644 --- a/drivers/watchdog/ast_wdt.c +++ b/drivers/watchdog/ast_wdt.c @@ -3,7 +3,6 @@ * Copyright 2017 Google, Inc */
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 647ae325e9ae..c809a8936b89 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -18,7 +18,6 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_wdt.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/watchdog/bcm6345_wdt.c b/drivers/watchdog/bcm6345_wdt.c index 677b1347ca7a..6ebe901c2b82 100644 --- a/drivers/watchdog/bcm6345_wdt.c +++ b/drivers/watchdog/bcm6345_wdt.c @@ -7,7 +7,6 @@ * Copyright (C) 2008 Florian Fainelli florian@openwrt.org */
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index 743ab6487bcd..cb5a786c5891 100644 --- a/drivers/watchdog/cdns_wdt.c +++ b/drivers/watchdog/cdns_wdt.c @@ -6,7 +6,6 @@ * Author(s): Shreenidhi Shedi yesshedi@gmail.com */
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cortina_wdt.c b/drivers/watchdog/cortina_wdt.c index 7ab9d7b2db97..9f09ac0e15ff 100644 --- a/drivers/watchdog/cortina_wdt.c +++ b/drivers/watchdog/cortina_wdt.c @@ -4,7 +4,6 @@ * */
-#include <common.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c index b22e0ee06a4e..bd9d7105366b 100644 --- a/drivers/watchdog/designware_wdt.c +++ b/drivers/watchdog/designware_wdt.c @@ -4,7 +4,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <reset.h> #include <wdt.h> diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c index 1f5f301b1251..4769b967e527 100644 --- a/drivers/watchdog/ftwdt010_wdt.c +++ b/drivers/watchdog/ftwdt010_wdt.c @@ -14,7 +14,6 @@ * 22/08/2022 Port to DM */
-#include <common.h> #include <dm.h> #include <wdt.h> #include <log.h> diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index 894158b304a7..ea770217e590 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -4,7 +4,6 @@ * Licensed under the GPL-2 or later. */
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <hang.h> diff --git a/drivers/watchdog/mcf_wdt.c b/drivers/watchdog/mcf_wdt.c index b36488bb5b96..5092a256af0c 100644 --- a/drivers/watchdog/mcf_wdt.c +++ b/drivers/watchdog/mcf_wdt.c @@ -6,7 +6,7 @@ * */
-#include <common.h> +#include <config.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index f28636ca9015..036ff690d3fd 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c @@ -3,7 +3,6 @@ * Copyright 2017 CS Systemes d'Information */
-#include <common.h> #include <env.h> #include <dm.h> #include <wdt.h> diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c index f7d201b921a1..6308d9632a81 100644 --- a/drivers/watchdog/mt7621_wdt.c +++ b/drivers/watchdog/mt7621_wdt.c @@ -9,7 +9,6 @@ * Copyright (C) 2013 John Crispin blogic@openwrt.org */
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index 368b36849c8d..706deb9da846 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -6,7 +6,6 @@ * Author: Ryder Lee ryder.lee@mediatek.com */
-#include <common.h> #include <dm.h> #include <hang.h> #include <wdt.h> diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index f0e57b4f7286..5fd02ddf564f 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -36,7 +36,6 @@ * Use the driver model and standard identifiers; handle bigger timeouts. */
-#include <common.h> #include <log.h> #include <watchdog.h> #include <asm/ti-common/omap_wdt.h> diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 127766df58af..4562b2a37e34 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -12,7 +12,6 @@ * warranty of any kind, whether express or implied. */
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c index 8d93f19b984a..99168d0cad03 100644 --- a/drivers/watchdog/rti_wdt.c +++ b/drivers/watchdog/rti_wdt.c @@ -8,7 +8,6 @@ * Derived from linux/drivers/watchdog/rti_wdt.c */
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/watchdog/s5p_wdt.c b/drivers/watchdog/s5p_wdt.c index 80524a00101b..c244f15a8952 100644 --- a/drivers/watchdog/s5p_wdt.c +++ b/drivers/watchdog/s5p_wdt.c @@ -4,7 +4,6 @@ * Minkyu Kang mk7.kang@samsung.com */
-#include <common.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/watchdog.h> diff --git a/drivers/watchdog/sandbox_alarm-wdt.c b/drivers/watchdog/sandbox_alarm-wdt.c index 71bb5d924ea5..8dbbfc249e7c 100644 --- a/drivers/watchdog/sandbox_alarm-wdt.c +++ b/drivers/watchdog/sandbox_alarm-wdt.c @@ -1,4 +1,3 @@ -#include <common.h> #include <dm.h> #include <os.h> #include <wdt.h> diff --git a/drivers/watchdog/sandbox_wdt.c b/drivers/watchdog/sandbox_wdt.c index 535614f04d63..cd5eadbfd213 100644 --- a/drivers/watchdog/sandbox_wdt.c +++ b/drivers/watchdog/sandbox_wdt.c @@ -3,7 +3,6 @@ * Copyright 2017 Google, Inc */
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/state.h> diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c index 96d04665d52c..03585529bb63 100644 --- a/drivers/watchdog/sbsa_gwdt.c +++ b/drivers/watchdog/sbsa_gwdt.c @@ -7,7 +7,6 @@
#include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <dm/device.h> #include <dm/fdtaddr.h> #include <dm/read.h> diff --git a/drivers/watchdog/sl28cpld-wdt.c b/drivers/watchdog/sl28cpld-wdt.c index af5a6b1a28ac..c5b4f8a9f665 100644 --- a/drivers/watchdog/sl28cpld-wdt.c +++ b/drivers/watchdog/sl28cpld-wdt.c @@ -5,7 +5,6 @@ * Copyright (c) 2021 Michael Walle michael@walle.cc */
-#include <common.h> #include <dm.h> #include <wdt.h> #include <sl28cpld.h> diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 6d58fd3cfdab..10fe3e282323 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -8,7 +8,6 @@ #include <log.h> #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c index 7ebcd2552668..97ab8cfe7ab1 100644 --- a/drivers/watchdog/stm32mp_wdt.c +++ b/drivers/watchdog/stm32mp_wdt.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_WDT
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/watchdog/tangier_wdt.c b/drivers/watchdog/tangier_wdt.c index bdc65597dcff..8fbfac31b1e1 100644 --- a/drivers/watchdog/tangier_wdt.c +++ b/drivers/watchdog/tangier_wdt.c @@ -2,7 +2,6 @@ /* * Copyright (c) 2017 Intel Corporation */ -#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/ulp_wdog.c b/drivers/watchdog/ulp_wdog.c index 0eea04ed2c6e..83f19dc0e86b 100644 --- a/drivers/watchdog/ulp_wdog.c +++ b/drivers/watchdog/ulp_wdog.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Freescale Semiconductor, Inc. */
-#include <common.h> #include <cpu_func.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index 417e8d7eef95..c88312ec7218 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_WDT
-#include <common.h> #include <cyclic.h> #include <div64.h> #include <dm.h> diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c index b38c40001611..8a8e55370a0e 100644 --- a/drivers/watchdog/xilinx_tb_wdt.c +++ b/drivers/watchdog/xilinx_tb_wdt.c @@ -8,7 +8,6 @@ * Copyright (c) 2011-2018 Xilinx Inc. */
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c index 963ab22fb452..41eff1a46450 100644 --- a/drivers/watchdog/xilinx_wwdt.c +++ b/drivers/watchdog/xilinx_wwdt.c @@ -9,7 +9,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <regmap.h> #include <wdt.h>

Hi Tom,
Acked-by: Angelo Dureghello angelo@kernel-space.org
On 02/05/24 3:31 AM, Tom Rini wrote:
Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com
Cc: Stefan Roese sr@denx.de Cc: Tom Rini trini@konsulko.com Cc: Ryan Chen ryan_chen@aspeedtech.com Cc: Chia-Wei Wang chiawei_wang@aspeedtech.com Cc: Aspeed BMC SW team BMC-SW@aspeedtech.com Cc: Joel Stanley joel@jms.id.au Cc: Michal Simek michal.simek@amd.com Cc: Alex Nemirovsky alex.nemirovsky@cortina-access.com Cc: Huan Wang alison.wang@nxp.com Cc: Angelo Dureghello angelo@kernel-space.org Cc: Ryder Lee ryder.lee@mediatek.com Cc: Weijie Gao weijie.gao@mediatek.com Cc: Chunfeng Yun chunfeng.yun@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Simon Glass sjg@chromium.org Cc: Priyanka Jain priyanka.jain@nxp.com Cc: Michael Walle michael@walle.cc Cc: Patrick Delaunay patrick.delaunay@foss.st.com Cc: Patrice Chotard patrice.chotard@foss.st.com
drivers/watchdog/armada-37xx-wdt.c | 1 - drivers/watchdog/ast2600_wdt.c | 1 - drivers/watchdog/ast_wdt.c | 1 - drivers/watchdog/at91sam9_wdt.c | 1 - drivers/watchdog/bcm6345_wdt.c | 1 - drivers/watchdog/cdns_wdt.c | 1 - drivers/watchdog/cortina_wdt.c | 1 - drivers/watchdog/designware_wdt.c | 1 - drivers/watchdog/ftwdt010_wdt.c | 1 - drivers/watchdog/imx_watchdog.c | 1 - drivers/watchdog/mcf_wdt.c | 2 +- drivers/watchdog/mpc8xxx_wdt.c | 1 - drivers/watchdog/mt7621_wdt.c | 1 - drivers/watchdog/mtk_wdt.c | 1 - drivers/watchdog/omap_wdt.c | 1 - drivers/watchdog/orion_wdt.c | 1 - drivers/watchdog/rti_wdt.c | 1 - drivers/watchdog/s5p_wdt.c | 1 - drivers/watchdog/sandbox_alarm-wdt.c | 1 - drivers/watchdog/sandbox_wdt.c | 1 - drivers/watchdog/sbsa_gwdt.c | 1 - drivers/watchdog/sl28cpld-wdt.c | 1 - drivers/watchdog/sp805_wdt.c | 1 - drivers/watchdog/stm32mp_wdt.c | 1 - drivers/watchdog/tangier_wdt.c | 1 - drivers/watchdog/ulp_wdog.c | 1 - drivers/watchdog/wdt-uclass.c | 1 - drivers/watchdog/xilinx_tb_wdt.c | 1 - drivers/watchdog/xilinx_wwdt.c | 1 - 29 files changed, 1 insertion(+), 29 deletions(-)
diff --git a/drivers/watchdog/armada-37xx-wdt.c b/drivers/watchdog/armada-37xx-wdt.c index e09f5ac9e34e..4b51178e1b8c 100644 --- a/drivers/watchdog/armada-37xx-wdt.c +++ b/drivers/watchdog/armada-37xx-wdt.c @@ -5,7 +5,6 @@
- Marek Behún kabel@kernel.org
*/
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/ast2600_wdt.c b/drivers/watchdog/ast2600_wdt.c index bc9842089bea..190490f3692b 100644 --- a/drivers/watchdog/ast2600_wdt.c +++ b/drivers/watchdog/ast2600_wdt.c @@ -3,7 +3,6 @@
- Copyright (c) 2020 Aspeed Technology, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index f7b5a1adc108..e61e13fdc49d 100644 --- a/drivers/watchdog/ast_wdt.c +++ b/drivers/watchdog/ast_wdt.c @@ -3,7 +3,6 @@
- Copyright 2017 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 647ae325e9ae..c809a8936b89 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -18,7 +18,6 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_wdt.h> -#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/watchdog/bcm6345_wdt.c b/drivers/watchdog/bcm6345_wdt.c index 677b1347ca7a..6ebe901c2b82 100644 --- a/drivers/watchdog/bcm6345_wdt.c +++ b/drivers/watchdog/bcm6345_wdt.c @@ -7,7 +7,6 @@
- Copyright (C) 2008 Florian Fainelli florian@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index 743ab6487bcd..cb5a786c5891 100644 --- a/drivers/watchdog/cdns_wdt.c +++ b/drivers/watchdog/cdns_wdt.c @@ -6,7 +6,6 @@
- Author(s): Shreenidhi Shedi yesshedi@gmail.com
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cortina_wdt.c b/drivers/watchdog/cortina_wdt.c index 7ab9d7b2db97..9f09ac0e15ff 100644 --- a/drivers/watchdog/cortina_wdt.c +++ b/drivers/watchdog/cortina_wdt.c @@ -4,7 +4,6 @@
*/
-#include <common.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c index b22e0ee06a4e..bd9d7105366b 100644 --- a/drivers/watchdog/designware_wdt.c +++ b/drivers/watchdog/designware_wdt.c @@ -4,7 +4,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <reset.h> #include <wdt.h> diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c index 1f5f301b1251..4769b967e527 100644 --- a/drivers/watchdog/ftwdt010_wdt.c +++ b/drivers/watchdog/ftwdt010_wdt.c @@ -14,7 +14,6 @@
- 22/08/2022 Port to DM
*/
-#include <common.h> #include <dm.h> #include <wdt.h> #include <log.h> diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index 894158b304a7..ea770217e590 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -4,7 +4,6 @@
- Licensed under the GPL-2 or later.
*/
-#include <common.h> #include <cpu_func.h> #include <dm.h> #include <hang.h> diff --git a/drivers/watchdog/mcf_wdt.c b/drivers/watchdog/mcf_wdt.c index b36488bb5b96..5092a256af0c 100644 --- a/drivers/watchdog/mcf_wdt.c +++ b/drivers/watchdog/mcf_wdt.c @@ -6,7 +6,7 @@
*/
-#include <common.h> +#include <config.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index f28636ca9015..036ff690d3fd 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c @@ -3,7 +3,6 @@
- Copyright 2017 CS Systemes d'Information
*/
-#include <common.h> #include <env.h> #include <dm.h> #include <wdt.h> diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c index f7d201b921a1..6308d9632a81 100644 --- a/drivers/watchdog/mt7621_wdt.c +++ b/drivers/watchdog/mt7621_wdt.c @@ -9,7 +9,6 @@
- Copyright (C) 2013 John Crispin blogic@openwrt.org
*/
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index 368b36849c8d..706deb9da846 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -6,7 +6,6 @@
- Author: Ryder Lee ryder.lee@mediatek.com
*/
-#include <common.h> #include <dm.h> #include <hang.h> #include <wdt.h> diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index f0e57b4f7286..5fd02ddf564f 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -36,7 +36,6 @@
- Use the driver model and standard identifiers; handle bigger timeouts.
*/
-#include <common.h> #include <log.h> #include <watchdog.h> #include <asm/ti-common/omap_wdt.h> diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 127766df58af..4562b2a37e34 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -12,7 +12,6 @@
- warranty of any kind, whether express or implied.
*/
-#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c index 8d93f19b984a..99168d0cad03 100644 --- a/drivers/watchdog/rti_wdt.c +++ b/drivers/watchdog/rti_wdt.c @@ -8,7 +8,6 @@
- Derived from linux/drivers/watchdog/rti_wdt.c
*/
-#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/watchdog/s5p_wdt.c b/drivers/watchdog/s5p_wdt.c index 80524a00101b..c244f15a8952 100644 --- a/drivers/watchdog/s5p_wdt.c +++ b/drivers/watchdog/s5p_wdt.c @@ -4,7 +4,6 @@
- Minkyu Kang mk7.kang@samsung.com
*/
-#include <common.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/watchdog.h> diff --git a/drivers/watchdog/sandbox_alarm-wdt.c b/drivers/watchdog/sandbox_alarm-wdt.c index 71bb5d924ea5..8dbbfc249e7c 100644 --- a/drivers/watchdog/sandbox_alarm-wdt.c +++ b/drivers/watchdog/sandbox_alarm-wdt.c @@ -1,4 +1,3 @@ -#include <common.h> #include <dm.h> #include <os.h> #include <wdt.h> diff --git a/drivers/watchdog/sandbox_wdt.c b/drivers/watchdog/sandbox_wdt.c index 535614f04d63..cd5eadbfd213 100644 --- a/drivers/watchdog/sandbox_wdt.c +++ b/drivers/watchdog/sandbox_wdt.c @@ -3,7 +3,6 @@
- Copyright 2017 Google, Inc
*/
-#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/state.h> diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c index 96d04665d52c..03585529bb63 100644 --- a/drivers/watchdog/sbsa_gwdt.c +++ b/drivers/watchdog/sbsa_gwdt.c @@ -7,7 +7,6 @@
#include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <dm/device.h> #include <dm/fdtaddr.h> #include <dm/read.h> diff --git a/drivers/watchdog/sl28cpld-wdt.c b/drivers/watchdog/sl28cpld-wdt.c index af5a6b1a28ac..c5b4f8a9f665 100644 --- a/drivers/watchdog/sl28cpld-wdt.c +++ b/drivers/watchdog/sl28cpld-wdt.c @@ -5,7 +5,6 @@
- Copyright (c) 2021 Michael Walle michael@walle.cc
*/
-#include <common.h> #include <dm.h> #include <wdt.h> #include <sl28cpld.h> diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 6d58fd3cfdab..10fe3e282323 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -8,7 +8,6 @@ #include <log.h> #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c index 7ebcd2552668..97ab8cfe7ab1 100644 --- a/drivers/watchdog/stm32mp_wdt.c +++ b/drivers/watchdog/stm32mp_wdt.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_WDT
-#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/watchdog/tangier_wdt.c b/drivers/watchdog/tangier_wdt.c index bdc65597dcff..8fbfac31b1e1 100644 --- a/drivers/watchdog/tangier_wdt.c +++ b/drivers/watchdog/tangier_wdt.c @@ -2,7 +2,6 @@ /*
- Copyright (c) 2017 Intel Corporation
*/ -#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/ulp_wdog.c b/drivers/watchdog/ulp_wdog.c index 0eea04ed2c6e..83f19dc0e86b 100644 --- a/drivers/watchdog/ulp_wdog.c +++ b/drivers/watchdog/ulp_wdog.c @@ -3,7 +3,6 @@
- Copyright (C) 2016 Freescale Semiconductor, Inc.
*/
-#include <common.h> #include <cpu_func.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index 417e8d7eef95..c88312ec7218 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_WDT
-#include <common.h> #include <cyclic.h> #include <div64.h> #include <dm.h> diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c index b38c40001611..8a8e55370a0e 100644 --- a/drivers/watchdog/xilinx_tb_wdt.c +++ b/drivers/watchdog/xilinx_tb_wdt.c @@ -8,7 +8,6 @@
- Copyright (c) 2011-2018 Xilinx Inc.
*/
-#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c index 963ab22fb452..41eff1a46450 100644 --- a/drivers/watchdog/xilinx_wwdt.c +++ b/drivers/watchdog/xilinx_wwdt.c @@ -9,7 +9,6 @@ */
#include <clk.h> -#include <common.h> #include <dm.h> #include <regmap.h> #include <wdt.h>

Remove <common.h> from this driver directory and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- Cc: Anastasiia Lukianenko vicooodin@gmail.com Cc: Oleksandr Andrushchenko oleksandr_andrushchenko@epam.com Cc: Tom Rini trini@konsulko.com --- drivers/xen/events.c | 1 - drivers/xen/gnttab.c | 1 - drivers/xen/hypervisor.c | 1 - drivers/xen/pvblock.c | 1 - drivers/xen/xenbus.c | 1 - include/xen/events.h | 1 + 6 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 2ebe20dbf26e..fa8b13d2c61d 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -14,7 +14,6 @@ * * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ -#include <common.h> #include <log.h>
#include <asm/io.h> diff --git a/drivers/xen/gnttab.c b/drivers/xen/gnttab.c index 31e96e2939c0..005694a5c626 100644 --- a/drivers/xen/gnttab.c +++ b/drivers/xen/gnttab.c @@ -14,7 +14,6 @@ * * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ -#include <common.h> #include <asm/global_data.h> #include <linux/compiler.h> #include <log.h> diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c index 0b2311ba2675..d28df823c684 100644 --- a/drivers/xen/hypervisor.c +++ b/drivers/xen/hypervisor.c @@ -8,7 +8,6 @@ * Copyright (c) 2005, Grzegorz Milos, gm281@cam.ac.uk,Intel Research Cambridge * Copyright (c) 2020, EPAM Systems Inc. */ -#include <common.h> #include <cpu_func.h> #include <log.h> #include <memalign.h> diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index 9fc51d203e5e..0e47ffb46a82 100644 --- a/drivers/xen/pvblock.c +++ b/drivers/xen/pvblock.c @@ -7,7 +7,6 @@ #define LOG_CATEGORY UCLASS_PVBLOCK
#include <blk.h> -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <malloc.h> diff --git a/drivers/xen/xenbus.c b/drivers/xen/xenbus.c index 177d144723c1..36de52550997 100644 --- a/drivers/xen/xenbus.c +++ b/drivers/xen/xenbus.c @@ -15,7 +15,6 @@ * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */
-#include <common.h> #include <log.h>
#include <asm/armv8/mmu.h> diff --git a/include/xen/events.h b/include/xen/events.h index 82bd18b48c88..f0a8ef32d00b 100644 --- a/include/xen/events.h +++ b/include/xen/events.h @@ -15,6 +15,7 @@ #ifndef _EVENTS_H_ #define _EVENTS_H_
+#include <asm/ptrace.h> #include <asm/xen/hypercall.h> #include <xen/interface/event_channel.h>

Remove <common.h> from here and when needed add missing include files directly.
Signed-off-by: Tom Rini trini@konsulko.com --- api/api.c | 4 +++- api/api_display.c | 2 +- api/api_net.c | 1 - api/api_storage.c | 2 +- examples/api/demo.c | 2 +- examples/api/glue.c | 1 - examples/api/libgenwrap.c | 1 - examples/standalone/atmel_df_pow2.c | 1 - examples/standalone/sched.c | 1 - examples/standalone/stubs.c | 1 - include/api_public.h | 2 ++ 11 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/api/api.c b/api/api.c index 89003c161c2f..d22132f62fe3 100644 --- a/api/api.c +++ b/api/api.c @@ -7,11 +7,13 @@
#include <config.h> #include <command.h> -#include <common.h> #include <env.h> #include <malloc.h> +#include <time.h> #include <env_internal.h> +#include <vsprintf.h> #include <linux/delay.h> +#include <linux/errno.h> #include <linux/types.h> #include <api_public.h> #include <u-boot/crc.h> diff --git a/api/api_display.c b/api/api_display.c index 2e877a85d147..8fd078c8c4aa 100644 --- a/api/api_display.c +++ b/api/api_display.c @@ -3,9 +3,9 @@ * Copyright (c) 2011 The Chromium OS Authors. */
-#include <common.h> #include <api_public.h> #include <log.h> +#include <linux/types.h>
/* TODO(clchiou): add support of video device */
diff --git a/api/api_net.c b/api/api_net.c index 7515c26e8b44..264ff530563b 100644 --- a/api/api_net.c +++ b/api/api_net.c @@ -6,7 +6,6 @@ */
#include <config.h> -#include <common.h> #include <net.h> #include <linux/types.h> #include <api_public.h> diff --git a/api/api_storage.c b/api/api_storage.c index 78becbe39fb6..3d2d9d6ef4c1 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -6,10 +6,10 @@ */
#include <config.h> -#include <common.h> #include <api_public.h> #include <part.h> #include <scsi.h> +#include <linux/types.h>
#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE) #include <usb.h> diff --git a/examples/api/demo.c b/examples/api/demo.c index d586174ce8c9..677d13b307a1 100644 --- a/examples/api/demo.c +++ b/examples/api/demo.c @@ -5,7 +5,7 @@ * Written by: Rafal Jaworowski raj@semihalf.com */
-#include <common.h> +#include <stdio.h> #include <env.h> #include <linux/types.h> #include <api_public.h> diff --git a/examples/api/glue.c b/examples/api/glue.c index 075d307ae261..08c21a8cb9c1 100644 --- a/examples/api/glue.c +++ b/examples/api/glue.c @@ -3,7 +3,6 @@ * (C) Copyright 2007-2008 Semihalf, Rafal Jaworowski raj@semihalf.com */
-#include <common.h> #include <env.h> #include <linux/types.h> #include <api_public.h> diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c index 3aa222866ff5..bfd88e100d6e 100644 --- a/examples/api/libgenwrap.c +++ b/examples/api/libgenwrap.c @@ -9,7 +9,6 @@ * existing code e.g. operations on strings and similar. */
-#include <common.h> #include <command.h> #include <hang.h> #include <linux/delay.h> diff --git a/examples/standalone/atmel_df_pow2.c b/examples/standalone/atmel_df_pow2.c index dcb25da94986..ed0d7aeaadca 100644 --- a/examples/standalone/atmel_df_pow2.c +++ b/examples/standalone/atmel_df_pow2.c @@ -6,7 +6,6 @@ * Licensed under the 2-clause BSD. */
-#include <common.h> #include <exports.h> #include <spi.h> #include <linux/delay.h> diff --git a/examples/standalone/sched.c b/examples/standalone/sched.c index 1c5296071322..d507163f6f34 100644 --- a/examples/standalone/sched.c +++ b/examples/standalone/sched.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+
-#include <common.h> #include <exports.h>
/* diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 65115570e8eb..04e8acb8abe9 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -1,4 +1,3 @@ -#include <common.h> #include <exports.h> #include <linux/compiler.h>
diff --git a/include/api_public.h b/include/api_public.h index 5a4465ea893d..e89572c00a4b 100644 --- a/include/api_public.h +++ b/include/api_public.h @@ -8,6 +8,8 @@ #ifndef _API_PUBLIC_H_ #define _API_PUBLIC_H_
+#include <linux/types.h> + #define API_EINVAL 1 /* invalid argument(s) */ #define API_ENODEV 2 /* no device */ #define API_ENOMEM 3 /* no memory */

With all files that had included this file directly having been updated, we can now remove this file.
Signed-off-by: Tom Rini trini@konsulko.com --- doc/develop/codingstyle.rst | 8 ++----- doc/develop/tests_writing.rst | 1 - include/common.h | 33 --------------------------- scripts/Makefile.autoconf | 4 ++-- scripts/gen_ll_addressable_symbols.sh | 2 +- tools/dtoc/dtb_platdata.py | 3 --- tools/dtoc/test_dtoc.py | 3 --- 7 files changed, 5 insertions(+), 49 deletions(-) delete mode 100644 include/common.h
diff --git a/doc/develop/codingstyle.rst b/doc/develop/codingstyle.rst index f6248cdcb1e1..fa3cd6aec82e 100644 --- a/doc/develop/codingstyle.rst +++ b/doc/develop/codingstyle.rst @@ -110,9 +110,8 @@ Include files
You should follow this ordering in U-Boot. In all cases, they should be listed in alphabetical order. First comes headers which are located directly in our -top-level include diretory. This excludes the common.h header file which is to -be removed. Second are headers within subdirectories, Finally directory-local -includes should be listed. See this example: +top-level include diretory. Second are headers within subdirectories, Finally +directory-local includes should be listed. See this example:
.. code-block:: C
@@ -129,9 +128,6 @@ For files that need to be compiled for the host (e.g. tools), you need to use ``#ifndef USE_HOSTCC`` to avoid including U-Boot specific include files. See common/image.c for an example.
-If you encounter code which still uses <common.h> a patch to remove that and -replace it with any required include files directly is much appreciated. - If your file uses driver model, include <dm.h> in the C file. Do not include dm.h in a header file. Try to use forward declarations (e.g. ``struct udevice``) instead. diff --git a/doc/develop/tests_writing.rst b/doc/develop/tests_writing.rst index bb1145da268b..44b544fa78b4 100644 --- a/doc/develop/tests_writing.rst +++ b/doc/develop/tests_writing.rst @@ -281,7 +281,6 @@ new one of those, you should add a new suite. Create a new file in test/ or a subdirectory and define a macro to register the suite. For example::
- #include <common.h> #include <console.h> #include <mapmem.h> #include <dm/test.h> diff --git a/include/common.h b/include/common.h deleted file mode 100644 index a79c2bb49931..000000000000 --- a/include/common.h +++ /dev/null @@ -1,33 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Common header file for U-Boot - * - * This file still includes quite a few headers that should be included - * individually as needed. Patches to remove things are welcome. - * - * (C) Copyright 2000-2009 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - */ - -#ifndef __COMMON_H_ -#define __COMMON_H_ 1 - -#ifndef __ASSEMBLY__ /* put C only stuff in this section */ -#include <config.h> -#include <errno.h> -#include <time.h> -#include <linux/types.h> -#include <linux/string.h> -#include <stdarg.h> -#include <stdio.h> -#include <linux/kernel.h> -#include <asm/u-boot.h> /* boot information for Linux kernel */ -#include <vsprintf.h> -#endif /* __ASSEMBLY__ */ - -/* Pull in stuff for the build system */ -#ifdef DO_DEPS_ONLY -# include <env_internal.h> -#endif - -#endif /* __COMMON_H_ */ diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf index 8208ffe22744..b42f9b525fea 100644 --- a/scripts/Makefile.autoconf +++ b/scripts/Makefile.autoconf @@ -45,7 +45,7 @@ c_flags := $(KBUILD_CFLAGS) $(KBUILD_CPPFLAGS) $(PLATFORM_CPPFLAGS) \
quiet_cmd_autoconf_dep = GEN $@ cmd_autoconf_dep = $(CC) -x c -DDO_DEPS_ONLY -M -MP $(c_flags) \ - -MQ include/config/auto.conf $(srctree)/include/common.h > $@ || { \ + -MQ include/config/auto.conf include/config.h > $@ || { \ rm $@; false; \ } include/autoconf.mk.dep: include/config.h FORCE @@ -70,7 +70,7 @@ quiet_cmd_autoconf = GEN $@
quiet_cmd_u_boot_cfg = CFG $@ cmd_u_boot_cfg = \ - $(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM $(srctree)/include/common.h > $@.tmp && { \ + $(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM include/config.h > $@.tmp && { \ grep 'define CONFIG_' $@.tmp | \ sed '/define CONFIG_IS_ENABLED(/d;/define CONFIG_IF_ENABLED_INT(/d;/define CONFIG_VAL(/d;' > $@; \ rm $@.tmp; \ diff --git a/scripts/gen_ll_addressable_symbols.sh b/scripts/gen_ll_addressable_symbols.sh index d0864804aafb..13f670ae0ef0 100755 --- a/scripts/gen_ll_addressable_symbols.sh +++ b/scripts/gen_ll_addressable_symbols.sh @@ -10,6 +10,6 @@
set -e
-echo '#include <common.h>' +echo '#include <linux/compiler.h>' $@ 2>/dev/null | grep -oe '_u_boot_list_2_[a-zA-Z0-9_]*_2_[a-zA-Z0-9_]*' | \ sort -u | sed -e 's/^(.*)/extern char \1[];\n__ADDRESSABLE(\1);/' diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index 39f416cfd806..89066e6403fc 100644 --- a/tools/dtoc/dtb_platdata.py +++ b/tools/dtoc/dtb_platdata.py @@ -835,7 +835,6 @@ class DtbPlatdata():
def generate_uclasses(self): self.out('\n') - self.out('#include <common.h>\n') self.out('#include <dm.h>\n') self.out('#include <dt-structs.h>\n') self.out('\n') @@ -1059,7 +1058,6 @@ class DtbPlatdata(): self.out('/* Allow use of U_BOOT_DRVINFO() in this file */\n') self.out('#define DT_PLAT_C\n') self.out('\n') - self.out('#include <common.h>\n') self.out('#include <dm.h>\n') self.out('#include <dt-structs.h>\n') self.out('\n') @@ -1092,7 +1090,6 @@ class DtbPlatdata(): See the documentation in doc/driver-model/of-plat.rst for more information. """ - self.out('#include <common.h>\n') self.out('#include <dm.h>\n') self.out('#include <dt-structs.h>\n') self.out('\n') diff --git a/tools/dtoc/test_dtoc.py b/tools/dtoc/test_dtoc.py index 597c93e8a870..c4a0889aebe7 100755 --- a/tools/dtoc/test_dtoc.py +++ b/tools/dtoc/test_dtoc.py @@ -63,7 +63,6 @@ C_HEADER = C_HEADER_PRE + ''' /* Allow use of U_BOOT_DRVINFO() in this file */ #define DT_PLAT_C
-#include <common.h> #include <dm.h> #include <dt-structs.h> ''' @@ -417,7 +416,6 @@ U_BOOT_DRVINFO(spl_test3) = { ''' uclass_text_inst = '''
-#include <common.h> #include <dm.h> #include <dt-structs.h>
@@ -521,7 +519,6 @@ DM_UCLASS_INST(testfdt) = { * This was generated by dtoc from a .dtb (device tree binary) file. */
-#include <common.h> #include <dm.h> #include <dt-structs.h>

-----Original Message----- From: Tom Rini trini@konsulko.com Sent: Thursday, May 2, 2024 10:30 AM To: u-boot@lists.denx.de Cc: Weijie Gao weijie.gao@mediatek.com; GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com; Peng Fan peng.fan@nxp.com; Jaehoon Chung jh80.chung@samsung.com Subject: [PATCH 01/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.
Signed-off-by: Tom Rini trini@konsulko.com
Reviewed-by: Jaehoon Chung jh80.chung@samsung.com
Best Regards, Jaehoon Chung
Cc: Weijie Gao weijie.gao@mediatek.com Cc: GSS_MTK_Uboot_upstream GSS_MTK_Uboot_upstream@mediatek.com Cc: Peng Fan peng.fan@nxp.com Cc: Jaehoon Chung jh80.chung@samsung.com
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(-)
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig index 82018bd9d3e3..ff1fdee5c8da 100644 --- a/arch/arm/mach-mediatek/Kconfig +++ b/arch/arm/mach-mediatek/Kconfig @@ -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,
diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig index 15b2792e619b..3fcd0b8465b4 100644 --- a/arch/mips/mach-mtmips/Kconfig +++ b/arch/mips/mach-mtmips/Kconfig @@ -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
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 549634891a36..d0944793c92d 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -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
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index fadab7d40bb7..ffb461c2f6c1 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -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, diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 595d88bd5625..5ac1c6a0e9e1 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -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, diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index b74c01400205..8b2ef9391f3e 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -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(®s->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) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 24170c59ecc1..0685b86af464 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -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); diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7b068c71ff37..4543d94c7205 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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) {
diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 296aaee73318..4bd66ecf93ad 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -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, diff --git a/drivers/mmc/octeontx_hsmmc.c b/drivers/mmc/octeontx_hsmmc.c index 7f9c4f4d36d4..3b5e12217325 100644 --- a/drivers/mmc/octeontx_hsmmc.c +++ b/drivers/mmc/octeontx_hsmmc.c @@ -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 }; diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 99f21b2c546a..118d9cd16fdb 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -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, diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index c0a9f60b1496..0570dbca00d7 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -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
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index af654ea8d13c..d06f2c02bb7b 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -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, diff --git a/include/configs/mt7621.h b/include/configs/mt7621.h index bf2bc2d45c09..e6dba7071950 100644 --- a/include/configs/mt7621.h +++ b/include/configs/mt7621.h @@ -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 diff --git a/include/configs/mt7623.h b/include/configs/mt7623.h index fca234a1dc71..6f42cd32d80f 100644 --- a/include/configs/mt7623.h +++ b/include/configs/mt7623.h @@ -11,9 +11,6 @@
#include <linux/sizes.h>
-/* MMC */ -#define MMC_SUPPORTS_TUNING
/* DRAM */ #define CFG_SYS_SDRAM_BASE 0x80000000
diff --git a/include/configs/octeontx2_common.h b/include/configs/octeontx2_common.h index c4db38562d83..f415dffddbea 100644 --- a/include/configs/octeontx2_common.h +++ b/include/configs/octeontx2_common.h @@ -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__ */ diff --git a/include/mmc.h b/include/mmc.h index 4b8327f1f93b..7f1900363b91 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -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 * -- 2.34.1

On Wed, 01 May 2024 19:30:18 -0600, Tom Rini wrote:
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.
[...]
Applied to u-boot/next, thanks!
participants (15)
-
Angelo Dureghello
-
Bryan Brattlof
-
Cédric Le Goater
-
E Shattow
-
Heiko Schocher
-
Ilias Apalodimas
-
Jaehoon Chung
-
Jassi Brar
-
Kever Yang
-
Mattijs Korpershoek
-
Peter Robinson
-
Stefan Bosch
-
Tom Rini
-
Tony Dinh
-
William Zhang