diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-20 14:03:31 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-01-20 14:03:31 +0100 |
commit | 7eeca606e6f069419f33e54b3eda52bfe545bc43 (patch) | |
tree | e2202d2a5f34b5b12ea99c552eb76d943a2de279 /linux/drivers/media/video/gspca/finepix.c | |
parent | 8b8d5d53029339f50706bc1a3b099cedae2abf6a (diff) | |
parent | 5b8037b48a2ec01ef6b8cb460a96db73d5d276ba (diff) | |
download | mediapointer-dvb-s2-7eeca606e6f069419f33e54b3eda52bfe545bc43.tar.gz mediapointer-dvb-s2-7eeca606e6f069419f33e54b3eda52bfe545bc43.tar.bz2 |
merge:v4l-dvb
Diffstat (limited to 'linux/drivers/media/video/gspca/finepix.c')
-rw-r--r-- | linux/drivers/media/video/gspca/finepix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/gspca/finepix.c b/linux/drivers/media/video/gspca/finepix.c index afc8b2dd3..dc65c363a 100644 --- a/linux/drivers/media/video/gspca/finepix.c +++ b/linux/drivers/media/video/gspca/finepix.c @@ -259,7 +259,6 @@ static int sd_config(struct gspca_dev *gspca_dev, cam->cam_mode = fpix_mode; cam->nmodes = 1; - cam->epaddr = 0x01; /* todo: correct for all cams? */ cam->bulk_size = FPIX_MAX_TRANSFER; /* gspca_dev->nbalt = 1; * use bulk transfer */ @@ -335,8 +334,7 @@ static int sd_start(struct gspca_dev *gspca_dev) /* Read the result of the command. Ignore the result, for it * varies with the device. */ ret = usb_bulk_msg(gspca_dev->dev, - usb_rcvbulkpipe(gspca_dev->dev, - gspca_dev->cam.epaddr), + gspca_dev->urb[0]->pipe, gspca_dev->usb_buf, FPIX_MAX_TRANSFER, &size_ret, FPIX_TIMEOUT); if (ret != 0) { @@ -363,7 +361,7 @@ static int sd_start(struct gspca_dev *gspca_dev) } /* Again, reset bulk in endpoint */ - usb_clear_halt(gspca_dev->dev, gspca_dev->cam.epaddr); + usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); /* Allocate a control URB */ dev->control_urb = usb_alloc_urb(0, GFP_KERNEL); @@ -456,8 +454,10 @@ static struct usb_driver sd_driver = { /* -- module insert / remove -- */ static int __init sd_mod_init(void) { - if (usb_register(&sd_driver) < 0) - return -1; + int ret; + ret = usb_register(&sd_driver); + if (ret < 0) + return ret; PDEBUG(D_PROBE, "registered"); return 0; } |