From patchwork Fri Sep 4 23:32:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 7126651 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 669A1BEEC1 for ; Fri, 4 Sep 2015 23:33:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D366208B5 for ; Fri, 4 Sep 2015 23:33:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9C9F208B7 for ; Fri, 4 Sep 2015 23:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934105AbbIDXdL (ORCPT ); Fri, 4 Sep 2015 19:33:11 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:33983 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934078AbbIDXdK (ORCPT ); Fri, 4 Sep 2015 19:33:10 -0400 Received: by wicfx3 with SMTP id fx3so36316253wic.1; Fri, 04 Sep 2015 16:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=OQb2e0JCdggFuV5K1a+6zXMZ15fkWdKSERtyfksZh6c=; b=OyWKkeE2Z4wbxOXzyiUrUgTv6S8I8HuhC+/0DL7UEr7/VW31lAeuM2EoiN2ow+qjlW avsaxQA273gWMezpYwaODUhVkmKh3n9rErT9Lg0c02cAbf89zoqnniZCHRozmobSLMMT tZZwnzGDPSDgkvV/a3l22/QVUQ8PyByW6Sn/O2xXHOKZQiufA6tx/ESqHiaupPfRN0Q2 bLbtDzh2xtPqvOEDIBLniHDhAjQTwqg+4cLOgl+UNnk3KmAwhtvn25PbLDANW41ieUCS kEbkuh1+7Pf+7hYB4OwvciqdZlzX3cRb/ZX7qi224DHQuNLCVelaoKD/1acEf3bUl24y a4ow== X-Received: by 10.194.81.137 with SMTP id a9mr12274525wjy.155.1441409589039; Fri, 04 Sep 2015 16:33:09 -0700 (PDT) Received: from localhost.localdomain ([5.20.220.27]) by smtp.gmail.com with ESMTPSA id s9sm6710156wjy.16.2015.09.04.16.33.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 16:33:08 -0700 (PDT) From: Grazvydas Ignotas To: linux-pm@vger.kernel.org Cc: David Woodhouse , Dmitry Eremin-Solenikov , Sebastian Reichel , linux-omap@vger.kernel.org, Grazvydas Ignotas , NeilBrown Subject: [PATCH] twl4030_charger: fix another compile error Date: Sat, 5 Sep 2015 02:32:34 +0300 Message-Id: <1441409554-518-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_CHARGER_TWL4030=y and CONFIG_TWL4030_MADC=m we get a compile error: drivers/built-in.o: In function `twl4030_charger_update_current': twl4030_charger.c:(.text+0x504681): undefined reference to `twl4030_get_madc_conversion' Use IS_REACHABLE to fix it. Cc: NeilBrown Reported-by: Randy Dunlap Signed-off-by: Grazvydas Ignotas Acked-by: Tony Lindgren --- drivers/power/twl4030_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c index f4f2c1f..5bcc76f 100644 --- a/drivers/power/twl4030_charger.c +++ b/drivers/power/twl4030_charger.c @@ -91,7 +91,7 @@ #define TWL4030_MSTATEC_COMPLETE1 0x0b #define TWL4030_MSTATEC_COMPLETE4 0x0e -#if IS_ENABLED(CONFIG_TWL4030_MADC) +#if IS_REACHABLE(CONFIG_TWL4030_MADC) /* * If AC (Accessory Charger) voltage exceeds 4.5V (MADC 11) * then AC is available.