diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:35:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:35:11 -0400 |
commit | 0851668fdd97e526b2a41f794b785c204dd3d3e0 (patch) | |
tree | 4ef7c20a8be8393006c6fe9627eb29dd30877d61 /drivers/media/video/gspca/benq.c | |
parent | 00ebb6382b8d9c7c15b5f8ad230670d8161d38dd (diff) | |
parent | 7655e594945289b418af39f6669fea4666a7b520 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits)
[media] af9015: Fix max I2C message size when used with tda18271
[media] IR: initialize ir_raw_event in few more drivers
[media] Guard a divide in v4l1 compat layer
[media] imon: fix nomouse modprobe option
[media] imon: remove redundant change_protocol call
[media] imon: fix my egregious brown paper bag w/rdev/idev split
[media] cafe_ccic: Configure ov7670 correctly
[media] ov7670: allow configuration of image size, clock speed, and I/O method
[media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016]
[media] af9015: map DigitalNow TinyTwin v2 remote
[media] DigitalNow TinyTwin remote controller
[media] af9015: RC fixes and improvements
videodev2.h.xml: Update to reflect the latest changes at videodev2.h
[media] v4l: document new Bayer and monochrome pixel formats
[media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028
[media] firedtv: add parameter to fake ca_system_ids in CA_INFO
[media] tm6000: fix a macro coding style issue
tm6000: Remove some ugly debug code
[media] Nova-S-Plus audio line input
[media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers
...
Diffstat (limited to 'drivers/media/video/gspca/benq.c')
-rw-r--r-- | drivers/media/video/gspca/benq.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c index fce8d9492641..629043933501 100644 --- a/drivers/media/video/gspca/benq.c +++ b/drivers/media/video/gspca/benq.c | |||
@@ -62,7 +62,7 @@ static void reg_w(struct gspca_dev *gspca_dev, | |||
62 | 0, | 62 | 0, |
63 | 500); | 63 | 500); |
64 | if (ret < 0) { | 64 | if (ret < 0) { |
65 | PDEBUG(D_ERR, "reg_w err %d", ret); | 65 | err("reg_w err %d", ret); |
66 | gspca_dev->usb_err = ret; | 66 | gspca_dev->usb_err = ret; |
67 | } | 67 | } |
68 | } | 68 | } |
@@ -152,7 +152,8 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
152 | reg_w(gspca_dev, 0x003c, 0x0005); | 152 | reg_w(gspca_dev, 0x003c, 0x0005); |
153 | reg_w(gspca_dev, 0x003c, 0x0006); | 153 | reg_w(gspca_dev, 0x003c, 0x0006); |
154 | reg_w(gspca_dev, 0x003c, 0x0007); | 154 | reg_w(gspca_dev, 0x003c, 0x0007); |
155 | usb_set_interface(gspca_dev->dev, gspca_dev->iface, gspca_dev->nbalt - 1); | 155 | usb_set_interface(gspca_dev->dev, gspca_dev->iface, |
156 | gspca_dev->nbalt - 1); | ||
156 | } | 157 | } |
157 | 158 | ||
158 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 159 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
@@ -180,7 +181,7 @@ static void sd_isoc_irq(struct urb *urb) | |||
180 | if (gspca_dev->frozen) | 181 | if (gspca_dev->frozen) |
181 | return; | 182 | return; |
182 | #endif | 183 | #endif |
183 | PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status); | 184 | err("urb status: %d", urb->status); |
184 | return; | 185 | return; |
185 | } | 186 | } |
186 | 187 | ||
@@ -208,8 +209,7 @@ static void sd_isoc_irq(struct urb *urb) | |||
208 | if (st == 0) | 209 | if (st == 0) |
209 | st = urb->iso_frame_desc[i].status; | 210 | st = urb->iso_frame_desc[i].status; |
210 | if (st) { | 211 | if (st) { |
211 | PDEBUG(D_ERR, | 212 | err("ISOC data error: [%d] status=%d", |
212 | "ISOC data error: [%d] status=%d", | ||
213 | i, st); | 213 | i, st); |
214 | gspca_dev->last_packet_type = DISCARD_PACKET; | 214 | gspca_dev->last_packet_type = DISCARD_PACKET; |
215 | continue; | 215 | continue; |
@@ -256,10 +256,10 @@ static void sd_isoc_irq(struct urb *urb) | |||
256 | /* resubmit the URBs */ | 256 | /* resubmit the URBs */ |
257 | st = usb_submit_urb(urb0, GFP_ATOMIC); | 257 | st = usb_submit_urb(urb0, GFP_ATOMIC); |
258 | if (st < 0) | 258 | if (st < 0) |
259 | PDEBUG(D_ERR|D_PACK, "usb_submit_urb(0) ret %d", st); | 259 | err("usb_submit_urb(0) ret %d", st); |
260 | st = usb_submit_urb(urb, GFP_ATOMIC); | 260 | st = usb_submit_urb(urb, GFP_ATOMIC); |
261 | if (st < 0) | 261 | if (st < 0) |
262 | PDEBUG(D_ERR|D_PACK, "usb_submit_urb() ret %d", st); | 262 | err("usb_submit_urb() ret %d", st); |
263 | } | 263 | } |
264 | 264 | ||
265 | /* sub-driver description */ | 265 | /* sub-driver description */ |
@@ -304,18 +304,11 @@ static struct usb_driver sd_driver = { | |||
304 | /* -- module insert / remove -- */ | 304 | /* -- module insert / remove -- */ |
305 | static int __init sd_mod_init(void) | 305 | static int __init sd_mod_init(void) |
306 | { | 306 | { |
307 | int ret; | 307 | return usb_register(&sd_driver); |
308 | |||
309 | ret = usb_register(&sd_driver); | ||
310 | if (ret < 0) | ||
311 | return ret; | ||
312 | info("registered"); | ||
313 | return 0; | ||
314 | } | 308 | } |
315 | static void __exit sd_mod_exit(void) | 309 | static void __exit sd_mod_exit(void) |
316 | { | 310 | { |
317 | usb_deregister(&sd_driver); | 311 | usb_deregister(&sd_driver); |
318 | info("deregistered"); | ||
319 | } | 312 | } |
320 | 313 | ||
321 | module_init(sd_mod_init); | 314 | module_init(sd_mod_init); |