usb: gadget: accessory: add compatibility ioctl
authorWu Liang feng <wulf@rock-chips.com>
Tue, 22 Sep 2015 03:42:59 +0000 (11:42 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Tue, 22 Sep 2015 03:42:59 +0000 (11:42 +0800)
Change-Id: I301c1f2f17c906d0a3912248fa16bc20b4a32b3c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/gadget/f_accessory.c

index 0237f1e059b47cb3dad8adfce5b0c0e40d5ac1e4..38df2865cf837683e03ee71df82ae00ba61e4bbd 100644 (file)
@@ -765,6 +765,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,
 };