]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: nand: denali: remove unused struct member denali_nand_info::idx
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 9 Nov 2016 04:35:21 +0000 (13:35 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 19 Nov 2016 08:30:57 +0000 (09:30 +0100)
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@socionext.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c
drivers/mtd/nand/denali.h

index 36a0454911fe66f3b3a5f3c1afef35879a45b0d3..bf83a506177f7e07dadab5aca2bceaa54ef2a808 100644 (file)
@@ -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
index e7ab4866a5da8a8edb76e0385312a979e30b3000..0ce73447ab3bbb6731b5e603078df1b8cb97139e 100644 (file)
@@ -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 */