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/vc032x.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/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 0c68f433bb9b..be46d9232540 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -1501,7 +1501,7 @@ static void setlightfreq(struct gspca_dev *gspca_dev) | |||
1501 | usb_exchange(gspca_dev, ov7660_freq_tb[sd->lightfreq]); | 1501 | usb_exchange(gspca_dev, ov7660_freq_tb[sd->lightfreq]); |
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | static void sd_start(struct gspca_dev *gspca_dev) | 1504 | static int sd_start(struct gspca_dev *gspca_dev) |
1505 | { | 1505 | { |
1506 | struct sd *sd = (struct sd *) gspca_dev; | 1506 | struct sd *sd = (struct sd *) gspca_dev; |
1507 | const __u8 *GammaT = NULL; | 1507 | const __u8 *GammaT = NULL; |
@@ -1585,7 +1585,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1585 | break; | 1585 | break; |
1586 | default: | 1586 | default: |
1587 | PDEBUG(D_PROBE, "Damned !! no sensor found Bye"); | 1587 | PDEBUG(D_PROBE, "Damned !! no sensor found Bye"); |
1588 | return; | 1588 | return -EMEDIUMTYPE; |
1589 | } | 1589 | } |
1590 | if (GammaT && MatrixT) { | 1590 | if (GammaT && MatrixT) { |
1591 | put_tab_to_reg(gspca_dev, GammaT, 17, 0xb84a); | 1591 | put_tab_to_reg(gspca_dev, GammaT, 17, 0xb84a); |
@@ -1621,6 +1621,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1621 | setautogain(gspca_dev); | 1621 | setautogain(gspca_dev); |
1622 | setlightfreq(gspca_dev); | 1622 | setlightfreq(gspca_dev); |
1623 | } | 1623 | } |
1624 | return 0; | ||
1624 | } | 1625 | } |
1625 | 1626 | ||
1626 | static void sd_stopN(struct gspca_dev *gspca_dev) | 1627 | static void sd_stopN(struct gspca_dev *gspca_dev) |