From: Peter Huewe <peterhuewe@gmx.de>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] shmobile/sh7372: Add missing CONFIG_PM guards to fix build failure
Date: Sat, 13 Aug 2011 22:34:01 +0000 [thread overview]
Message-ID: <1313274841-8322-1-git-send-email-peterhuewe@gmx.de> (raw)
This patch fixes a build failure with the ap4evb_defconfig by adding the
missing #ifdef CONFIG_PM.
The build failure was:
arch/arm/mach-shmobile/setup-sh7372.c:852: error: 'sh7372_a4lc'
undeclared (first use in this function)
arch/arm/mach-shmobile/setup-sh7372.c:852: error: (Each undeclared
identifier is reported only once
arch/arm/mach-shmobile/setup-sh7372.c:852: error: for each function it
appears in.)
sh7372_a4lc is declared in arch/arm/mach-shmobile/pm-sh7372.c within a
#ifdef CONFIG_PM block. Since the defconfig is missing CONFIG_PM this
results in a build failure.
KernelVersion: linux-next 20110812 (cab7d82)
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
arch/arm/mach-shmobile/setup-sh7372.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index df900bf..8455f0b 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -848,9 +848,9 @@ void __init sh7372_add_standard_devices(void)
sh7372_init_pm_domain(&sh7372_a3rv);
sh7372_init_pm_domain(&sh7372_a3ri);
sh7372_init_pm_domain(&sh7372_a3sg);
-
+#ifdef CONFIG_PM
pm_genpd_add_subdomain(&sh7372_a4lc.genpd, &sh7372_a3sg.genpd);
-
+#endif
platform_add_devices(sh7372_early_devices,
ARRAY_SIZE(sh7372_early_devices));
--
1.7.3.4
next reply other threads:[~2011-08-13 22:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-13 22:34 Peter Huewe [this message]
2011-08-13 23:55 ` [PATCH] shmobile/sh7372: Add missing CONFIG_PM guards to fix build failure Rafael J. Wysocki
2011-08-15 14:30 ` Peter Hüwe
2011-08-15 17:45 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313274841-8322-1-git-send-email-peterhuewe@gmx.de \
--to=peterhuewe@gmx.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox