aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 11:03:22 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-18 07:02:08 -0500
commitade44ce07c9316351ae321051221c9bad3af3a44 (patch)
tree5f21dd98b889011130d978c4855090656468654e
parent573135b5dbc02be12940558db23158cc9ee89c66 (diff)
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>
-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,
486 break; 486 break;
487 } 487 }
488 488
489#ifdef CONFIG_MTD_UBI_DEBUG_USERSPACE_IO
490 /* Logical eraseblock erasure command */ 489 /* Logical eraseblock erasure command */
491 case UBI_IOCEBER: 490 case UBI_IOCEBER:
492 { 491 {
@@ -559,7 +558,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
559 err = ubi_is_mapped(desc, lnum); 558 err = ubi_is_mapped(desc, lnum);
560 break; 559 break;
561 } 560 }
562#endif
563 561
564 default: 562 default:
565 err = -ENOTTY; 563 err = -ENOTTY;