]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/xmon/spu-opc.c
Merge branch 'platforms' of git://git.linaro.org/people/rmk/linux-arm
[karo-tx-linux.git] / arch / powerpc / xmon / spu-opc.c
index efffde9edc6e1ddb50620bf6e77b21904129f4a3..7d37597c4bcdd2752f3b443c17158d52120142fc 100644 (file)
@@ -18,6 +18,8 @@
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+#include <linux/kernel.h>
+#include <linux/bug.h>
 #include "spu.h"
 
 /* This file holds the Spu opcode table */
@@ -40,5 +42,4 @@ const struct spu_opcode spu_opcodes[] = {
 #undef APUOPFB
 };
 
-const int spu_num_opcodes =
-  sizeof (spu_opcodes) / sizeof (spu_opcodes[0]);
+const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);