summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/denali.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-03-22 21:07:02 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-03-24 09:51:28 +0100
commit357cc408a4009c0d118b684e4865f85694ebc68c (patch)
tree33c619e388ec8506f99ab5a2274aea6286f34b63 /drivers/mtd/nand/denali.c
parentmtd: nand: use read_oob() instead of cmdfunc() for bad block check (diff)
downloadlinux-357cc408a4009c0d118b684e4865f85694ebc68c.tar.xz
linux-357cc408a4009c0d118b684e4865f85694ebc68c.zip
mtd: nand: denali: remove unused CONFIG option and macros
All of these macros are not used at all. CONFIG_MTD_NAND_DENALI_SCRATCH_REG_ADDR is not used for anything but defining SCRATCH_REG_ADDR. The config option should go away as well. I am removing some register macros. They are not used, and do not exist in recent IP versions. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/denali.c')
-rw-r--r--drivers/mtd/nand/denali.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 73b9d4e2dca0..f993e1378f94 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -91,11 +91,6 @@ static inline struct denali_nand_info *mtd_to_denali(struct mtd_info *mtd)
#define DENALI_READ 0
#define DENALI_WRITE 0x100
-/* types of device accesses. We can issue commands and get status */
-#define COMMAND_CYCLE 0
-#define ADDR_CYCLE 1
-#define STATUS_CYCLE 2
-
/*
* this is a helper macro that allows us to
* format the bank into the proper bits for the controller