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:
parent
3febd4d4ce
commit
6e66ab7a53
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue