提交 fe399b85 编写于 作者: S Sergei Antonov 提交者: Xie XiuQi

mtd: rawnand: meson: fix meson_nfc_dma_buffer_release() arguments

stable inclusion
from stable-5.10.4
commit 3e7312ba3e314adc4c76b6cdf6239b9c8cb68d0d
bugzilla: 46903

--------------------------------

commit c13d845e upstream.

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed up.

Fixes: 8fae856c ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Cc: stable@vger.kernel.org
Signed-off-by: NSergei Antonov <saproj@gmail.com>
Acked-by: NLiang Yang <liang.yang@amlogic.com>
Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201028094940.11765-1-saproj@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 b18344f4
...@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, ...@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf,
} }
static void meson_nfc_dma_buffer_release(struct nand_chip *nand, static void meson_nfc_dma_buffer_release(struct nand_chip *nand,
int infolen, int datalen, int datalen, int infolen,
enum dma_data_direction dir) enum dma_data_direction dir)
{ {
struct meson_nfc *nfc = nand_get_controller_data(nand); struct meson_nfc *nfc = nand_get_controller_data(nand);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册