Skip to content

Commit

Permalink
UBI: allow all ioctls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jan 18, 2009
1 parent 573135b commit ade44ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mtd/ubi/cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ade44ce

Please sign in to comment.