9
0
Fork 0

mtd: mtdraw: drop ioctl callback for mtdraw device

Do not call mtd_ioctl for mtdraw devices. mtd_ioctl will derefence
the priv pointer to a struct mtd_info whereas with mtdraw devices it will be
a struct mtdraw pointer. We do not need ioctls for mtdraw devices, so drop
it instead of fixing it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-12-02 16:03:57 +01:00
parent 3febd4d4ce
commit 6e66ab7a53
1 changed files with 0 additions and 1 deletions

View File

@ -278,7 +278,6 @@ static const struct file_operations mtd_raw_fops = {
.read = mtdraw_read,
.write = mtdraw_write,
.erase = mtdraw_erase,
.ioctl = mtd_ioctl,
.lseek = dev_lseek_default,
};