mtd: Fix erasing of devices >4GiB
When a device >4GiB is erased, not only the offset can be bigger
than 4GiB, but also the size. This happens with the simplest command
to erase a device: erase /dev/nand0. Make the size argument a 64bit
type to make this work.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e0ae56c commit 81737c1d436add87e26a22dca9dd750b9655de01
@Sascha Hauer Sascha Hauer authored on 8 Feb 2016
Showing 8 changed files
View
drivers/mtd/core.c
View
drivers/mtd/mtdraw.c
View
drivers/mtd/nand/nand-bb.c
View
fs/devfs-core.c
View
fs/devfs.c
View
fs/fs.c
View
include/driver.h
View
include/fs.h