mtd: fix mtdraw_write/mtdraw_erase arguments
For the !CONFIG_MTD_WRITE case they still have ulong as offset argument. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f849039dd2
commit
bb05186004
|
@ -258,11 +258,11 @@ static int mtdraw_erase(struct cdev *cdev, size_t count, loff_t _offset)
|
|||
}
|
||||
#else
|
||||
static ssize_t mtdraw_write(struct cdev *cdev, const void *buf, size_t count,
|
||||
ulong offset, ulong flags)
|
||||
loff_t offset, ulong flags)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static ssize_t mtdraw_erase(struct cdev *cdev, size_t count, ulong offset)
|
||||
static ssize_t mtdraw_erase(struct cdev *cdev, size_t count, loff_t offset)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue