From patchwork Tue Dec 22 10:16:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 58855 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp3139837lbb; Tue, 22 Dec 2015 02:17:10 -0800 (PST) X-Received: by 10.66.90.194 with SMTP id by2mr34445311pab.2.1450779430238; Tue, 22 Dec 2015 02:17:10 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sw10si3585212pab.55.2015.12.22.02.17.09; Tue, 22 Dec 2015 02:17:10 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932337AbbLVKRJ (ORCPT + 11 others); Tue, 22 Dec 2015 05:17:09 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33075 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbbLVKRI (ORCPT ); Tue, 22 Dec 2015 05:17:08 -0500 Received: by mail-pa0-f41.google.com with SMTP id cy9so33025963pac.0 for ; Tue, 22 Dec 2015 02:17:08 -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=Bs76OugkEHWNzpLnGy/z98IcQFOC8crmegAamzNFg2o=; b=UJvuKP+F3TA5n9UvqFE5MN1jHUWNaEtKEHlEsSmRa4TJ6rmwhd2oxbdu8P2G9myQFx 9G8qHMe90t7HDLq+ZPjm3tNoJEP+UeKjkYq20DKy0mS9FLmTM1MgECx2nKtmtYSYi5ia RMHp8Weo650myF+JI48QOCGKUWvdhIB0zoH5E= 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=Bs76OugkEHWNzpLnGy/z98IcQFOC8crmegAamzNFg2o=; b=mx9pmBMUmzS9aVoO97Nkx06f5SyhXJXO3ijEmMpq1fUCLGryISbZrocxkOXCsw3EqW RtAoG8Bj4yp4AbnzL5reLB2JdTYwoFdC4Ffno86uce0YI4kRQsBBxUly+bo/hjkbSaQL b1iY8IAIW86Lwr1VcboJNji0rRrjQqUD0WvFiJ5KLLy4AvWoNc62F6hcb9Q3GL97JDBI Qxe5g6CImVQaf8KduuCFL1DyI91ACaVeSFZpT9FDZExycL1vfaCynlFRSwNkNdNtrg4O U2rqNbGMh66Ysi4ilhsRZtK5o957RDWOOdfjdrnrkv+Nh+LvW24m7EIZDolK39qAhUoP HVmA== X-Gm-Message-State: ALoCoQmb4GNFdxp4Y6ma/bK1IVxYXN/QPjDARV2uo/TQhhS574aZghxcx/9UnwMcmSGG+A+aKMUflTdYqDGw7/6euHRR1x3CFQ== X-Received: by 10.66.160.100 with SMTP id xj4mr34659990pab.14.1450779428016; Tue, 22 Dec 2015 02:17:08 -0800 (PST) Received: from localhost ([122.171.29.67]) by smtp.gmail.com with ESMTPSA id r193sm40232875pfr.65.2015.12.22.02.17.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 22 Dec 2015 02:17:07 -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 Subject: [PATCH 13/17] cpufreq: dt: Unsupported OPPs are already disabled Date: Tue, 22 Dec 2015 15:46:14 +0530 Message-Id: X-Mailer: git-send-email 2.7.0.rc1.186.g94414c4 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- drivers/cpufreq/cpufreq-dt.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.0.rc1.186.g94414c4 -- 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 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 39df4f1a06d2..8b6e55f62852 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -346,8 +346,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++;