diff options
Diffstat (limited to 'drivers/media/video/gspca/sonixb.c')
-rw-r--r-- | drivers/media/video/gspca/sonixb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 162beb3feadb..602608031247 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -736,7 +736,6 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
736 | struct sd *sd = (struct sd *) gspca_dev; | 736 | struct sd *sd = (struct sd *) gspca_dev; |
737 | struct cam *cam; | 737 | struct cam *cam; |
738 | int sif = 0; | 738 | int sif = 0; |
739 | const __u8 stop = 0x09; /* Disable stream turn of LED */ | ||
740 | 739 | ||
741 | reg_r(gspca_dev, 0x00); | 740 | reg_r(gspca_dev, 0x00); |
742 | if (gspca_dev->usb_buf[0] != 0x10) | 741 | if (gspca_dev->usb_buf[0] != 0x10) |
@@ -773,15 +772,16 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
773 | sd->autogain = AUTOGAIN_DEF; | 772 | sd->autogain = AUTOGAIN_DEF; |
774 | sd->freq = FREQ_DEF; | 773 | sd->freq = FREQ_DEF; |
775 | 774 | ||
776 | /* Disable stream turn of LED */ | ||
777 | reg_w(gspca_dev, 0x01, &stop, 1); | ||
778 | |||
779 | return 0; | 775 | return 0; |
780 | } | 776 | } |
781 | 777 | ||
782 | /* this function is called at probe and resume time */ | 778 | /* this function is called at probe and resume time */ |
783 | static int sd_init(struct gspca_dev *gspca_dev) | 779 | static int sd_init(struct gspca_dev *gspca_dev) |
784 | { | 780 | { |
781 | const __u8 stop = 0x09; /* Disable stream turn of LED */ | ||
782 | |||
783 | reg_w(gspca_dev, 0x01, &stop, 1); | ||
784 | |||
785 | return 0; | 785 | return 0; |
786 | } | 786 | } |
787 | 787 | ||