projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75564ab
)
usb: gadget: mtp: add compat_ioctl
author
Wu Liang feng
<wulf@rock-chips.com>
Mon, 23 May 2016 03:07:18 +0000
(11:07 +0800)
committer
Gerrit Code Review
<gerrit@rock-chips.com>
Mon, 23 May 2016 07:52:42 +0000
(15:52 +0800)
Add compat_ioctl for mtp to work on 64-bit platforms.
Change-Id: Icef0f42a554d770a83152c4185aca9e39e041165
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/gadget/function/f_mtp.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/f_mtp.c
b/drivers/usb/gadget/function/f_mtp.c
index 74195be9b054ae4f547fd526615a9ba8d917677c..d26f3b98ffa92667340d989cafd74ee028afe77b 100644
(file)
--- 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,
};