rk3368: ddrfreq: add compat_ioctl support
authorXiao Feng <xf@rock-chips.com>
Fri, 8 May 2015 07:12:13 +0000 (15:12 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 8 May 2015 07:33:27 +0000 (15:33 +0800)
Signed-off-by: Xiao Feng <xf@rock-chips.com>
arch/arm/mach-rockchip/ddr_freq.c

index 09a1d80413b726bbf8569ced6b4590a877cde9e1..a6c3ab8b8c597e7b32d7a0718c9cf70191fcf175 100644 (file)
@@ -652,6 +652,9 @@ static long ddr_freq_ioctl(struct file *file, unsigned int cmd, unsigned long ar
 static const struct file_operations ddr_freq_fops = {
        .owner  = THIS_MODULE,
        .unlocked_ioctl = ddr_freq_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl   = ddr_freq_ioctl,
+#endif
 };
 
 static struct miscdevice ddr_freq_dev = {