summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/stv06xx/stv06xx.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-27 23:47:50 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-27 23:47:50 -0200
commit471270c843cfbff8d1b8944c0c54850c121dd6e2 (patch)
tree36e10dd9738cf3921f233f8d1f30cd4aedefea60 /linux/drivers/media/video/gspca/stv06xx/stv06xx.c
parent21877231e3db3aea6295d62290c7a5f9fe7e6d84 (diff)
parent4c1cb43c04ca0444e3dcb8113386c5fe84324496 (diff)
downloadmediapointer-dvb-s2-471270c843cfbff8d1b8944c0c54850c121dd6e2.tar.gz
mediapointer-dvb-s2-471270c843cfbff8d1b8944c0c54850c121dd6e2.tar.bz2
merge: http://linuxtv.org/hg/~jfrancois/gspca/
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/stv06xx/stv06xx.c')
-rw-r--r--linux/drivers/media/video/gspca/stv06xx/stv06xx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/stv06xx/stv06xx.c b/linux/drivers/media/video/gspca/stv06xx/stv06xx.c
index 13a021e3c..9dff2e65b 100644
--- a/linux/drivers/media/video/gspca/stv06xx/stv06xx.c
+++ b/linux/drivers/media/video/gspca/stv06xx/stv06xx.c
@@ -429,7 +429,6 @@ static int stv06xx_config(struct gspca_dev *gspca_dev,
PDEBUG(D_PROBE, "Configuring camera");
cam = &gspca_dev->cam;
- cam->epaddr = STV_ISOC_ENDPOINT_ADDR;
sd->desc = sd_desc;
gspca_dev->sd_desc = &sd->desc;
@@ -501,8 +500,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;
}