diff options
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index bd4c226c9a07..be46d9232540 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -80,7 +80,6 @@ static struct ctrl sd_ctrls[] = { | |||
80 | .step = 1, | 80 | .step = 1, |
81 | #define FREQ_DEF 1 | 81 | #define FREQ_DEF 1 |
82 | .default_value = FREQ_DEF, | 82 | .default_value = FREQ_DEF, |
83 | .default_value = 1, | ||
84 | }, | 83 | }, |
85 | .set = sd_setfreq, | 84 | .set = sd_setfreq, |
86 | .get = sd_getfreq, | 85 | .get = sd_getfreq, |
@@ -1502,7 +1501,7 @@ static void setlightfreq(struct gspca_dev *gspca_dev) | |||
1502 | usb_exchange(gspca_dev, ov7660_freq_tb[sd->lightfreq]); | 1501 | usb_exchange(gspca_dev, ov7660_freq_tb[sd->lightfreq]); |
1503 | } | 1502 | } |
1504 | 1503 | ||
1505 | static void sd_start(struct gspca_dev *gspca_dev) | 1504 | static int sd_start(struct gspca_dev *gspca_dev) |
1506 | { | 1505 | { |
1507 | struct sd *sd = (struct sd *) gspca_dev; | 1506 | struct sd *sd = (struct sd *) gspca_dev; |
1508 | const __u8 *GammaT = NULL; | 1507 | const __u8 *GammaT = NULL; |
@@ -1586,7 +1585,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1586 | break; | 1585 | break; |
1587 | default: | 1586 | default: |
1588 | PDEBUG(D_PROBE, "Damned !! no sensor found Bye"); | 1587 | PDEBUG(D_PROBE, "Damned !! no sensor found Bye"); |
1589 | return; | 1588 | return -EMEDIUMTYPE; |
1590 | } | 1589 | } |
1591 | if (GammaT && MatrixT) { | 1590 | if (GammaT && MatrixT) { |
1592 | put_tab_to_reg(gspca_dev, GammaT, 17, 0xb84a); | 1591 | put_tab_to_reg(gspca_dev, GammaT, 17, 0xb84a); |
@@ -1622,6 +1621,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1622 | setautogain(gspca_dev); | 1621 | setautogain(gspca_dev); |
1623 | setlightfreq(gspca_dev); | 1622 | setlightfreq(gspca_dev); |
1624 | } | 1623 | } |
1624 | return 0; | ||
1625 | } | 1625 | } |
1626 | 1626 | ||
1627 | static void sd_stopN(struct gspca_dev *gspca_dev) | 1627 | static void sd_stopN(struct gspca_dev *gspca_dev) |