ARM: OMAP2+: Fix build for omap4 only builds with missing include of linux/bug.h
authorTony Lindgren <tony@atomide.com>
Thu, 8 Mar 2012 18:20:14 +0000 (10:20 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Mar 2012 18:48:12 +0000 (10:48 -0800)
Found few more with randconfig generated .configs:

In file included from arch/arm/mach-omap2/prm-regbits-34xx.h:17,
                 from arch/arm/mach-omap2/vc.c:18:
arch/arm/mach-omap2/prm2xxx_3xxx.h: In function ‘omap2_prm_read_mod_reg’:
arch/arm/mach-omap2/prm2xxx_3xxx.h:239: error: implicit declaration of function ‘WARN’

In file included from arch/arm/mach-omap2/powerdomain44xx.c:22:
arch/arm/mach-omap2/prm2xxx_3xxx.h: In function ‘omap2_prm_read_mod_reg’:
arch/arm/mach-omap2/prm2xxx_3xxx.h:239: error: implicit declaration of function ‘WARN’

This is because omap2_prm functions are currently just stubs for
omap4 only builds.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/powerdomain44xx.c
arch/arm/mach-omap2/vc.c

index a7880af4b3d9f18164e48e6497587a2ed45f24a3..601325b852a422c1c44cff441989ad42d1d8f9e9 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/io.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
+#include <linux/bug.h>
 
 #include "powerdomain.h"
 #include <plat/prcm.h>
index 175b7d86d86ac3673d926745dc67e42a4e0ad899..84da34f9a7cff598ab059a604fb3bf14ec5ddea4 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/init.h>
+#include <linux/bug.h>
 
 #include <plat/cpu.h>