UBI: add ioctl compatibility
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 16 Jan 2009 16:06:55 +0000 (18:06 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 26 Jan 2009 11:17:28 +0000 (13:17 +0200)
commit5a7a7cb6c5723fbd51e2e5767d4de9d9786da021
tree8b4c66287ce876e277119a9e1696dcba8e1c2cef
parenta6e1fdee46c2efd0b55f53eebc7c5261664774c5
UBI: add ioctl compatibility

UBI ioctl's do not work when running 64-bit kernel and 32-bit
user-land. Fix this by adding the compat_ioctl method.

Also, UBI serializes all ioctls, so more than one ioctl at a time
is not a problem. Amd UBI does not seem to depend on anything else,
so use unlocked_ioctl instead of ioctl (no BKL needed).

Reported-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
drivers/mtd/ubi/cdev.c