greybus: camera: Improve module registration mechanism

Registering more then one module at same time was not
possible with previous implementation. Also unregistering
of the module was missing leading to many instability issues
when camera module is ejected when camera is still active.

Signed-off-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Gjorgji Rosikopulos 2016-03-14 18:44:53 +02:00 • committed by Greg Kroah-Hartman
commit c3d77f7130
2 changed files with 29 additions and 11 deletions