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
Signed-off-by: Yong Zhi <email@example.com>
Reviewed-by: Tomasz Figa <firstname.lastname@example.org>
1 file changed