Skip to content

Commit

Permalink
mmc: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
  • Loading branch information
trini committed May 7, 2024
1 parent 4fa7521 commit 7938ac6
Show file tree
Hide file tree
Showing 62 changed files with 5 additions and 62 deletions.
1 change: 0 additions & 1 deletion drivers/mmc/am654_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

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

/* #define DEBUG */

#include "common.h"
#include <clk.h>
#include <errno.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/aspeed_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Eddie James <eajames@linux.ibm.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/atmel_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Wenyou.Yang <wenyou.yang@atmel.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/bcm2835_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* Inspired by sdhci-pci.c, by Pierre Ossman
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/bcm2835_sdhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/bcmstb_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
*/

#include <common.h>
#include <dm.h>
#include <mach/sdhci.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/ca_dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/davinci_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

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

#include <bouncebuf.h>
#include <common.h>
#include <cpu_func.h>
#include <errno.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/exynos_dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Jaehoon Chung <jh80.chung@samsung.com>
*/

#include <common.h>
#include <dwmmc.h>
#include <fdtdec.h>
#include <asm/global_data.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/f_sdh30.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright 2021 Socionext, Inc.
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/fsl_esdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include <config.h>
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/fsl_esdhc_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

#include <config.h>
#include <common.h>
#include <command.h>
#include <clk.h>
#include <cpu_func.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/fsl_esdhc_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/ftsdc010_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Author: Rick Chen (rick@andestech.com)
*/

#include <common.h>
#include <clk.h>
#include <log.h>
#include <malloc.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/gen_atmel_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/hi6220_dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* peter.griffin <peter.griffin@linaro.org>
*/

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

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/jz_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/kona_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright 2013 Broadcom Corporation.
*/

#include <common.h>
#include <malloc.h>
#include <sdhci.h>
#include <linux/delay.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/meson_gx_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc-pwrseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Jaehoon Chung <jh80.chung@samsung.com>
*/

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

#define LOG_CATEGORY UCLASS_MMC

#include <common.h>
#include <bootdev.h>
#include <log.h>
#include <mmc.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include <config.h>
#include <common.h>
#include <blk.h>
#include <command.h>
#include <dm.h>
Expand All @@ -17,13 +16,15 @@
#include <errno.h>
#include <mmc.h>
#include <part.h>
#include <time.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/printk.h>
#include <power/regulator.h>
#include <malloc.h>
#include <memalign.h>
#include <linux/list.h>
#include <linux/printk.h>
#include <div64.h>
#include "mmc_private.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Amar <amarendra.xt@samsung.com>
*/

#include <common.h>
#include <log.h>
#include <mmc.h>
#include "mmc_private.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc_bootdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/

#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <mmc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <mmc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mmc_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <config.h>
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/msm_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Based on Linux driver
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mtk-sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <clk.h>
#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mv_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Marvell SD Host Controller Interface
*/

#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <sdhci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mvebu_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Written-by: Maen Suleiman, Gerald Kerma
*/

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

#include <config.h>
#include <common.h>
#include <command.h>
#include <mmc.h>
#include <part.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/mxsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/nexell_dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/npcm_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2022 Nuvoton Technology Corp.
*/

#include <common.h>
#include <dm.h>
#include <sdhci.h>
#include <clk.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/owl_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/pci_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/piton_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include <asm/gpio.h>
#include <asm/io.h>
#include <common.h>
#include <div64.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/rockchip_dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2013 Google, Inc
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/rockchip_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Rockchip SD Host Controller Interface
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/ofnode.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/rpmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include <config.h>
#include <common.h>
#include <log.h>
#include <memalign.h>
#include <mmc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/s5p_sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Jaehoon Chung <jh80.chung@samsung.com>
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mmc/sandbox_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
Expand Down
Loading

0 comments on commit 7938ac6

Please sign in to comment.