Thread (50 messages) 50 messages, 6 authors, 2018-05-23

[PATCH] cpufreq: Add Kryo CPU scaling driver

From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2018-05-23 09:59:22
Also in: linux-arm-msm, linux-clk, linux-devicetree, linux-pm, lkml

On 23-05-18, 10:40, Russell King - ARM Linux wrote:
On Wed, May 23, 2018 at 12:05:24PM +0300, Ilia Lin wrote:
quoted
+	np = dev_pm_opp_of_get_opp_desc_node(cpu_dev);
+	if (IS_ERR(np))
+		return PTR_ERR(np);
...
quoted
+
+	pdev = platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
+	if (!IS_ERR(pdev))
Do you need to hold a reference to `np' here?
I am starting to feel bad for Ilia now. The problem is that there was
a lot of stuff wrong with the patch and even with so many reviewers it
wasn't easy to notice all the problems it had.

But you are right, this reference needs to be dropped.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help