From patchwork Tue Feb 9 05:00:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 61502 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1832151lbl; Mon, 8 Feb 2016 21:05:01 -0800 (PST) X-Received: by 10.98.67.149 with SMTP id l21mr47385066pfi.112.1454994301070; Mon, 08 Feb 2016 21:05:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si24696453par.45.2016.02.08.21.04.58; Mon, 08 Feb 2016 21:05:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756632AbcBIFEy (ORCPT + 30 others); Tue, 9 Feb 2016 00:04:54 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35394 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753222AbcBIFCN (ORCPT ); Tue, 9 Feb 2016 00:02:13 -0500 Received: by mail-pa0-f45.google.com with SMTP id ho8so85231997pac.2 for ; Mon, 08 Feb 2016 21:02:13 -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:in-reply-to:references :in-reply-to:references; bh=19rr7DdgLGNELXRfnZPqV5Fj137xaG9XLb354zU2JIE=; b=KhU0FqY7a9irak9AvstRfrj0pQVvJVovJDF7DVVtmT3eRFax0X7J9lZCd/4mJSFlAF 44AVlw0Lu4mF82oCTV70PnWpx+6n3sDz6UTxretsEuVKMYTLNCY3crWvHVxa3lycD8Hx BdvL7Xg4uxMKqKIgZEiOHdSrrMgdMDJlPtGyc= 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:in-reply-to :references:in-reply-to:references; bh=19rr7DdgLGNELXRfnZPqV5Fj137xaG9XLb354zU2JIE=; b=O3rl8ixmiWQswX5xLf4V7QYAJRFbIIVAh4o3OFloYojwbMRH6wFqzqn/B9tSZryweb SLiveH0geRGFPHaFAz3KVJi/8baRQ7bkguRbykiH0aRDoWPF4U+1c5y8shIBwhRtutP/ gC9gY34kn94Ftdy+0i1RJshnQckroQuwKcaMS3IIhQDZZUb5CkyYsaU1TRuNid/bM4km Bln/slSV9vPjoeccXRfPAPydlC8iJPlVnfibNF9WFyVNRA1o9yJe68Z2LR7mT8ZkvtAM cG8+9+5S4aOmpBWGgRP94bAfyBFqNKVxkal6kvtI982faJD6bXG9Qit7ArZDdSWf8+gf jO4A== X-Gm-Message-State: AG10YOTG/fzgv8WrXmz4ih6DjFTK+BjCWKHtchSpQefKAJUZVHEIJ20FU0sjFH2URaJu7a4g X-Received: by 10.66.159.161 with SMTP id xd1mr36591391pab.104.1454994133198; Mon, 08 Feb 2016 21:02:13 -0800 (PST) Received: from localhost ([122.172.22.246]) by smtp.gmail.com with ESMTPSA id v66sm41947559pfi.56.2016.02.08.21.02.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 21:02:12 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V3 12/16] cpufreq: dt: Unsupported OPPs are already disabled Date: Tue, 9 Feb 2016 10:30:44 +0530 Message-Id: <8289810f97c9350ccb49bbb5b1736d4a5ce1b5fd.1454992187.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.370.gb2aa7f8 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The core already have a valid regulator set for the device opp and the unsupported OPPs are already disabled by the core. There is no need to repeat that in the user drivers, get rid of it. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/cpufreq/cpufreq-dt.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.1.370.gb2aa7f8 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 2af75f8088bb..c3fe89461ff4 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -349,8 +349,6 @@ static int cpufreq_init(struct cpufreq_policy *policy) min_uV = opp_uV; if (opp_uV > max_uV) max_uV = opp_uV; - } else { - dev_pm_opp_disable(cpu_dev, opp_freq); } opp_freq++;