diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-20 05:39:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:12 -0400 |
commit | 72ab97cecb7225a4c9f74cdd80268b50b74697bb (patch) | |
tree | 3c942aa1c1538ad83c5f49fbc6ab01ea1a584789 /drivers/media/video/gspca/sonixj.c | |
parent | 1b60e1adc713e8d375dc117f5c3b5032d5b79abe (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.c | 3 |
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 -- */ |
1206 | static void sd_start(struct gspca_dev *gspca_dev) | 1206 | static 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 | ||
1362 | static void sd_stopN(struct gspca_dev *gspca_dev) | 1363 | static void sd_stopN(struct gspca_dev *gspca_dev) |