Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f5f62f4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Fix DMA API warning while dma_buf_map_attachment()"

parents e8cea776 df111e33
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5096,6 +5096,12 @@ int kgsl_device_platform_probe(struct kgsl_device *device)
	if (status)
		goto error_close_mmu;

	/* Allocate memory for dma_parms and set the max_seg_size */
	device->dev->dma_parms =
		kzalloc(sizeof(*device->dev->dma_parms), GFP_KERNEL);

	dma_set_max_seg_size(device->dev, KGSL_DMA_BIT_MASK);

	/* Initialize the memory pools */
	kgsl_init_page_pools(device->pdev);

@@ -5159,6 +5165,9 @@ void kgsl_device_platform_remove(struct kgsl_device *device)
{
	destroy_workqueue(device->events_wq);

	kfree(device->dev->dma_parms);
	device->dev->dma_parms = NULL;

	kgsl_device_snapshot_close(device);

	kgsl_exit_page_pools();