--- cpad.c.orig 2010-11-13 01:17:05.655038547 -0800 +++ cpad.c.orig 2010-11-13 01:23:11.624347805 -0800 @@ -596,7 +596,7 @@ static int cpad_driver_num = CPAD_DRIVER_NUM; -static int cpad_ioctl(struct inode *inode, struct file *file, +static long cpad_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { struct syndisplay *display; @@ -693,7 +693,7 @@ .owner = THIS_MODULE, .read = cpad_read, .write = cpad_write, - .ioctl = cpad_ioctl, + .unlocked_ioctl = cpad_unlocked_ioctl, .open = cpad_open, .release = cpad_release, .flush = cpad_flush,