aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lirc/lirc_parallel.c
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2010-10-09 15:07:06 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 01:18:36 -0200
commit8be292cc035ebc3422f08e84682626dd8ed8334b (patch)
treed9dee450677123f2f93a4dd7edb9d127d236c7e3 /drivers/staging/lirc/lirc_parallel.c
parent[media] staging/lirc: ioctl portability fixups (diff)
downloadlinux-dev-8be292cc035ebc3422f08e84682626dd8ed8334b.tar.xz
linux-dev-8be292cc035ebc3422f08e84682626dd8ed8334b.zip
[media] lirc: wire up .compat_ioctl to main ioctl handler
As pointed out (and tested) by Joris van Rantwijk, we do actually need to wire up .compat_ioctl for 32-bit lirc userspace to work with 64-bit lirc kernelspace. Do it. And add a check to make sure we get a valid irctl in the ioctl handler. Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/lirc/lirc_parallel.c')
-rw-r--r--drivers/staging/lirc/lirc_parallel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/lirc/lirc_parallel.c b/drivers/staging/lirc/lirc_parallel.c
index be3d60d9a498..b8cce87c7032 100644
--- a/drivers/staging/lirc/lirc_parallel.c
+++ b/drivers/staging/lirc/lirc_parallel.c
@@ -546,6 +546,9 @@ static const struct file_operations lirc_fops = {
.write = lirc_write,
.poll = lirc_poll,
.unlocked_ioctl = lirc_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = lirc_ioctl,
+#endif
.open = lirc_open,
.release = lirc_close
};