usb: gadget: mtp: add compat_ioctl
authorWu Liang feng <wulf@rock-chips.com>
Mon, 23 May 2016 03:07:18 +0000 (11:07 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 23 May 2016 07:52:42 +0000 (15:52 +0800)
Add compat_ioctl for mtp to work on 64-bit platforms.

Change-Id: Icef0f42a554d770a83152c4185aca9e39e041165
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/gadget/function/f_mtp.c

index 74195be9b054ae4f547fd526615a9ba8d917677c..d26f3b98ffa92667340d989cafd74ee028afe77b 100644 (file)
@@ -1051,6 +1051,9 @@ static const struct file_operations mtp_fops = {
        .read = mtp_read,
        .write = mtp_write,
        .unlocked_ioctl = mtp_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl = mtp_ioctl,
+#endif
        .open = mtp_open,
        .release = mtp_release,
 };