浏览代码

platform/chrome: cros_ec_dev - Populate compat_ioctl

compat_ioctl has to be populated for 32 bit userspace applications to work
with 64 bit kernels.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Guenter Roeck 9 年之前
父节点
当前提交
2521ea3e0d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/platform/chrome/cros_ec_dev.c

+ 3 - 0
drivers/platform/chrome/cros_ec_dev.c

@@ -212,6 +212,9 @@ static const struct file_operations fops = {
 	.release = ec_device_release,
 	.release = ec_device_release,
 	.read = ec_device_read,
 	.read = ec_device_read,
 	.unlocked_ioctl = ec_device_ioctl,
 	.unlocked_ioctl = ec_device_ioctl,
+#ifdef CONFIG_COMPAT
+	.compat_ioctl = ec_device_ioctl,
+#endif
 };
 };
 
 
 static void __remove(struct device *dev)
 static void __remove(struct device *dev)