|
@@ -204,9 +204,6 @@ static int fimc_is_register_subdevs(struct fimc_is *is)
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
- /* Initialize memory allocator context for the ISP DMA. */
|
|
|
|
- is->isp.alloc_ctx = is->alloc_ctx;
|
|
|
|
-
|
|
|
|
for_each_compatible_node(i2c_bus, NULL, FIMC_IS_I2C_COMPATIBLE) {
|
|
for_each_compatible_node(i2c_bus, NULL, FIMC_IS_I2C_COMPATIBLE) {
|
|
for_each_available_child_of_node(i2c_bus, child) {
|
|
for_each_available_child_of_node(i2c_bus, child) {
|
|
ret = fimc_is_parse_sensor_config(is, index, child);
|
|
ret = fimc_is_parse_sensor_config(is, index, child);
|
|
@@ -848,18 +845,13 @@ static int fimc_is_probe(struct platform_device *pdev)
|
|
goto err_pm;
|
|
goto err_pm;
|
|
|
|
|
|
vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32));
|
|
vb2_dma_contig_set_max_seg_size(dev, DMA_BIT_MASK(32));
|
|
- is->alloc_ctx = vb2_dma_contig_init_ctx(dev);
|
|
|
|
- if (IS_ERR(is->alloc_ctx)) {
|
|
|
|
- ret = PTR_ERR(is->alloc_ctx);
|
|
|
|
- goto err_pm;
|
|
|
|
- }
|
|
|
|
/*
|
|
/*
|
|
* Register FIMC-IS V4L2 subdevs to this driver. The video nodes
|
|
* Register FIMC-IS V4L2 subdevs to this driver. The video nodes
|
|
* will be created within the subdev's registered() callback.
|
|
* will be created within the subdev's registered() callback.
|
|
*/
|
|
*/
|
|
ret = fimc_is_register_subdevs(is);
|
|
ret = fimc_is_register_subdevs(is);
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
- goto err_vb;
|
|
|
|
|
|
+ goto err_pm;
|
|
|
|
|
|
ret = fimc_is_debugfs_create(is);
|
|
ret = fimc_is_debugfs_create(is);
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
@@ -878,8 +870,6 @@ err_dfs:
|
|
fimc_is_debugfs_remove(is);
|
|
fimc_is_debugfs_remove(is);
|
|
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_pm:
|
|
err_pm:
|
|
if (!pm_runtime_enabled(dev))
|
|
if (!pm_runtime_enabled(dev))
|
|
fimc_is_runtime_suspend(dev);
|
|
fimc_is_runtime_suspend(dev);
|
|
@@ -940,7 +930,6 @@ static int fimc_is_remove(struct platform_device *pdev)
|
|
fimc_is_runtime_suspend(dev);
|
|
fimc_is_runtime_suspend(dev);
|
|
free_irq(is->irq, is);
|
|
free_irq(is->irq, is);
|
|
fimc_is_unregister_subdevs(is);
|
|
fimc_is_unregister_subdevs(is);
|
|
- vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
|
|
|
|
vb2_dma_contig_clear_max_seg_size(dev);
|
|
vb2_dma_contig_clear_max_seg_size(dev);
|
|
fimc_is_put_clocks(is);
|
|
fimc_is_put_clocks(is);
|
|
fimc_is_debugfs_remove(is);
|
|
fimc_is_debugfs_remove(is);
|