diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
commit | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (patch) | |
tree | 647240f479c5f23910c3e6194d1c35b6ba54d75e /drivers/media/video/saa7164/saa7164-fw.c | |
parent | 3c0cb7c31c206aaedb967e44b98442bbeb17a6c4 (diff) | |
parent | e3c92215198cb6aa00ad38db2780faa6b72e0a3f (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: (255 commits)
[media] radio-aimslab.c: Fix gcc 4.5+ bug
[media] cx25821: Fix compilation breakage due to BKL dependency
[media] v4l2-compat-ioctl32: fix compile warning
[media] zoran: fix compiler warning
[media] tda18218: fix compile warning
[media] ngene: fix compile warning
[media] DVB: IR support for TechnoTrend CT-3650
[media] cx23885, cimax2.c: Fix case of two CAM insertion irq
[media] ir-nec-decoder: fix repeat key issue
[media] staging: se401 depends on USB
[media] staging: usbvideo/vicam depends on USB
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
[media] v4l: soc-camera: switch to .unlocked_ioctl
[media] v4l: ov772x: simplify pointer dereference
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
[media] ov9640: use macro to request OmniVision OV9640 sensor private data
[media] ivtv-i2c: Fix two warnings
[media] staging/lirc: Update lirc TODO files
[media] cx88: Remove the obsolete i2c_adapter.id field
...
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-fw.c')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-fw.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/media/video/saa7164/saa7164-fw.c b/drivers/media/video/saa7164/saa7164-fw.c index 484533c32bb1..ebed6f786a23 100644 --- a/drivers/media/video/saa7164/saa7164-fw.c +++ b/drivers/media/video/saa7164/saa7164-fw.c | |||
@@ -178,7 +178,7 @@ int saa7164_downloadimage(struct saa7164_dev *dev, u8 *src, u32 srcsize, | |||
178 | goto out; | 178 | goto out; |
179 | } | 179 | } |
180 | 180 | ||
181 | msleep(10); | 181 | msleep(10); /* Checkpatch throws a < 20ms warning */ |
182 | if (timeout++ > 60) | 182 | if (timeout++ > 60) |
183 | break; | 183 | break; |
184 | } | 184 | } |
@@ -235,7 +235,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) | |||
235 | while (err_flags != SAA_DEVICE_IMAGE_BOOTING) { | 235 | while (err_flags != SAA_DEVICE_IMAGE_BOOTING) { |
236 | dprintk(DBGLVL_FW, "%s() err_flags = %x\n", | 236 | dprintk(DBGLVL_FW, "%s() err_flags = %x\n", |
237 | __func__, err_flags); | 237 | __func__, err_flags); |
238 | msleep(10); | 238 | msleep(10); /* Checkpatch throws a < 20ms warning */ |
239 | 239 | ||
240 | if (err_flags & SAA_DEVICE_IMAGE_CORRUPT) { | 240 | if (err_flags & SAA_DEVICE_IMAGE_CORRUPT) { |
241 | printk(KERN_ERR "%s() firmware corrupt\n", | 241 | printk(KERN_ERR "%s() firmware corrupt\n", |
@@ -294,7 +294,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) | |||
294 | while (err_flags != SAA_DEVICE_IMAGE_BOOTING) { | 294 | while (err_flags != SAA_DEVICE_IMAGE_BOOTING) { |
295 | dprintk(DBGLVL_FW, "%s() err_flags2 = %x\n", | 295 | dprintk(DBGLVL_FW, "%s() err_flags2 = %x\n", |
296 | __func__, err_flags); | 296 | __func__, err_flags); |
297 | msleep(10); | 297 | msleep(10); /* Checkpatch throws a < 20ms warning */ |
298 | 298 | ||
299 | if (err_flags & SAA_DEVICE_IMAGE_CORRUPT) { | 299 | if (err_flags & SAA_DEVICE_IMAGE_CORRUPT) { |
300 | printk(KERN_ERR | 300 | printk(KERN_ERR |
@@ -365,7 +365,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) | |||
365 | 365 | ||
366 | first_timeout = SAA_DEVICE_TIMEOUT; | 366 | first_timeout = SAA_DEVICE_TIMEOUT; |
367 | while (first_timeout) { | 367 | while (first_timeout) { |
368 | msleep(10); | 368 | msleep(10); /* Checkpatch throws a < 20ms warning */ |
369 | 369 | ||
370 | version = | 370 | version = |
371 | saa7164_getcurrentfirmwareversion(dev); | 371 | saa7164_getcurrentfirmwareversion(dev); |
@@ -608,8 +608,6 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) | |||
608 | ret = 0; | 608 | ret = 0; |
609 | 609 | ||
610 | out: | 610 | out: |
611 | if (fw) | 611 | release_firmware(fw); |
612 | release_firmware(fw); | ||
613 | |||
614 | return ret; | 612 | return ret; |
615 | } | 613 | } |