diff options
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index e77cc19be4ec..2358e6cfb381 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -1857,10 +1857,10 @@ int gspca_dev_probe(struct usb_interface *intf, | |||
1857 | gspca_dev->empty_packet = -1; /* don't check the empty packets */ | 1857 | gspca_dev->empty_packet = -1; /* don't check the empty packets */ |
1858 | 1858 | ||
1859 | /* configure the subdriver and initialize the USB device */ | 1859 | /* configure the subdriver and initialize the USB device */ |
1860 | ret = gspca_dev->sd_desc->config(gspca_dev, id); | 1860 | ret = sd_desc->config(gspca_dev, id); |
1861 | if (ret < 0) | 1861 | if (ret < 0) |
1862 | goto out; | 1862 | goto out; |
1863 | ret = gspca_dev->sd_desc->init(gspca_dev); | 1863 | ret = sd_desc->init(gspca_dev); |
1864 | if (ret < 0) | 1864 | if (ret < 0) |
1865 | goto out; | 1865 | goto out; |
1866 | ret = gspca_set_alt0(gspca_dev); | 1866 | ret = gspca_set_alt0(gspca_dev); |
@@ -1874,9 +1874,8 @@ int gspca_dev_probe(struct usb_interface *intf, | |||
1874 | init_waitqueue_head(&gspca_dev->wq); | 1874 | init_waitqueue_head(&gspca_dev->wq); |
1875 | 1875 | ||
1876 | /* init video stuff */ | 1876 | /* init video stuff */ |
1877 | gspca_dev->vdev = video_device_alloc(); | 1877 | memcpy(&gspca_dev->vdev, &gspca_template, sizeof gspca_template); |
1878 | memcpy(gspca_dev->vdev, &gspca_template, sizeof gspca_template); | 1878 | gspca_dev->vdev.parent = &dev->dev; |
1879 | gspca_dev->vdev->parent = &dev->dev; | ||
1880 | gspca_dev->module = module; | 1879 | gspca_dev->module = module; |
1881 | gspca_dev->present = 1; | 1880 | gspca_dev->present = 1; |
1882 | ret = video_register_device(&gspca_dev->vdev, | 1881 | ret = video_register_device(&gspca_dev->vdev, |