From patchwork Wed Nov 16 16:44:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9432191 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 416F060469 for ; Wed, 16 Nov 2016 16:46:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31D3728785 for ; Wed, 16 Nov 2016 16:46:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 260D628FC5; Wed, 16 Nov 2016 16:46:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 859D228785 for ; Wed, 16 Nov 2016 16:46:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c73Ka-0006r8-Lr; Wed, 16 Nov 2016 16:45:04 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c73KW-0006gN-GF for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2016 16:45:01 +0000 Received: by mail-pg0-x22e.google.com with SMTP id 3so80945361pgd.0 for ; Wed, 16 Nov 2016 08:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7ZyOiJ1CzQPv6GeNIsakkrwXOab/sFXb5ljr1cyKqN0=; b=r7QC4ht3VYGKpW7aCrjf7mfj+IPkTJWUkD9Oh/BE6g69IPgra1I5sHoidcva0zus/F EJhMNY+CcqfJXKKOGKx764iyc/aPKlSoiRAxrcNMuS5KKwJCISfkC+zNNyCcj/DOL/P9 SmVzPYdEw/rK9okInfBAM83gAWieclnB261/Ng/0ypOKJwX1n6nBYTAbmhNXfXqPrEz9 vlbw2zNRZ9vF7AtEj06FZq3dVHOftL+VvDO6d5K4q9c1KbTUoKT3IFVcWKu77O2Kxpbr /7q3O3mGC1jyTlENuw0nFzR9wSpbtVOCLv+2iV7IHutFfYGPEJXzgSC+bxkGB6w4+Fqk kxrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7ZyOiJ1CzQPv6GeNIsakkrwXOab/sFXb5ljr1cyKqN0=; b=QdgsTYTBK7gMX8XwmobKjQZnTPQk/zwDapnzlype9FpzR83kYwqnRJPBLiMVOTnuQE l5NyxJlbVAAmVP1AqXfUsVWgGD9MGPygXHC9cTR6W0pz5YORzBrqCG5w1D8QUAgLWQRh PP4xcgMsewFucvJwrcrc4iEU0Tm5JqfOT+7mamSO7yP+P0MwhQBaZuwe8/WsQmU+fKeE wJn2aDSlGprkEl1K+W4mPY7cgV47L4duLGrws0ILNAsRxeYHHHFApN5PAXbp0T4s2INl 0jVwDFc93jLFVdFx0SNmOSSFvoiHt8qT5YFvPlrbVpP/eMpEeogY+SYyrvFgny4zhb7H leaA== X-Gm-Message-State: ABUngvc16bep5Uc76IaHM+5jzWjenm/xC+B9lZv2a7R6RTUFjH8n/D4aZK+it3crD6GDxC5O X-Received: by 10.98.105.68 with SMTP id e65mr5801408pfc.10.1479314679448; Wed, 16 Nov 2016 08:44:39 -0800 (PST) Received: from localhost (c-98-203-232-209.hsd1.wa.comcast.net. [98.203.232.209]) by smtp.gmail.com with ESMTPSA id w125sm55516277pfb.8.2016.11.16.08.44.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 08:44:39 -0800 (PST) From: Kevin Hilman To: Sekhar Nori Subject: [PATCH] ARM: davinci: PM: fix build when da850 not compiled in Date: Wed, 16 Nov 2016 08:44:38 -0800 Message-Id: <20161116164438.9881-1-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161116_084500_621183_5DE799AD X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , Axel Haslam , David Lechner Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, suspend/resume support is only available on da850 platforms, and the platform PM code has dependencies on da850 functions. However, CONFIG_SUSPEND might be enabled even when da850 support is not, causing build failure: arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init': pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr' pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base' Fix this by only building the PM core when da850 is enabled. Reported-by: Sekhar Nori Fixes: aa9aa1ec2df6 ARM: davinci: PM: rework init, remove platform device Signed-off-by: Kevin Hilman --- arch/arm/mach-davinci/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile index da4c336b4637..0a2e6da45f28 100644 --- a/arch/arm/mach-davinci/Makefile +++ b/arch/arm/mach-davinci/Makefile @@ -36,5 +36,7 @@ obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o # Power Management obj-$(CONFIG_CPU_IDLE) += cpuidle.o -obj-$(CONFIG_SUSPEND) += pm.o sleep.o obj-$(CONFIG_HAVE_CLK) += pm_domain.o +ifeq ($(CONFIG_SUSPEND),y) +obj-$(CONFIG_ARCH_DAVINCI_DA850) += pm.o sleep.o +endif