From patchwork Thu Jan 28 08:20:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 60679 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp331533lbb; Thu, 28 Jan 2016 00:21:41 -0800 (PST) X-Received: by 10.98.9.147 with SMTP id 19mr2668849pfj.163.1453969300523; Thu, 28 Jan 2016 00:21:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v78si15335278pfa.239.2016.01.28.00.21.40; Thu, 28 Jan 2016 00:21:40 -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 S965513AbcA1IVi (ORCPT + 30 others); Thu, 28 Jan 2016 03:21:38 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35295 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965512AbcA1IVb (ORCPT ); Thu, 28 Jan 2016 03:21:31 -0500 Received: by mail-pf0-f175.google.com with SMTP id 65so19875048pfd.2 for ; Thu, 28 Jan 2016 00:21:30 -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=wwFHNt4p3tWeb1FXCIgaunAUPZMO7YspAhgDT7HMzWI=; b=fjjd0wSnbcf7d3Zpr8nDs7NSevOOGN/NcTFKfjnGeBUsk/n1WcULmgO5/MLQ/8ab2R mkKFOtqXVEHCNh4hEzxd34x321T08zSZI56v1/upMjlbgeWWUMqUFjb722ACd9S819NO LQhi6GuZR53+Ymicg9rqzaYrrjrWPUrCAGzdU= 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=wwFHNt4p3tWeb1FXCIgaunAUPZMO7YspAhgDT7HMzWI=; b=YqvCxb3togW9FPrTRONZIY/KBj/fHJYl4cUY3ueYH0gaKnWvkq841ShdGG1ZPdyT5X F4xM6sgGmtBsqqnQjUVHL6Xe4NEq+uZngU/uRSJUDAK61aQKA/G7/HlS+jO2bV0rTwAS BE+eVkivslF4xd6P3huJUxqU7uc17kapqMQoBdE3SwNQNGYKl+I2dWHQ9/IhLnJvsnsp Pq9FSVqQsMKQXtUvXeAia0Qx0KaeE5aaEfVz0WIxshQzLGEm+8IKlQPGmMn03CW4i7q3 sfn3R+TPlGsiiTSVRhRMVqZ0HKqIA1mqbzBe9S280S88Yt77GDdmr3OvxVf8P2wVC9nf E/MQ== X-Gm-Message-State: AG10YOR1yo23npbqZ0BVA4a+grrDbb9fhLF+XCHGESm5LKLR00Yz7SOzQFpFv6Z7fXvwQUFE X-Received: by 10.98.70.17 with SMTP id t17mr2609779pfa.107.1453969290617; Thu, 28 Jan 2016 00:21:30 -0800 (PST) Received: from localhost ([122.171.121.234]) by smtp.gmail.com with ESMTPSA id s19sm14187315pfs.62.2016.01.28.00.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2016 00:21:30 -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 V2 12/16] cpufreq: dt: Unsupported OPPs are already disabled Date: Thu, 28 Jan 2016 13:50:41 +0530 Message-Id: <7da08f86234eacc6bd15025500537302ce736fc9.1453965717.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.0.79.gdc08a19 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.0.79.gdc08a19 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 15637734986a..ca7a930ea283 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -373,8 +373,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++;