From 1673f9b259bcc4b8490196f0995f5afb160a0465 Mon Sep 17 00:00:00 2001 From: lyz Date: Wed, 1 Apr 2015 16:04:27 +0800 Subject: [PATCH] usb: gadget: MTP support compat ioctl --- drivers/usb/gadget/f_mtp.c | 3 +++ 1 file changed, 3 insertions(+) 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, }; -- 2.34.1