Move generic ONFI code to nand/ directory, which can be used by SPI NAND layer. Signed-off-by: Shivamurthy Shastri <sshivamurthy@xxxxxxxxxx> --- drivers/mtd/nand/Makefile | 2 +- drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} | 0 drivers/mtd/nand/raw/Makefile | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) rename drivers/mtd/nand/{raw/nand_onfi.c => onfi.c} (100%) diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index 9772e781534d..1b43a911aa4a 100644 --- a/drivers/mtd/nand/Makefile +++ b/drivers/mtd/nand/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -nandcore-objs := core.o bbt.o +nandcore-objs := core.o bbt.o onfi.o obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o obj-y += onenand/ diff --git a/drivers/mtd/nand/raw/nand_onfi.c b/drivers/mtd/nand/onfi.c similarity index 100% rename from drivers/mtd/nand/raw/nand_onfi.c rename to drivers/mtd/nand/onfi.c diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile index 898e90508a3a..3467bbb4a51a 100644 --- a/drivers/mtd/nand/raw/Makefile +++ b/drivers/mtd/nand/raw/Makefile @@ -59,7 +59,6 @@ obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm32_fmc2_nand.o obj-$(CONFIG_MTD_NAND_MESON) += meson_nand.o nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o -nand-objs += nand_onfi.o nand-objs += nand_jedec.o nand-objs += nand_amd.o nand-objs += nand_esmt.o -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/