[media] exynos4-is: Correct clean up sequence on error path in fimc_is_probe()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sat, 19 Oct 2013 22:07:51 +0000 (19:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 2 Jan 2014 16:25:56 +0000 (14:25 -0200)
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: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-is.c

index 9770fa98d6a16403fcae21e2d38eec6c723e4e68..8cb70c279d095499ef9fead54b1c1aafc5ab0e45 100644 (file)
@@ -867,10 +867,10 @@ static int fimc_is_probe(struct platform_device *pdev)
 
 err_dfs:
        fimc_is_debugfs_remove(is);
-err_vb:
-       vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
 err_sd:
        fimc_is_unregister_subdevs(is);
+err_vb:
+       vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
 err_irq:
        free_irq(is->irq, is);
 err_clk: