From patchwork Thu Dec 1 10:42:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 86005 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp628252qgi; Thu, 1 Dec 2016 02:42:22 -0800 (PST) X-Received: by 10.99.237.69 with SMTP id m5mr67825955pgk.94.1480588942416; Thu, 01 Dec 2016 02:42:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si40226393plj.293.2016.12.01.02.42.22; Thu, 01 Dec 2016 02:42:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600AbcLAKmV (ORCPT + 13 others); Thu, 1 Dec 2016 05:42:21 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34373 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbcLAKmU (ORCPT ); Thu, 1 Dec 2016 05:42:20 -0500 Received: by mail-pf0-f171.google.com with SMTP id c4so45762955pfb.1 for ; Thu, 01 Dec 2016 02:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=IDI0OYt1amyKLV8WrIOpM9uezdQSTNWQ/OcmZFj/YnI=; b=iY4Zp2AqPrsnKIu9QrBf6BBkY7yEqyz9G43QY670MLEzwrftNn+FevYrOHMnpEyGT6 ET6uzS5wQ5lHhWju0AxVPex2nkKlsgTaIbNOW/MSF8bQSzaaj5rKcIZgHE8SPgyOrpU7 Q3NaKrEAhIsJkkS7mj921zptuTPyrRnqytJjE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IDI0OYt1amyKLV8WrIOpM9uezdQSTNWQ/OcmZFj/YnI=; b=HC+ZqzSPm/d1j+NjVEd5i0SmAWzZAnUjevfZAWZ6a28wzBom8uxO2NhS8Y5usYybgF 1HtUmO87Ykzntq37hJnf/dO0ZhyWH5qTr4npITvblVI0vbGhF7af+QApZXeok85Dg5J+ lJl0otoEE2Hg5Ui+izqDH0uyseEo01o03LIj8ddcYbkkJ8kQ6l1pIwsUpmHYHC1lAUta DEQgIB5zcM27IlZKypc+/bPH0QrYiFic+nAwfaPw3qEAmqPS3b5SVgjC+h6/kE8fgJEZ 3cj6GUr5+ghZWFzc1shN4xXlNygT+WqLX7ys4jwh6f2La4++SYhAW+mXIPFe2kGQfgOY SWxw== X-Gm-Message-State: AKaTC0224sr5kOjS8Zhn9YU6kcbMtvlMdfR3nemkkdc9OyDohFcqEQhEmlIgtZauNmaJl2Yj X-Received: by 10.99.230.83 with SMTP id p19mr66758952pgj.138.1480588940099; Thu, 01 Dec 2016 02:42:20 -0800 (PST) Received: from localhost ([122.172.143.30]) by smtp.gmail.com with ESMTPSA id t20sm109617025pfk.48.2016.12.01.02.42.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Dec 2016 02:42:19 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , MyungJoo Ham , Kyungmin Park Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Vincent Guittot , Viresh Kumar Subject: [PATCH] devfreq: rk3399_dmc: Remove dangling rcu_read_unlock() Date: Thu, 1 Dec 2016 16:12:14 +0530 Message-Id: <2958843865a6ed790ff9ecfc9cacd54d752cace5.1480588927.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This call never had the rcu_read_lock() counterpart. Remove the unlock part as well. Signed-off-by: Viresh Kumar --- drivers/devfreq/rk3399_dmc.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Chanwoo Choi diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 192240423fee..4cc5be08720a 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -408,7 +408,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; }