diff options
Diffstat (limited to 'drivers/media/video/gspca/conex.c')
-rw-r--r-- | drivers/media/video/gspca/conex.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index d6a75772f3f8..1eacb6c7926d 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -687,7 +687,7 @@ static void cx11646_jpeg(struct gspca_dev*gspca_dev) | |||
687 | reg_w_val(gspca_dev, 0x00c0, 0x00); | 687 | reg_w_val(gspca_dev, 0x00c0, 0x00); |
688 | reg_r(gspca_dev, 0x0001, 1); | 688 | reg_r(gspca_dev, 0x0001, 1); |
689 | length = 8; | 689 | length = 8; |
690 | switch (gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv) { | 690 | switch (gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv) { |
691 | case 0: | 691 | case 0: |
692 | for (i = 0; i < 27; i++) { | 692 | for (i = 0; i < 27; i++) { |
693 | if (i == 26) | 693 | if (i == 26) |
@@ -901,7 +901,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
901 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); | 901 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
902 | } | 902 | } |
903 | 903 | ||
904 | static void setbrightness(struct gspca_dev*gspca_dev) | 904 | static void setbrightness(struct gspca_dev *gspca_dev) |
905 | { | 905 | { |
906 | struct sd *sd = (struct sd *) gspca_dev; | 906 | struct sd *sd = (struct sd *) gspca_dev; |
907 | __u8 regE5cbx[] = { 0x88, 0x00, 0xd4, 0x01, 0x88, 0x01, 0x01, 0x01 }; | 907 | __u8 regE5cbx[] = { 0x88, 0x00, 0xd4, 0x01, 0x88, 0x01, 0x01, 0x01 }; |
@@ -924,7 +924,7 @@ static void setbrightness(struct gspca_dev*gspca_dev) | |||
924 | reg_w_val(gspca_dev, 0x0070, reg70); | 924 | reg_w_val(gspca_dev, 0x0070, reg70); |
925 | } | 925 | } |
926 | 926 | ||
927 | static void setcontrast(struct gspca_dev*gspca_dev) | 927 | static void setcontrast(struct gspca_dev *gspca_dev) |
928 | { | 928 | { |
929 | struct sd *sd = (struct sd *) gspca_dev; | 929 | struct sd *sd = (struct sd *) gspca_dev; |
930 | __u8 regE5acx[] = { 0x88, 0x0a, 0x0c, 0x01 }; /* seem MSB */ | 930 | __u8 regE5acx[] = { 0x88, 0x0a, 0x0c, 0x01 }; /* seem MSB */ |
@@ -1068,17 +1068,11 @@ static struct usb_driver sd_driver = { | |||
1068 | /* -- module insert / remove -- */ | 1068 | /* -- module insert / remove -- */ |
1069 | static int __init sd_mod_init(void) | 1069 | static int __init sd_mod_init(void) |
1070 | { | 1070 | { |
1071 | int ret; | 1071 | return usb_register(&sd_driver); |
1072 | ret = usb_register(&sd_driver); | ||
1073 | if (ret < 0) | ||
1074 | return ret; | ||
1075 | PDEBUG(D_PROBE, "registered"); | ||
1076 | return 0; | ||
1077 | } | 1072 | } |
1078 | static void __exit sd_mod_exit(void) | 1073 | static void __exit sd_mod_exit(void) |
1079 | { | 1074 | { |
1080 | usb_deregister(&sd_driver); | 1075 | usb_deregister(&sd_driver); |
1081 | PDEBUG(D_PROBE, "deregistered"); | ||
1082 | } | 1076 | } |
1083 | 1077 | ||
1084 | module_init(sd_mod_init); | 1078 | module_init(sd_mod_init); |