There is no use of temporarily activating the device in probe()
so remove the pm_runtime_get_sync(), pm_runtime_put() calls.
This also fixes a bug on error path.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
dev_err(dev, "irq request failed\n");
goto err_clk;
}
- pm_runtime_enable(dev);
-
- ret = pm_runtime_get_sync(dev);
- if (ret < 0)
- goto err_irq;
is->alloc_ctx = vb2_dma_contig_init_ctx(dev);
if (IS_ERR(is->alloc_ctx)) {
if (ret < 0)
goto err_dfs;
- pm_runtime_put_sync(dev);
+ pm_runtime_enable(dev);
dev_dbg(dev, "FIMC-IS registered successfully\n");
return 0;