Commit da8cec30 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mauro Carvalho Chehab

[media] exynos4-is: Correct clean up sequence on error path in fimc_is_probe()

The memory allocator is being initialized before registering the subdevs
so reverse the cleanup sequence to avoid trying unregister not registered
subdevs.
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 84f14456
...@@ -867,10 +867,10 @@ static int fimc_is_probe(struct platform_device *pdev) ...@@ -867,10 +867,10 @@ static int fimc_is_probe(struct platform_device *pdev)
err_dfs: err_dfs:
fimc_is_debugfs_remove(is); fimc_is_debugfs_remove(is);
err_vb:
vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
err_sd: err_sd:
fimc_is_unregister_subdevs(is); fimc_is_unregister_subdevs(is);
err_vb:
vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
err_irq: err_irq:
free_irq(is->irq, is); free_irq(is->irq, is);
err_clk: err_clk:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment