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

Re-order media_device_unregister() within ipu3_v4l2_unregister().


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.

TEST=Sanity checked camera functions

Change-Id: Ia096f2bff32630772aced09d20c3df4a5b1b5e80
Signed-off-by: Yong Zhi <>
Reviewed-by: Tomasz Figa <>
1 file changed