From 5f726237dd8c1e65385fd58174ce3ed2b1f479e6 Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Mon, 23 May 2016 11:07:18 +0800 Subject: [PATCH] usb: gadget: mtp: add compat_ioctl Add compat_ioctl for mtp to work on 64-bit platforms. Change-Id: Icef0f42a554d770a83152c4185aca9e39e041165 Signed-off-by: Wu Liang feng --- drivers/usb/gadget/function/f_mtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/function/f_mtp.c b/drivers/usb/gadget/function/f_mtp.c index 74195be9b054..d26f3b98ffa9 100644 --- a/drivers/usb/gadget/function/f_mtp.c +++ b/drivers/usb/gadget/function/f_mtp.c @@ -1051,6 +1051,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