ARM: OMAP2+: Fix build issues with missing include of linux/bug.h
authorTony Lindgren <tony@atomide.com>
Thu, 8 Mar 2012 01:28:01 +0000 (17:28 -0800)
committerOlof Johansson <olof@lixom.net>
Thu, 8 Mar 2012 01:29:34 +0000 (17:29 -0800)
Otherwise we can get the following if bug.h is not included from kernel.h:

arch/arm/mach-omap2/powerdomain-common.c:
In function 'omap2_pwrdm_get_mem_bank_onstate_mask':
arch/arm/mach-omap2/powerdomain-common.c:64:3: error:
implicit declaration of function 'WARN_ON' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/powerdomain-common.c
arch/arm/mach-omap2/powerdomain2xxx_3xxx.c
arch/arm/mach-omap2/powerdomains3xxx_data.c

index e25364de028a8ba7a1eb0f418177d7cdb7dee4d6..04d551b1f7f75fd43f91ed49abf1b017dfcf95e6 100644 (file)
@@ -43,6 +43,7 @@
 #include <linux/errno.h>
 #include <linux/clk.h>
 #include <linux/io.h>
+#include <linux/bug.h>
 
 #include <plat/clock.h>
 
index f97afff68d6dc172cbceff966ee6ead2820787d3..c0aeabfcf0091251b2f9893149f9482ac2c2f023 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <linux/errno.h>
 #include <linux/kernel.h>
+#include <linux/bug.h>
 #include "pm.h"
 #include "cm.h"
 #include "cm-regbits-34xx.h"
index 6a17e4ca1d793817a96f870e70a3b87e73d0ca8a..0f0a9f1592fea28acbfa723919196a7527e918de 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/io.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
+#include <linux/bug.h>
 
 #include <plat/prcm.h>
 
index 8ef26daeed68f966b64fb410e346dc073e940fe3..b7ea468eea326aa02537572139b9cc50da183b81 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/bug.h>
 
 #include <plat/cpu.h>