Skip to content

Commit

Permalink
mtd: 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: William Zhang <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed May 7, 2024
1 parent 7938ac6 commit 6fa1cca
Show file tree
Hide file tree
Showing 81 changed files with 25 additions and 81 deletions.
1 change: 0 additions & 1 deletion drivers/mtd/altera_qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2015 Thomas Chou <[email protected]>
*/

#include <common.h>
#include <console.h>
#include <dm.h>
#include <errno.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/mtd/cfi_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/cfi_mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Written by: Piotr Ziecik <[email protected]>
*/

#include <common.h>
#include <dma.h>
#include <flash.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/hbmc-am654.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
// Author: Vignesh Raghavendra <[email protected]>

#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <regmap.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/jedec_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/mtd-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_MTD

#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/mtd_uboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* (C) Copyright 2014
* Heiko Schocher, DENX Software Engineering, [email protected].
*/
#include <common.h>
#include <env.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/kmod.h>
#endif

#include <common.h>
#include <malloc.h>
#include <linux/bug.h>
#include <linux/errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#define pr_fmt(fmt) "nand: " fmt

#include <common.h>
#include <watchdog.h>
#ifndef __UBOOT__
#include <linux/compat.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/am335x_spl_bch.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Stefan Roese, DENX Software Engineering, [email protected].
*/

#include <common.h>
#include <config.h>
#include <nand.h>
#include <system-constants.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/arasan_nfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2014 - 2015 Xilinx, Inc.
*/

#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <linux/delay.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/atmel_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/brcmnand.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* GNU General Public License for more details.
*/

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+

#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/devres.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/brcmnand/iproc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Copyright (C) 2015 Broadcom Corporation
*/

#include <common.h>
#include <asm/io.h>
#include <memalign.h>
#include <nand.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/cortina_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/davinci_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-
*/

#include <common.h>
#include <config.h>
#include <log.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/denali_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2014-2015 Masahiro Yamada <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <log.h>
#include <asm/io.h>
#include <asm/unaligned.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/fsl_elbc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Scott Wood <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <command.h>
#include <malloc.h>
#include <nand.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/fsl_elbc_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Author: Scott Wood <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <cpu_func.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/fsl_ifc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Authors: Dipen Dudhat <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <command.h>
#include <malloc.h>
#include <nand.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/fsl_ifc_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Dipen Dudhat <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <cpu_func.h>
#include <asm/io.h>
#include <fsl_ifc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/kirkwood_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Written-by: Prafulla Wadaskar <[email protected]>
*/

#include <common.h>
#include <linux/mtd/rawnand.h>
#include <asm/io.h>
#include <asm/arch/soc.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/kmeter1_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Heiko Schocher, DENX Software Engineering, [email protected]
*/

#include <common.h>
#include <config.h>
#include <nand.h>
#include <asm/io.h>
#include <linux/delay.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/lpc32xx_nand_slc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Author: Kevin Wells
*/

#include <common.h>
#include <config.h>
#include <log.h>
#include <nand.h>
#include <linux/bug.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright 2009 Ilya Yanok, <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <log.h>
#include <nand.h>
#include <linux/delay.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/mxc_nand_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/mxic_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Zhengxun Li <[email protected]>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/mxs_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* Copyright 2017-2019 NXP
*/

#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/mxs_nand_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Copyright 2019 NXP
* Author: Tim Harvey <[email protected]>
*/
#include <common.h>
#include <log.h>
#include <nand.h>
#include <malloc.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Ladislav Michl <[email protected]>
*/

#include <common.h>
#include <config.h>
#include <nand.h>
#include <errno.h>
#include <linux/mtd/concat.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <common.h>
#include <log.h>
#include <malloc.h>
#include <watchdog.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
*
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <dm/devres.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nand_bch.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*/

#include <common.h>
#include <log.h>
#include <dm/devres.h>
#include <linux/printk.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nand_ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nand_ids.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* published by the Free Software Foundation.
*
*/
#include <common.h>
#include <linux/mtd/rawnand.h>
#include <linux/sizes.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/nand_spl_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Heiko Schocher, DENX Software Engineering, [email protected].
*/

#include <common.h>
#include <config.h>
#include <nand.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/nand_spl_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Stefan Roese, DENX Software Engineering, [email protected].
*/

#include <common.h>
#include <config.h>
#include <nand.h>
#include <system-constants.h>
#include <asm/io.h>
Expand Down
Loading

0 comments on commit 6fa1cca

Please sign in to comment.