]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
UBI: allow all ioctls
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 16 Jan 2009 16:03:22 +0000 (18:03 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 18 Jan 2009 12:02:08 +0000 (14:02 +0200)
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>
drivers/mtd/ubi/cdev.c

index 98cf7a4ceea85da8acc77162769197e53de1c7a8..c183be99c6cab8651b3b058598f2352376e2b82e 100644 (file)
@@ -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;