[PATCH 4/4] arm: omap: clockdomain: fix compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If building OMAP4-only kernel, we will see
the following compile error:

arch/arm/mach-omap2/clockdomain.c: In function '_enable_hwsup':
arch/arm/mach-omap2/clockdomain.c:251:18: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c:254:18: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c: In function '_disable_hwsup':
arch/arm/mach-omap2/clockdomain.c:277:12: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c:280:12: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c: In function 'omap2_clkdm_sleep':
arch/arm/mach-omap2/clockdomain.c:744:17: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c: In function 'omap2_clkdm_wakeup':
arch/arm/mach-omap2/clockdomain.c:789:18: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c: In function 'omap2_clkdm_clk_enable':
arch/arm/mach-omap2/clockdomain.c:922:13: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c:926:15: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c: In function
'omap2_clkdm_clk_disable':
arch/arm/mach-omap2/clockdomain.c:994:13: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
arch/arm/mach-omap2/clockdomain.c:998:15: error: 'struct clockdomain'
has no member named 'clktrctrl_mask'
make[1]: *** [arch/arm/mach-omap2/clockdomain.o] Error 1

Fix it.

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 arch/arm/mach-omap2/clockdomain.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h
index de3faa2..092256d 100644
--- a/arch/arm/mach-omap2/clockdomain.h
+++ b/arch/arm/mach-omap2/clockdomain.h
@@ -103,7 +103,8 @@ struct clockdomain {
 		const char *name;
 		struct powerdomain *ptr;
 	} pwrdm;
-#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
+#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
+	defined(CONFIG_ARCH_OMAP4)
 	const u16 clktrctrl_mask;
 #endif
 	const u8 flags;
-- 
1.7.3.4.598.g85356

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux