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

Commit 55ef9593 authored by Liam Mark's avatar Liam Mark
Browse files

ion: msm: set dma ops for ion devices



Since of_platform_device_create_pdata no longer results in
of_dma_configure being called make an explicit call to
of_dma_configure for ion devices to ensure their dma ops
are set.

Change-Id: Ia7ad054ca25c0e5b0e9e6d8dd5adaffb86e74fa3
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent b57ff724
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -543,6 +543,7 @@ static struct ion_platform_data *msm_ion_parse_dt(struct platform_device *pdev)
			pr_err("Failed to create device %s\n", node->name);
			goto free_heaps;
		}
		of_dma_configure(&new_dev->dev, node);

		pdata->heaps[idx].priv = &new_dev->dev;
		val = of_get_address(node, 0, NULL, NULL);