From patchwork Mon Jun 2 07:29:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 31249 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9E6B5203C2 for ; Mon, 2 Jun 2014 07:30:11 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id hw13sf7386160qab.11 for ; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=y3uHodgiBflx7Exe8E5/ageg13fNMxM9dJjwrF69K/Q=; b=V2g6AysFQJL9lnHuCTr0D5Xwq2j2dKcvt8WIfiy57tscoAdt4cflZT7NkCE6UP5Gme 7ZO2+2vguY/mOdb/SxpMAAZFBl99jKIPBZ85xgDV4Smz2Eo6vlkKesCJwPojRiuUjXfe kFRghSJGPxw09B0I5FUdaKD1jgGLGl20ZhHaaWBnr7kzRjimW6o5B6Ao8gbM2e9bVIIA AfhCOguftTvISkGzGcpc9fUtWobrHWOCDwuEnIxWjfraYyWWZUibg2yMwAr9e3OiBbtf 7qEwBiaWHNWw5gkvmnTWnBMzm8d83mieo/+8R3d4QtAepbWBzf9bRj+QOS5WZmccxeDG jnjw== X-Gm-Message-State: ALoCoQlhuiYKc8SsEBzH58vZnGwrlVwF3SUVj3mwb/qrO7DQtn7TVvsHiIS9KFoGGmNcGnBrtVVZ X-Received: by 10.224.73.138 with SMTP id q10mr1755638qaj.4.1401694211398; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.4 with SMTP id 4ls1856722qgy.39.gmail; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) X-Received: by 10.58.161.168 with SMTP id xt8mr28200145veb.25.1401694211231; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id so6si7481540vdb.76.2014.06.02.00.30.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 00:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so1713013vcb.8 for ; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) X-Received: by 10.52.227.138 with SMTP id sa10mr23992281vdc.25.1401694211094; Mon, 02 Jun 2014 00:30:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp77640vcb; Mon, 2 Jun 2014 00:30:10 -0700 (PDT) X-Received: by 10.68.216.101 with SMTP id op5mr38681382pbc.148.1401694210204; Mon, 02 Jun 2014 00:30:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zz3si15050496pac.115.2014.06.02.00.30.09; Mon, 02 Jun 2014 00:30:09 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796AbaFBH36 (ORCPT + 28 others); Mon, 2 Jun 2014 03:29:58 -0400 Received: from mail-qa0-f43.google.com ([209.85.216.43]:33850 "EHLO mail-qa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbaFBH3z (ORCPT ); Mon, 2 Jun 2014 03:29:55 -0400 Received: by mail-qa0-f43.google.com with SMTP id m5so2230436qaj.30 for ; Mon, 02 Jun 2014 00:29:55 -0700 (PDT) X-Received: by 10.224.14.79 with SMTP id f15mr46792671qaa.96.1401694194927; Mon, 02 Jun 2014 00:29:54 -0700 (PDT) Received: from localhost (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id b5sm7878022qgb.16.2014.06.02.00.29.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Jun 2014 00:29:54 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arvind.chauhan@arm.com, edubezval@gmail.com, pavel@ucw.cz, lgirdwood@gmail.com, broonie@kernel.org, Viresh Kumar , Shawn Guo Subject: [PATCH V2 3/3] cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR Date: Mon, 2 Jun 2014 12:59:25 +0530 Message-Id: <97a2a7989c62d34763d34f4a996718bbb97cb082.1401693980.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> References: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> In-Reply-To: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> References: <788accde56086078d69d3eba0d913114315de43a.1401693980.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , cpufreq-cpu0 uses thermal framework to register a cooling device, but doesn't depend on it as there are dummy calls provided by thermal layer when CONFIG_THERMAL=n. And when these calls fail, the driver is still usable. Similar explanation is valid for regulators as well. We do have dummy calls available for regulator APIs and the driver can work even when those calls fail. So, we don't really need to mention thermal and regulators as a dependency for cpufreq-cpu0 in Kconfig. Remove it. Cc: Shawn Guo Signed-off-by: Viresh Kumar --- V1->V2: No change. drivers/cpufreq/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 1fbe11f..e473d65 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -185,7 +185,7 @@ config CPU_FREQ_GOV_CONSERVATIVE config GENERIC_CPUFREQ_CPU0 tristate "Generic CPU0 cpufreq driver" - depends on HAVE_CLK && REGULATOR && OF && THERMAL && CPU_THERMAL + depends on HAVE_CLK && OF select PM_OPP help This adds a generic cpufreq driver for CPU0 frequency management.