From 6e66ab7a53a277987505eee2df5a71ae12c51318 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 2 Dec 2013 16:03:57 +0100 Subject: [PATCH] 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 --- drivers/mtd/mtdraw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/mtdraw.c b/drivers/mtd/mtdraw.c index 2acd51f70..be347233b 100644 --- a/drivers/mtd/mtdraw.c +++ b/drivers/mtd/mtdraw.c @@ -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, };