提交 60aca067 编写于 作者: H Hauke Mehrtens 提交者: Artem Bityutskiy

mtd: bcm47xxsflash: write number of written bytes

The callback assumes the number of read bytes is written to retlen.
Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 92d0e09a
......@@ -23,6 +23,7 @@ static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,
memcpy_fromio(buf, (void __iomem *)KSEG0ADDR(b47s->window + from),
len);
*retlen = len;
return len;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册