From patchwork Wed Sep 18 19:56:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 174002 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp100472ill; Wed, 18 Sep 2019 12:57:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2lAR7KRocuFMBrEYuCPNYgVZEIN4kwaTwWcQE+5SdSn+eHpfou0hpy752k2zzbXL0AiKD X-Received: by 2002:a50:d089:: with SMTP id v9mr12661473edd.54.1568836629430; Wed, 18 Sep 2019 12:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568836629; cv=none; d=google.com; s=arc-20160816; b=podRku6QSnVAHC7e14ZtxtXVLHgR84hVE7muu7gB9dM0ahXc293JRtKqZaqSXO6CeP u8Q4dtBtYpoYah2HDRGygjc1SJRuN2R22uGr7UnC4jddcLtNJn6ilW25BJr2UO0DqBb7 eLB+yLwPVHQIVLB5uqlzXKizFut8LfpmEFw4dbt8veDSpv25bfeP9ds+FaQyX6VFqBWq 81kRtKXS03UQQ0cU8Rdq29Akn3SCVnmBhyPrJC9ve4x4jPnouXI+ixhpmfoGIQDMvSxs 5/QgPxDOSnppwyJF+76oGlibwbpYChqIc8YrTv15k7c0zAu4whDdts7q+4r1bThIEbe+ 91vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Jt1/MHiw/GdL17THBIl6xwbjlxP5qWxpzE8Xnlvc2qE=; b=UMooDML0DUjBomKAjZotHIj8sHOPZN/LGZNwfR+SLWPyk8bPvJfr0APBZPbJDAse7p mI96W0r2fDhcSA2HEBExdwboC9NMJUuKm3Xi4DxkhtGof1T36bf0ZJPk+B5jsXRL7g4h +YJTzdCOqE9DU7nxvur2+h3St/PRoa+7MMrT+j5346DT6VwBpb9KrPCBqqWmtfWW++Gv PJRmTjb01IoGvOF9WrV0Ez+GRkq/LP/PrIt0LagN9wAPICTZzjoyTziJbD4g7HnD3/uk uJ6yLhxcXnwPtyRjuNfxFey+y4h1hKtyRiDadEusplY77s2VyzOdKMQ+u27yIoGihKgb pCjQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si1063018ejj.11.2019.09.18.12.57.09; Wed, 18 Sep 2019 12:57:09 -0700 (PDT) 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 S1732092AbfIRT5G (ORCPT + 26 others); Wed, 18 Sep 2019 15:57:06 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:35733 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732061AbfIRT5F (ORCPT ); Wed, 18 Sep 2019 15:57:05 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mdf3x-1hbcQw3R8z-00Zf3m; Wed, 18 Sep 2019 21:56:55 +0200 From: Arnd Bergmann To: Darren Hart , Andy Shevchenko Cc: Arnd Bergmann , Kristian Klausen , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: asus-wmi: add ACPI_BATTERY dependency Date: Wed, 18 Sep 2019 21:56:33 +0200 Message-Id: <20190918195652.2137765-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:O4l6j5E53fiS3NN7w2ynvgGmADBDg09qZ6Ikaebg4TXBbztuYwu ZJcxEY8zVsmmdUVpjTv4v71iGFcK0IjfTbmZDhwoWQTxgDRrBhf58rIMM0DP3w0jC6ifpWK ZP+2+pZO3r5IsFdJhur9hODjKZncOUkij/TqA5VOR8i8ct7LgtD1ub33RUDb5MJtdmshSt2 czNXVxTV2wKKtgskuF/vA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:liiCRNrxY+4=:Y1cLuZg1twLvNKlKtXbzw0 e9P0nXAdcBf63E1+/oCa/5cHEHsgfGbVorYdZypyghDrcRzC9f6S+BtC2EmcpGwiz7au9ih5D wDj2euRw2aUDZ5LIggIGXjPl4ra65mr2h9Naacb9GQkokoNnJd6NLnm1xyEzMtF2XDJNDpyBu VSqoBgnzF4A/j/QF1ekM3TnDfvVpj8y0WyeXdNcEQIE4Zkye9YnG4ag689NaupbkYAVTBz5sX GOzjOPNy4s5KoOYrOwEk2x6JT+i1l1pj/E5/jPFGsqmA7MRJOg4JD3odffxpdG16yI6of3fqy FjGMfCFG69UBzpm8G/5c7yGl0TTfWKSJvjeXdp+4UjogmRn6DEsGRr4RDU94nAa9Rz/MiQyoJ iddDLi8GgECx0JHwkfpne2nahd5z0ngv0WKjJPRA/UiLuHeudq5ieS+aOx/5rw6d7EsXlqfeH eYQ0CxPnOgiKrAASv07Mww4uqRb+Qs5JOtR9KWXZtcfJflPqHU5vqRDGkmeAGGXdpYL+vCFlz /+outmFmbTofWGHBDk98ios7oKhcxUMjmlrBLumWOHPF7iCU2NKFI778xUkbv6RAHFn0CsKwj iTLk46zpNPN6Bs5JlYjZ8rWI5iQFEp+l1GKRiCZcboVUPf6NUgRVfmZ6aEhL9w1EY3oQ3Nfq2 DVnkis4LUZAnV8hw1+xiaj31485nH0lhZMOYnpoAHXwyI5PPlGZ9EfreA5GMmE3U9Fple7e+Y jLUnLXU3u09QjzNtyad5lfwVmhVxy7Z9Sy/dGgoCG572w0Y2aZ1jwkp19KtlfhpdeViD9qYMd r+KLtk9ZnPbdD0rDTNsEn+BIZgbHs0JJMcrVoubONDW90bqhaBROnNPbkGbe6jnEUBVchxdZO NLy28pjecwaShHEVvtXg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this dependency, we can run into a link failure: drivers/platform/x86/asus-wmi.o: In function `asus_wmi_remove': asus-wmi.c:(.text+0x430): undefined reference to `battery_hook_unregister' drivers/platform/x86/asus-wmi.o: In function `asus_wmi_probe': asus-wmi.c:(.text+0x2c6f): undefined reference to `battery_hook_register' Fixes: 7973353e92ee ("platform/x86: asus-wmi: Refactor charge threshold to use the battery hooking API") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 1b67bb578f9f..d81de3f4f72e 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -680,6 +680,7 @@ config ASUS_WMI depends on RFKILL || RFKILL = n depends on HOTPLUG_PCI depends on ACPI_VIDEO || ACPI_VIDEO = n + depends on ACPI_BATTERY select INPUT_SPARSEKMAP select LEDS_CLASS select NEW_LEDS