]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] media: em28xx - fix i2c_xfer to return -ENODEV when dev is removed
authorShuah Khan <shuah.kh@samsung.com>
Fri, 11 Jul 2014 21:25:55 +0000 (18:25 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 14:15:17 +0000 (11:15 -0300)
commitcc5c5d20c3cb9066576043b937b35d6b669a52e0
tree5807d86fa82fe1a1c2af871d7b1094486aad5157
parentb89193e0b06f44f48e3bf897a5b5cb4a7aff3359
[media] media: em28xx - fix i2c_xfer to return -ENODEV when dev is removed

In em28xx usb disconnect code path, some dvb fe and tuner drivers
attempt i2c transfers from their release interfaces. When device
is removed, return -ENODEV instead of attempting to transfer data
over i2c.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-i2c.c