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

Commit 9042e5df authored by Olav Haugan's avatar Olav Haugan
Browse files

staging: ion: msm: Only parse available dt nodes



ION is currently ignoring the status property of device tree
heap nodes. Make ION aware of the status of the ION heap nodes making
it possible to disable certain heaps.

Change-Id: I96e6af97df6bbd1c24ace9aa476baae28409ea96
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 7edbae3d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ static struct ion_platform_data *msm_ion_parse_dt(struct platform_device *pdev)
	uint32_t num_heaps = 0;
	int idx = 0;

	for_each_child_of_node(dt_node, node)
	for_each_available_child_of_node(dt_node, node)
		num_heaps++;

	if (!num_heaps)
@@ -598,7 +598,7 @@ static struct ion_platform_data *msm_ion_parse_dt(struct platform_device *pdev)
	pdata->heaps = heaps;
	pdata->nr = num_heaps;

	for_each_child_of_node(dt_node, node) {
	for_each_available_child_of_node(dt_node, node) {
		new_dev = of_platform_device_create(node, NULL, &pdev->dev);
		if (!new_dev) {
			pr_err("Failed to create device %s\n", node->name);