mtd: nand: denali: remove unused struct member denali_nand_info::idx
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Dec 16 11:59:09 PST 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c4ae0977f57deff490f0232bf8f2a7689cbdcbee
Commit: c4ae0977f57deff490f0232bf8f2a7689cbdcbee
Parent: ef5327dc2597bbf806393d5edca54b2f059e0e69
Author: Masahiro Yamada <yamada.masahiro at socionext.com>
AuthorDate: Wed Nov 9 13:35:21 2016 +0900
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Sat Nov 19 09:30:57 2016 +0100
mtd: nand: denali: remove unused struct member denali_nand_info::idx
The struct member "idx" was used as an index for debug_array long
ago, but the DEBUG_DENALI feature was removed by commit 7cfffac06ca0
("nand/denali: use dev_xx debug function to replace nand_dbg_print
and some printk"). Since then, this has been only initialized, but
never referenced.
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Reviewed-by: Marek Vasut <marek.vasut at gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/denali.c | 2 --
drivers/mtd/nand/denali.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 36a0454..bf83a50 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1436,8 +1436,6 @@ static struct nand_bbt_descr bbt_mirror_descr = {
/* initialize driver data structures */
static void denali_drv_init(struct denali_nand_info *denali)
{
- denali->idx = 0;
-
/* setup interrupt handler */
/*
* the completion object will be used to notify
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h
index e7ab486..0ce7344 100644
--- a/drivers/mtd/nand/denali.h
+++ b/drivers/mtd/nand/denali.h
@@ -467,7 +467,6 @@ struct denali_nand_info {
spinlock_t irq_lock;
uint32_t irq_status;
int irq_debug_array[32];
- int idx;
int irq;
uint32_t devnum; /* represent how many nands connected */
More information about the linux-mtd-cvs
mailing list