]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/char/ppdev.c
pinctrl: lynxpoint: Switch to memory mapped IO accessors
[linux.git] / drivers / char / ppdev.c
index 34bb88fe0b0a64c55935309c926f17efbdbc6d8a..2c2381a806ae7b8830a190a0aae6d811740af2f0 100644 (file)
@@ -678,14 +678,6 @@ static long pp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        return ret;
 }
 
-#ifdef CONFIG_COMPAT
-static long pp_compat_ioctl(struct file *file, unsigned int cmd,
-                           unsigned long arg)
-{
-       return pp_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
-}
-#endif
-
 static int pp_open(struct inode *inode, struct file *file)
 {
        unsigned int minor = iminor(inode);
@@ -794,9 +786,7 @@ static const struct file_operations pp_fops = {
        .write          = pp_write,
        .poll           = pp_poll,
        .unlocked_ioctl = pp_ioctl,
-#ifdef CONFIG_COMPAT
-       .compat_ioctl   = pp_compat_ioctl,
-#endif
+       .compat_ioctl   = compat_ptr_ioctl,
        .open           = pp_open,
        .release        = pp_release,
 };