From 591df7e27b4ad3934032036bb77d4406b101d5d4 Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Tue, 22 Sep 2015 11:42:59 +0800 Subject: [PATCH] usb: gadget: accessory: add compatibility ioctl Change-Id: I301c1f2f17c906d0a3912248fa16bc20b4a32b3c Signed-off-by: Wu Liang feng --- drivers/usb/gadget/f_accessory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_accessory.c b/drivers/usb/gadget/f_accessory.c index 0237f1e059b4..38df2865cf83 100644 --- a/drivers/usb/gadget/f_accessory.c +++ b/drivers/usb/gadget/f_accessory.c @@ -765,6 +765,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, }; -- 2.34.1