From patchwork Mon Jan 25 15:48:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101120 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1435564lbb; Mon, 25 Jan 2016 07:49:26 -0800 (PST) X-Received: by 10.98.13.195 with SMTP id 64mr26688560pfn.164.1453736966140; Mon, 25 Jan 2016 07:49:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yy7si18341982pac.211.2016.01.25.07.49.25; Mon, 25 Jan 2016 07:49:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932992AbcAYPtU (ORCPT + 30 others); Mon, 25 Jan 2016 10:49:20 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50213 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932967AbcAYPtO (ORCPT ); Mon, 25 Jan 2016 10:49:14 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0McAb5-1adt3K3V7n-00JYMS; Mon, 25 Jan 2016 16:48:37 +0100 From: Arnd Bergmann To: "Rafael J. Wysocki" , Pavel Machek , Len Brown Cc: linux-arm-kernel@lists.infradead.org, Jiri Kosina , Arnd Bergmann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: APM_EMULATION does not depend on PM Date: Mon, 25 Jan 2016 16:48:28 +0100 Message-Id: <1453736913-1959469-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:0qdSI8vJienfO1XPjHkVdG4QD15cUx6BIvsK/LADp+r+4yzoA9A R01sAizRCAEEW5RoNIe9JUGrK2IkD+WSViUudyVqAQxjRqiwPupjRMilQfVjtFki7hCKabB jp6YfJmkBaKsLCgCgAoB/vokLxWYHyWGYf/sABUGZV33bejZ+O8yC/rf7B2B+8lT7HscJ8H 7/1z27W/Ji7rkY/GWJaHw== X-UI-Out-Filterresults: notjunk:1; V01:K0:1bn8QGNKplc=:NyohGYeKgPsnQ/2cSfYJBT 2xONhsgvuEeN1EnUmTQSoeRYIok4dZg8b00Fdy5VXEkrbhmyWxhp3ZcBHZXt45mKkloliGEbf BNHhrCaWA9H3t1jjIMAO7Z91TP4Vkw+KeagLhOixts8CGpRAcQ+itq/JoEClv9fSafX9BrMYe EO60kInwOhyDIoPbZq9XdCd5X6vitwRJpSoWvig1G4znlI3Mhf5ihZ+WDgTPjlYZhCLmou8oc DK4qB+SWTdVvNIP1qGjiZWSUAl1sdPtRSb+HgSyib2M3FW85GV5ip7fIIGJ8GVGdbWZYYcZ0S 6OndExJx49UggNaDtbKH7w+TGtubZ29Lw2DV4arN7G6oqKPeRnrmLe/OcbL7Qpwmwn0FVWs+q utAN/IqqFXmUqNrgHdkuVh8Pwmu2pi81JfcMKRFua1Z8YSNz5naMK+b5w9oian6Xqrs6p7F+g 42KbvJCI5YDQ3rhm5TBK3oRGjMYP3rF8Scwm3iZEGn9lqK33D3GgRkthoXjpnatnahMy6JMMT VkCjHbUJ+9l8GT6yKWFHHZZIdVEDqm0Pw9G69iNXTl/hjJzL7H4Xzj0HYrWoMJdH4OmBAQoju VgmwKR5dpqq6oSFZh3gV4MrzVG4G03H2kHoNsbqW7wv9e7RBn1TWZllpg9/vDOFld+wCxUNur fPrm2SFgoLDb0kET5DBJ1/WqGIbSB43CroyE+jxgHOojyPsSQUGnE8ArJwgcp/Qn/YLk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The APM emulation code does multiple things, and some of them depend on PM_SLEEP, while the battery management does not. However, selecting the symbol like SHARPSL_PM does causes a Kconfig warning: warning: (SHARPSL_PM && PMAC_APM_EMU) selects APM_EMULATION which has unmet direct dependencies (PM && SYS_SUPPORTS_APM_EMULATION) >From all I can tell, this is completely harmless, and we can simply allow APM_EMULATION to be enabled here, even if PM is not. Signed-off-by: Arnd Bergmann --- kernel/power/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 02e8dfaa1ce2..68d3ebc12601 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig @@ -235,7 +235,7 @@ config PM_TRACE_RTC config APM_EMULATION tristate "Advanced Power Management Emulation" - depends on PM && SYS_SUPPORTS_APM_EMULATION + depends on SYS_SUPPORTS_APM_EMULATION help APM is a BIOS specification for saving power using several different techniques. This is mostly useful for battery powered laptops with