[media] af9035: remove I2C client differently
authorAntti Palosaari <crope@iki.fi>
Thu, 4 Sep 2014 21:35:59 +0000 (18:35 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 22:50:11 +0000 (19:50 -0300)
commitd4d6a34d36b1e72d0c5cf470a41fc7bc79acd73f
tree7daf155e5d1a0d10ee31161702f706dfb7b0b563
parent1066d77f682e84efb56fbd4e5c8bb236532eccc7
[media] af9035: remove I2C client differently

It crash kernel when device was removed while it was streaming.
That is because we removed driver and frontend thread was still
running. Use new callback which allows I2C driver removal just
after frontend is unregistered.

V2: fixed by reported by Daniel

Reported-by: Daniel Glöckner <daniel-gl@gmx.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/af9035.c