From: lyz Date: Wed, 1 Apr 2015 08:04:27 +0000 (+0800) Subject: usb: gadget: MTP support compat ioctl X-Git-Tag: firefly_0821_release~4158^2~248 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1673f9b259bcc4b8490196f0995f5afb160a0465;p=firefly-linux-kernel-4.4.55.git usb: gadget: MTP support compat ioctl --- diff --git a/drivers/usb/gadget/f_mtp.c b/drivers/usb/gadget/f_mtp.c index 620aeaaf2d72..651a3e3e90be 100644 --- a/drivers/usb/gadget/f_mtp.c +++ b/drivers/usb/gadget/f_mtp.c @@ -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, };