usb: gadget: accessory: add compat_ioctl
authorWu Liang feng <wulf@rock-chips.com>
Mon, 23 May 2016 06:51:10 +0000 (14:51 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 23 May 2016 07:53:50 +0000 (15:53 +0800)
Add compat_ioctl for accessory to work on 64-bit platforms.

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

index c621235601439b1cf220cb98bb59fe4830d9b812..067eb3bba65b231d817638d3f7e05f6abcfb5da2 100644 (file)
@@ -781,6 +781,9 @@ static const struct file_operations acc_fops = {
        .read = acc_read,
        .write = acc_write,
        .unlocked_ioctl = acc_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl = acc_ioctl,
+#endif
        .open = acc_open,
        .release = acc_release,
 };