From patchwork Tue Jun 10 05:09:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 31606 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 91E9220675 for ; Tue, 10 Jun 2014 05:10:16 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id ij19sf15297905vcb.2 for ; Mon, 09 Jun 2014 22:10:16 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=supt/6wjGyMe5mwbbZiIcZ1kNtWl6mN21qjTdF2JsIc=; b=fOYE4BYlTdX4Ra8wTJ1F/PhjqOYsQMvL+Sc2nooEdrj/vW8XGQ8F4oMiOhV3YruLzj JFf4NrkbUbe/sHlZWIGC8EinZj1PTemOXX/6BgA6IlD+u675sBjYaB4//+oL90F8Jsjr 18vmw8Q7pl5fQeaOLrDr1acaRy9KPq9BYpa8AuWCJuT0dmGQdntZn+xh4fNzNUZg6dI8 QzLfD5UWJLiocw+wdrIXMuUPKkmJbaaTU2C5Mmi1i1+qCYPU8LoFAAtDf30sK1WpufXj FUNgQYx/yKsJ1tvHnSV89uEe7ThbwK0j4sn6QH7ClMHVOy6ntbK0IiyRXfiaKt50ixme D22w== X-Gm-Message-State: ALoCoQmhGmQaDKTIj9jNO+cShxfgfqdE4CmvFB0RBTY6QlUJlyRAZhOS6UNkRFZq9oSRT5hm2772 X-Received: by 10.58.34.47 with SMTP id w15mr128113vei.20.1402377016059; Mon, 09 Jun 2014 22:10:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.4 with SMTP id a4ls1959385qga.45.gmail; Mon, 09 Jun 2014 22:10:15 -0700 (PDT) X-Received: by 10.52.164.9 with SMTP id ym9mr25465896vdb.19.1402377015834; Mon, 09 Jun 2014 22:10:15 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id fw20si12668360vec.95.2014.06.09.22.10.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 22:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so2162945veb.40 for ; Mon, 09 Jun 2014 22:10:15 -0700 (PDT) X-Received: by 10.52.125.198 with SMTP id ms6mr24961616vdb.28.1402377015737; Mon, 09 Jun 2014 22:10:15 -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.221.54.6 with SMTP id vs6csp198326vcb; Mon, 9 Jun 2014 22:10:15 -0700 (PDT) X-Received: by 10.66.226.145 with SMTP id rs17mr2933175pac.144.1402377014856; Mon, 09 Jun 2014 22:10:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id td10si33068974pbc.38.2014.06.09.22.10.14; Mon, 09 Jun 2014 22:10:14 -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 S1754684AbaFJFJz (ORCPT + 27 others); Tue, 10 Jun 2014 01:09:55 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:52480 "EHLO mail-qc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbaFJFJx (ORCPT ); Tue, 10 Jun 2014 01:09:53 -0400 Received: by mail-qc0-f173.google.com with SMTP id l6so1658100qcy.4 for ; Mon, 09 Jun 2014 22:09:53 -0700 (PDT) X-Received: by 10.140.22.209 with SMTP id 75mr36110238qgn.4.1402376993118; Mon, 09 Jun 2014 22:09:53 -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 q5sm34031469qam.37.2014.06.09.22.09.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Jun 2014 22:09:52 -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, Viresh Kumar Subject: [PATCH V2 Resend] cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR Date: Tue, 10 Jun 2014 10:39:46 +0530 Message-Id: <8f87e99e52f1b1e15c71c02fb19b0df18e2ae6d7.1402376803.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 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.128.181 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 as platforms without support for thermal/regulator can also use this driver. Remove this dependency. Signed-off-by: Viresh Kumar --- Rafael, The dependency patches from regulators core are already pushed to Linus's tree and so this patch can go in now. 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.