Skip to content

Commit

Permalink
mtd: bcm47xxsflash: write number of written bytes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hauke Mehrtens authored and Artem Bityutskiy committed Feb 4, 2013
1 parent 92d0e09 commit 60aca06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/devices/bcm47xxsflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 60aca06

Please sign in to comment.