[media] exynos4-is: Change function call order in fimc_is_module_exit()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 18 Apr 2013 17:18:22 +0000 (14:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 12:36:52 +0000 (09:36 -0300)
Due to hardware dependencies (clocks/power domain) the I2C bus
controller needs to be unregistered before fimc-is.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-is.c

index ca72b02022ad4210cf43a347ac38c3b22c33a2f1..5e890776d16493ce3bc1997f55e60992d7a59f43 100644 (file)
@@ -995,9 +995,9 @@ err_sens:
 
 static void fimc_is_module_exit(void)
 {
-       platform_driver_unregister(&fimc_is_driver);
-       fimc_is_unregister_i2c_driver();
        fimc_is_unregister_sensor_driver();
+       fimc_is_unregister_i2c_driver();
+       platform_driver_unregister(&fimc_is_driver);
 }
 
 module_init(fimc_is_module_init);