exynos4-is: Do not unnecessarily activate fimc devices in probe()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Sep 2013 16:48:04 +0000 (18:48 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:44 +0000 (11:44 +0900)
There is no use of temporarily activating the device in probe()
so remove the pm_runtime_get_sync(), pm_runtime_put() calls.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/media/platform/exynos4-is/fimc-core.c

index 5c0f438..6823ce0 100644 (file)
@@ -1029,23 +1029,18 @@ static int fimc_probe(struct platform_device *pdev)
                goto err_clk;
 
        platform_set_drvdata(pdev, fimc);
-       pm_runtime_enable(dev);
-       ret = pm_runtime_get_sync(dev);
-       if (ret < 0)
-               goto err_sd;
+
        /* Initialize contiguous memory allocator */
        fimc->alloc_ctx = vb2_dma_contig_init_ctx(dev);
        if (IS_ERR(fimc->alloc_ctx)) {
                ret = PTR_ERR(fimc->alloc_ctx);
-               goto err_pm;
+               goto err_sd;
        }
 
-       dev_dbg(dev, "FIMC.%d registered successfully\n", fimc->id);
+       pm_runtime_enable(dev);
 
-       pm_runtime_put(dev);
+       dev_dbg(dev, "FIMC.%d registered successfully\n", fimc->id);
        return 0;
-err_pm:
-       pm_runtime_put(dev);
 err_sd:
        fimc_unregister_capture_subdev(fimc);
 err_clk: