Skip to content

Commit

Permalink
ARM: omap2: include linux/errno.h in hwmod_reset
Browse files Browse the repository at this point in the history
The newly created omap_hwmod_reset.c is missing an
include of linux/errno.h in commit c02060d "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>
  • Loading branch information
Arnd Bergmann committed Feb 15, 2013
1 parent ebcfe0f commit 55ccb1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/omap_hwmod_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* 02110-1301 USA
*/
#include <linux/kernel.h>
#include <linux/errno.h>

#include <sound/aess.h>

Expand Down

0 comments on commit 55ccb1a

Please sign in to comment.