From 349bb1466b8f3fcf89907f68d0d77b5dddb3508e Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Mon, 23 May 2016 14:51:10 +0800 Subject: [PATCH] usb: gadget: accessory: add compat_ioctl Add compat_ioctl for accessory to work on 64-bit platforms. Change-Id: I805395c35017111bf0c462847f11765c7088d266 Signed-off-by: Wu Liang feng --- drivers/usb/gadget/function/f_accessory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index 7aa2656a2328..d0f1df9d759a 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c @@ -779,6 +779,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, };