diff options
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) |