diff c/gspca_core.c d/gspca_core.c 54c54 < #include --- > #include 1347c1347 < spca5xx_open(struct inode *inode, struct file *file) --- > spca5xx_open(struct file *file) 1410c1410 < spca5xx_close(struct inode *inode, struct file *file) --- > spca5xx_close(struct file *file) 1450c1450 < spca5xx_do_ioctl(struct inode *inode, struct file *file, unsigned int cmd, --- > spca5xx_do_ioctl(struct file *file, unsigned int cmd, 1815,1816c1815,1816 < static int < spca5xx_ioctl(struct inode *inode, struct file *file, unsigned int cmd, --- > static long > spca5xx_ioctl(struct file *file, unsigned int cmd, 1820c1820 < rc = video_usercopy(inode, file, cmd, arg, spca5xx_do_ioctl); --- > rc = video_usercopy(file, cmd, arg, (v4l2_kioctl)spca5xx_do_ioctl); 1953c1953 < static struct file_operations spca5xx_fops = { --- > static struct v4l2_file_operations spca5xx_fops = { 1963d1962 < .llseek = no_llseek, 1966c1965 < .owner = THIS_MODULE, --- > //.owner = THIS_MODULE, 1968c1967 < .type = VID_TYPE_CAPTURE, --- > .vfl_type = VID_TYPE_CAPTURE, 2060c2059 < rc = video_device_create_file(vdev, &class_device_attr_stream_id); --- > rc = device_create_file(&vdev->dev, &class_device_attr_stream_id); 2063c2062 < rc = video_device_create_file(vdev, &class_device_attr_model); --- > rc = device_create_file(&vdev->dev, &class_device_attr_model); 2066c2065 < rc = video_device_create_file(vdev, &class_device_attr_pictsetting); --- > rc = device_create_file(&vdev->dev, &class_device_attr_pictsetting); 2071c2070 < video_device_remove_file(vdev, &class_device_attr_pictsetting); --- > device_remove_file(&vdev->dev, &class_device_attr_pictsetting); 2073c2072 < video_device_remove_file(vdev, &class_device_attr_model); --- > device_remove_file(&vdev->dev, &class_device_attr_model); 2075c2074 < video_device_remove_file(vdev, &class_device_attr_stream_id); --- > device_remove_file(&vdev->dev, &class_device_attr_stream_id); 2126c2125 < rc = video_device_create_file(vdev, &dev_attr_stream_id); --- > rc = device_create_file(&vdev->dev, &dev_attr_stream_id); 2129c2128 < rc = video_device_create_file(vdev, &dev_attr_model); --- > rc = device_create_file(&vdev->dev, &dev_attr_model); 2132c2131 < rc = video_device_create_file(vdev, &dev_attr_pictsetting); --- > rc = device_create_file(&vdev->dev, &dev_attr_pictsetting); 2137c2136 < video_device_remove_file(vdev, &dev_attr_pictsetting); --- > device_remove_file(&vdev->dev, &dev_attr_pictsetting); 2139c2138 < video_device_remove_file(vdev, &dev_attr_model); --- > device_remove_file(&vdev->dev, &dev_attr_model); 2141c2140 < video_device_remove_file(vdev, &dev_attr_stream_id); --- > device_remove_file(&vdev->dev, &dev_attr_stream_id); 2159c2158 < info("USB GSPCA camera found. SONIX sn9c10[1 2]"); --- > pr_info("USB GSPCA camera found. SONIX sn9c10[1 2]"); 2164c2163 < info("USB GSPCA camera found. SONIX JPEG (sn9c1xx) "); --- > pr_info("USB GSPCA camera found. SONIX JPEG (sn9c1xx) "); 2263c2262 < spca50x->vdev->dev = &dev->dev; --- > spca50x->vdev->dev = dev->dev; 2277c2276 < info("data format set to RGB"); --- > pr_info("data format set to RGB"); 2358c2357 < info("gspca driver %s registered", gspca_version); --- > pr_info("gspca driver %s registered", gspca_version); 2365c2364 < info("driver gspca deregistered"); --- > pr_info("driver gspca deregistered"); diff c/gspca.h d/gspca.h 16a17 > #include 24c25 < if (debug >= level) info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ , ## args) --- > if (debug >= level) pr_info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ , ## args) diff c/Makefile d/Makefile 11c11 < DEFINES += -DGSPCA_ENABLE_DEBUG --- > //DEFINES += -DGSPCA_ENABLE_DEBUG