Skip to content

Commit

Permalink
[media] exynos4-is: Change function call order in fimc_is_module_exit()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent 450f5f5 commit 0e30c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/exynos4-is/fimc-is.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,9 @@ static int fimc_is_module_init(void)

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);
Expand Down

0 comments on commit 0e30c7e

Please sign in to comment.