summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 17:03:22 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-18 13:02:08 +0100
commitade44ce07c9316351ae321051221c9bad3af3a44 (patch)
tree5f21dd98b889011130d978c4855090656468654e /drivers/mtd
parentUBI: remove unnecessry header inclusion (diff)
downloadlinux-ade44ce07c9316351ae321051221c9bad3af3a44.tar.xz
linux-ade44ce07c9316351ae321051221c9bad3af3a44.zip
UBI: allow all ioctls
Some ioctl's in UBI are enabled only when debugging is switched on. There is not particular reason for this, just noone needed them. However, some people need the now for their user-space development. Thus, allow these ioctl's even if UBI debugging is disabled. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/cdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 98cf7a4ceea8..c183be99c6ca 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -486,7 +486,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
break;
}
-#ifdef CONFIG_MTD_UBI_DEBUG_USERSPACE_IO
/* Logical eraseblock erasure command */
case UBI_IOCEBER:
{
@@ -559,7 +558,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
err = ubi_is_mapped(desc, lnum);
break;
}
-#endif
default:
err = -ENOTTY;