aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sonixj.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-09-20 05:39:08 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:12 -0400
commit72ab97cecb7225a4c9f74cdd80268b50b74697bb (patch)
tree3c942aa1c1538ad83c5f49fbc6ab01ea1a584789 /drivers/media/video/gspca/sonixj.c
parent1b60e1adc713e8d375dc117f5c3b5032d5b79abe (diff)
V4L/DVB (9079): gspca: Return error code from stream start functions.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
-rw-r--r--drivers/media/video/gspca/sonixj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 2ca4d9f23fe4..9c6a874be990 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -1203,7 +1203,7 @@ static void setvflip(struct sd *sd)
1203} 1203}
1204 1204
1205/* -- start the camera -- */ 1205/* -- start the camera -- */
1206static void sd_start(struct gspca_dev *gspca_dev) 1206static int sd_start(struct gspca_dev *gspca_dev)
1207{ 1207{
1208 struct sd *sd = (struct sd *) gspca_dev; 1208 struct sd *sd = (struct sd *) gspca_dev;
1209 int i; 1209 int i;
@@ -1357,6 +1357,7 @@ static void sd_start(struct gspca_dev *gspca_dev)
1357 } 1357 }
1358 setautogain(gspca_dev); 1358 setautogain(gspca_dev);
1359 reg_w1(gspca_dev, 0x01, reg1); 1359 reg_w1(gspca_dev, 0x01, reg1);
1360 return 0;
1360} 1361}
1361 1362
1362static void sd_stopN(struct gspca_dev *gspca_dev) 1363static void sd_stopN(struct gspca_dev *gspca_dev)