CHROMIUM: media: ipu3-imgu: Call media_device_unregister() first at exit

Re-order media_device_unregister() within ipu3_v4l2_unregister().

Link: https://patchwork.kernel.org/patch/10316743

For v4.4, the media_device's lock(&mdev->lock) is initialized
inside media_device_register(), so this function cannot be moved
to the end of the ipu3_v4l2_register(), the suggested change will happen
in upstream v7 based on v4.19.

BUG=b:116082248
TEST=Sanity checked camera functions

Change-Id: Ia096f2bff32630772aced09d20c3df4a5b1b5e80
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1286088
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
1 file changed