]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: rawnand: denali: remove unneeded denali_reset_irq() call
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 24 Jan 2019 04:19:06 +0000 (13:19 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 15:56:11 +0000 (16:56 +0100)
This code was added by commit 26d266e10e5e ("mtd: nand: denali: fix
raw and oob accessors for syndrome page layout"), but I do not see
sensible reason.

The IRQ flags are correctly reset by denali_cmd_ctrl(), so this code
is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/denali.c

index 87fff94bf91e9228c0272b616a857303c1bd61ae..5ff7820736aef2d8e3200b5889712ca6a6c6e100 100644 (file)
@@ -751,9 +751,6 @@ static int denali_read_oob(struct nand_chip *chip, int page)
 static int denali_write_oob(struct nand_chip *chip, int page)
 {
        struct mtd_info *mtd = nand_to_mtd(chip);
-       struct denali_nand_info *denali = mtd_to_denali(mtd);
-
-       denali_reset_irq(denali);
 
        denali_oob_xfer(mtd, chip, page, 1);