diff options
author | Sascha Sommer <saschasommer@freenet.de> | 2012-01-08 20:19:30 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-11 01:47:27 +0100 |
commit | 0903bb540e5bb99a9e58d583a596a30620f65702 (patch) | |
tree | 951ee5afbd1200a1bec6dd9e84868f18c2d4309d /drivers | |
parent | [media] em28xx: simplify argument passing to em28xx_init_dev() (diff) | |
download | linux-0903bb540e5bb99a9e58d583a596a30620f65702.tar.xz linux-0903bb540e5bb99a9e58d583a596a30620f65702.zip |
[media] em28xx: Fix: I2C_CLK write error message checks wrong return code
It looks like the return value check that is done after setting the I2C
speed checks the wrong return code.
Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index ebfb7a3beab2..6448011e3a1b 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c @@ -3014,7 +3014,7 @@ static int em28xx_init_dev(struct em28xx *dev, struct usb_device *udev, if (!dev->board.is_em2800) { /* Resets I2C speed */ - em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, dev->board.i2c_speed); + retval = em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, dev->board.i2c_speed); if (retval < 0) { em28xx_errdev("%s: em28xx_write_reg failed!" " retval [%d]\n", |