From patchwork Thu Feb 28 19:37:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 2199421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 859BC3FD4E for ; Thu, 28 Feb 2013 19:40:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UB9I2-0007lZ-FQ; Thu, 28 Feb 2013 19:37:14 +0000 Received: from mail.active-venture.com ([67.228.131.205]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UB9Hz-0007lI-PO for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2013 19:37:12 +0000 Received: (qmail 57129 invoked by uid 399); 28 Feb 2013 19:37:08 -0000 X-Virus-Scan: Scanned by ClamAV 0.97.2 (no viruses); Thu, 28 Feb 2013 13:37:08 -0600 Received: from unknown (HELO localhost) (guenter@roeck-us.net@108.223.40.66) by mail.active-venture.com with ESMTPAM; 28 Feb 2013 19:37:08 -0000 X-Originating-IP: 108.223.40.66 X-Sender: guenter@roeck-us.net From: Guenter Roeck To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] mfd: Fix AB8500 build failure if POWER_SUPPLY is not configured Date: Thu, 28 Feb 2013 11:37:09 -0800 Message-Id: <1362080229-27334-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.7.9.7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130228_143711_919095_9DF02A72 X-CRM114-Status: UNSURE ( 7.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Linus Walleij , Samuel Ortiz , Guenter Roeck , Srinidhi Kasagar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org ab8500-sysctrl.c fails to build if POWER_SUPPLY is not configured. drivers/built-in.o: In function `ab8500_power_off': drivers/mfd/ab8500-sysctrl.c:37: undefined reference to `power_supply_get_by_name' drivers/mfd/ab8500-sysctrl.c:53: undefined reference to `power_supply_get_by_name' Select POWER_SUPPLY in Kconfig if AB8500_CORE is configured to fix the problem. Signed-off-by: Guenter Roeck --- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 671f5b1..d5511de 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -860,6 +860,7 @@ config AB8500_CORE depends on GENERIC_HARDIRQS && ABX500_CORE && MFD_DB8500_PRCMU select MFD_CORE select IRQ_DOMAIN + select POWER_SUPPLY help Select this option to enable access to AB8500 power management chip. This connects to U8500 either on the SSP/SPI bus (deprecated