--- crystalhd/driver/linux/crystalhd_lnx.c.orig 2011-04-01 21:12:59.781812914 -0500 +++ crystalhd/driver/linux/crystalhd_lnx.c 2011-04-01 21:15:53.025164697 -0500 @@ -279,8 +279,13 @@ static int chd_dec_api_cmd(struct crysta } /* API interfaces */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) static int chd_dec_ioctl(struct inode *in, struct file *fd, unsigned int cmd, unsigned long ua) +#else +static long chd_dec_ioctl(struct file *fd, + unsigned int cmd, unsigned long ua) +#endif { struct crystalhd_adp *adp = chd_get_adp(); crystalhd_cmd_proc cproc; @@ -365,7 +370,11 @@ static int chd_dec_close(struct inode *i static const struct file_operations chd_dec_fops = { .owner = THIS_MODULE, +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) .ioctl = chd_dec_ioctl, +#else + .unlocked_ioctl = chd_dec_ioctl, +#endif .open = chd_dec_open, .release = chd_dec_close, };