From: Wu Liang feng <wulf@rock-chips.com>
Date: Tue, 22 Sep 2015 03:42:59 +0000 (+0800)
Subject: usb: gadget: accessory: add compatibility ioctl
X-Git-Tag: firefly_0821_release~3763
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=591df7e27b4ad3934032036bb77d4406b101d5d4;p=firefly-linux-kernel-4.4.55.git

usb: gadget: accessory: add compatibility ioctl

Change-Id: I301c1f2f17c906d0a3912248fa16bc20b4a32b3c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
---

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,
 };