video: rockchip: rga2: fix compilation error on arm
authorHuang, Tao <huangtao@rock-chips.com>
Wed, 20 May 2015 14:10:23 +0000 (22:10 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 20 May 2015 14:10:23 +0000 (22:10 +0800)
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
drivers/video/rockchip/rga2/rga2_drv.c

index 50f2c187a0d6a07e92301d9fd1a3fe89417000d9..44267f11bd482607ab409f26fa77c76b7c5c1d8f 100755 (executable)
@@ -924,6 +924,7 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
        return ret;\r
 }\r
 \r
+#ifdef CONFIG_COMPAT\r
 static long compat_rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)\r
 {\r
     struct rga2_req req;\r
@@ -1024,7 +1025,7 @@ static long compat_rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
 \r
        return ret;\r
 }\r
-\r
+#endif\r
 \r
 \r
 long rga2_ioctl_kernel(struct rga_req *req_rga)\r
@@ -1135,7 +1136,9 @@ struct file_operations rga2_fops = {
        .open           = rga2_open,\r
        .release        = rga2_release,\r
        .unlocked_ioctl         = rga_ioctl,\r
+#ifdef CONFIG_COMPAT\r
        .compat_ioctl           = compat_rga_ioctl,\r
+#endif\r
 };\r
 \r
 static struct miscdevice rga2_dev ={\r