UPSTREAM: devfreq: rk3399_dmc: Remove dangling rcu_read_unlock()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:42:14 +0000 (16:12 +0530)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 29 Mar 2017 02:42:52 +0000 (10:42 +0800)
This call never had the rcu_read_lock() counterpart. Remove the unlock
part as well.

Change-Id: Ifc5abfd7cea9a245b6edc0f50e362963ac045b7f
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit d8323de3d4062e1b5a5aa7e9c0f935138405a582)

drivers/devfreq/rk3399_dmc.c

index fe75121c8209e1d6814cef64a996a8f4474eb056..1e25c3441155a62bb5ed096187c1995c339baafc 100644 (file)
@@ -445,7 +445,6 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
         */
        if (dev_pm_opp_of_add_table(dev)) {
                dev_err(dev, "Invalid operating-points in device tree.\n");
-               rcu_read_unlock();
                return -EINVAL;
        }