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

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

Merge "drivers: thermal: cpu_voltage: Use the child device node"

parents 7965554b 83d14255
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -227,12 +227,11 @@ static struct cc_limits_data *opp_init(int *cpus)
	return ERR_PTR(-ENODEV);
}

static int cc_init(struct device *dev, int *cpus)
static int cc_init(struct device_node *np, int *cpus)
{
	struct cc_limits_data *cc_cdev;
	int idx = 0, ret = 0;
	struct cpufreq_policy *policy;
	struct device_node *np = dev->of_node;

	mutex_lock(&cc_list_lock);
	list_for_each_entry(cc_cdev, &cc_cdev_list, node) {
@@ -323,7 +322,7 @@ static int cc_cooling_probe(struct platform_device *pdev)
				}
			}
		}
		ret = cc_init(dev, cpu_map);
		ret = cc_init(subsys_np, cpu_map);
	}

	return ret;