greybus: camera: Improve module registration mechanism
authorGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Mon, 14 Mar 2016 16:44:53 +0000 (18:44 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 17 Mar 2016 22:17:59 +0000 (15:17 -0700)
commitc3d77f71308e38ef98909c317c57d906f4d51cb9
tree8b5b70fb81edcc439fa2f376b4f3dcb494ab04ca
parenta883b0eb434c6ad0237b559b1b5c8cee89ef6350
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>
drivers/staging/greybus/camera.c
drivers/staging/greybus/gb-camera.h