9
0
Fork 0

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:
Sascha Hauer 2012-10-25 23:15:42 +02:00
parent f849039dd2
commit bb05186004
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}