diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-03-04 17:29:20 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 22:05:41 +0200 |
commit | 68ffbf7f9fb11323238cb31c956b4f381e6b05cc (patch) | |
tree | 28b12b7f7018afa24e736262771462a0fce490c6 /drivers/mtd | |
parent | f8b04746a4ba389d609b5ddcfbf95835c7dfcb31 (diff) | |
download | op-kernel-dev-68ffbf7f9fb11323238cb31c956b4f381e6b05cc.zip op-kernel-dev-68ffbf7f9fb11323238cb31c956b4f381e6b05cc.tar.gz |
mtd: nand: sunxi: fix NFC_CTL setting
NFC_PAGE_SHIFT() already takes the real page_shift value and subtract 10
to it.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/sunxi_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index 4cb5c6f..f8b3a72 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c @@ -410,7 +410,7 @@ static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip) sel = &sunxi_nand->sels[chip]; ctl |= NFC_CE_SEL(sel->cs) | NFC_EN | - NFC_PAGE_SHIFT(nand->page_shift - 10); + NFC_PAGE_SHIFT(nand->page_shift); if (sel->rb.type == RB_NONE) { nand->dev_ready = NULL; } else { |