[media] sh_mobile_csi2: fix module reloading
commitcb743930eb91e5b608c4491ce1b930dfeca43943
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 Mar 2011 08:43:51 +0000 (23 05:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Apr 2011 12:55:38 +0000 (13 09:55 -0300)
tree5c54a2f5f1c90affea51917a21c1e928dc0638c9
parentc8dd707805af100965c93cdca7d61e61165e9c07
[media] sh_mobile_csi2: fix module reloading

If the camera host driver (sh_mobile_ceu_camera.c) is unloaded and then
reloaded, probe will fail, because camera client .set_bus_param() and
.query_bus_param() methods have been set to NULL. Fix this by caching
the original pointers and restoring them on driver-unbind.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sh_mobile_csi2.c