usb: gadget: MTP support compat ioctl
authorlyz <lyz@rock-chips.com>
Wed, 1 Apr 2015 08:04:27 +0000 (16:04 +0800)
committerlyz <lyz@rock-chips.com>
Wed, 1 Apr 2015 08:04:27 +0000 (16:04 +0800)
drivers/usb/gadget/f_mtp.c

index 620aeaaf2d725930f66a773a15d33c5d94da4b89..651a3e3e90be589429ee20d312fb13181f5bb6e2 100644 (file)
@@ -981,6 +981,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,
 };