From: Wu Liang feng Date: Mon, 23 May 2016 06:51:10 +0000 (+0800) Subject: usb: gadget: accessory: add compat_ioctl X-Git-Tag: firefly_0821_release~2621 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a575ff1ae5a57819782844b81eae1160a4d4a287;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index c62123560143..067eb3bba65b 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c @@ -781,6 +781,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, };