]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MLK-10182: cam :Module can't load/unload twice without camera connected
authorSandor Yu <R01008@freescale.com>
Fri, 30 Jan 2015 09:25:40 +0000 (17:25 +0800)
committerSandor Yu <R01008@freescale.com>
Fri, 30 Jan 2015 15:32:39 +0000 (23:32 +0800)
commit59d959dd95150ed1aa963b9f2dbd6391c5dc44cf
tree5b19ce8cd0f067b3280a4e1b7d1e572b0cfcb537
parent777ae804d98f61c3e9b845f6286ab9a471668af0
MLK-10182: cam :Module can't load/unload twice without camera connected

If no camera connected, ov5640 driver loading failed,
but the driver have register subdev by v4l2_async_register_subdev.
v4l2_async_unregister_subdev function in remove function
and not been called when module unloading.
Same subdev can not register twice, v4l2 async driver will print
error message in the second module loading.
Move v4l2_async_register_subdev function after ov5640 is succeed
found to fix the issue.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/media/platform/mxc/subdev/ov5640.c