diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-24 17:39:54 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 10:31:20 +0200 |
commit | 60aca067b5308705a34dbb6548b459487f92da90 (patch) | |
tree | a030eb17cd5a5ddbfa6e350a72f92fe323035711 /drivers/mtd | |
parent | 92d0e09abeebdd3f699c9f12401a9e3998a20546 (diff) | |
download | linux-3.10-60aca067b5308705a34dbb6548b459487f92da90.tar.gz linux-3.10-60aca067b5308705a34dbb6548b459487f92da90.tar.bz2 linux-3.10-60aca067b5308705a34dbb6548b459487f92da90.zip |
mtd: bcm47xxsflash: write number of written bytes
The callback assumes the number of read bytes is written to retlen.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/bcm47xxsflash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c index 8fe1a097161..61a45cbde37 100644 --- a/drivers/mtd/devices/bcm47xxsflash.c +++ b/drivers/mtd/devices/bcm47xxsflash.c @@ -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; } |