Skip to content

Commit

Permalink
arm: mxs: include asm/processor.h for cpu_relax()
Browse files Browse the repository at this point in the history
I get this build error as of today:

arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1

Looks like it has been indirectly included before which broke now.
Include it directly.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Wolfram Sang authored and Sascha Hauer committed Jun 6, 2011
1 parent 55922c9 commit ad377c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-mxs/ocotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <linux/err.h>
#include <linux/mutex.h>

#include <asm/processor.h> /* for cpu_relax() */

#include <mach/mxs.h>

#define OCOTP_WORD_OFFSET 0x20
Expand Down

0 comments on commit ad377c6

Please sign in to comment.