From patchwork Wed Jun 29 14:30:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102073 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2183588qgy; Wed, 29 Jun 2016 07:30:22 -0700 (PDT) X-Received: by 10.98.15.212 with SMTP id 81mr12043356pfp.110.1467210622039; Wed, 29 Jun 2016 07:30:22 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk3si4654815pac.233.2016.06.29.07.30.19; Wed, 29 Jun 2016 07:30:22 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752073AbcF2OaS (ORCPT + 14 others); Wed, 29 Jun 2016 10:30:18 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:50578 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbcF2OaQ (ORCPT ); Wed, 29 Jun 2016 10:30:16 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0LaD2U-1blIuV04ly-00m48a; Wed, 29 Jun 2016 16:28:17 +0200 From: Arnd Bergmann To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse Cc: Arnd Bergmann , Courtney Cavin , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: qcom-smbb: add extcon dependency Date: Wed, 29 Jun 2016 16:30:02 +0200 Message-Id: <20160629143056.7405-1-arnd@arndb.de> X-Mailer: git-send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k List-ID: X-Mailing-List: linux-pm@vger.kernel.org Building the smbb driver without extcon results in a link failure: drivers/power/built-in.o: In function `smbb_usb_valid_handler': :(.text+0x3190): undefined reference to `extcon_set_cable_state_' drivers/power/built-in.o: In function `smbb_charger_probe': :(.text+0x3880): undefined reference to `devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to `devm_extcon_dev_register' This adds a Kconfig dependency. Signed-off-by: Arnd Bergmann Fixes: 56d7df8716b2 ("power: Add Qualcomm SMBB driver") --- drivers/power/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 -- 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/power/Kconfig b/drivers/power/Kconfig index 0f11a0f4c369..acd4a1524a1e 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -394,6 +394,7 @@ config CHARGER_QCOM_SMBB tristate "Qualcomm Switch-Mode Battery Charger and Boost" depends on MFD_SPMI_PMIC || COMPILE_TEST depends on OF + depends on EXTCON help Say Y to include support for the Switch-Mode Battery Charger and Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger