[Click] [PATCH 5/5] ToUserDevice: use unlocked_ioctl on linux 2.6.36+
Joonwoo Park
joonwpark81 at gmail.com
Sun Jan 30 04:23:34 EST 2011
Signed-off-by: Joonwoo Park <joonwpark81 at gmail.com>
---
elements/linuxmodule/touserdevice.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/elements/linuxmodule/touserdevice.cc b/elements/linuxmodule/touserdevice.cc
index fc0dc41..b3fa85b 100644
--- a/elements/linuxmodule/touserdevice.cc
+++ b/elements/linuxmodule/touserdevice.cc
@@ -91,7 +91,11 @@ void ToUserDevice::static_initialize()
dev_fops->poll = dev_poll;
dev_fops->open = dev_open;
dev_fops->release = dev_release;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
+ dev_fops->unlocked_ioctl = dev_ioctl;
+#else
dev_fops->ioctl = dev_ioctl;
+#endif
}
}
--
1.7.1
More information about the click
mailing list