]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: omap2: include linux/errno.h in hwmod_reset
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Feb 2013 16:47:35 +0000 (17:47 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Feb 2013 12:36:47 +0000 (13:36 +0100)
The newly created omap_hwmod_reset.c is missing an
include of linux/errno.h in commit c02060d8 "ARM:
OMAP4+: AESS: enable internal auto-gating during
initial setup". It still works in omap2_defconfig,
but not in all other combinations.

Without this patch, building allmodconfig results in:

arch/arm/mach-omap2/omap_hwmod_reset.c: In function 'omap_hwmod_aess_preprogram':
arch/arm/mach-omap2/omap_hwmod_reset.c:47:11: error: 'EINVAL' undeclared (first use in this function)
arch/arm/mach-omap2/omap_hwmod_reset.c:47:11: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Sebastien Guiriec <s-guiriec@ti.com>
arch/arm/mach-omap2/omap_hwmod_reset.c

index bba43fa627d3c75a5f6ce3820152101782e4a991..65e186c9df55da7e5b662242ae8066430ded0e1d 100644 (file)
@@ -24,6 +24,7 @@
  * 02110-1301 USA
  */
 #include <linux/kernel.h>
+#include <linux/errno.h>
 
 #include <sound/aess.h>