diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-05 19:14:09 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-08 00:08:18 -0500 |
commit | 3839a5943977674d224cca541fd0914b942aa466 (patch) | |
tree | e680a69c5052e8746539ebc2e3561f62f92f0b50 /arch/powerpc/xmon/spu-opc.c | |
parent | 0524aad7b89671bc788d483b2c048ac7b79eefb9 (diff) |
[POWERPC] Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/xmon/spu-opc.c')
-rw-r--r-- | arch/powerpc/xmon/spu-opc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/xmon/spu-opc.c b/arch/powerpc/xmon/spu-opc.c index efffde9edc6e..530df3d6d7b2 100644 --- a/arch/powerpc/xmon/spu-opc.c +++ b/arch/powerpc/xmon/spu-opc.c | |||
@@ -18,6 +18,7 @@ | |||
18 | with this program; if not, write to the Free Software Foundation, Inc., | 18 | with this program; if not, write to the Free Software Foundation, Inc., |
19 | 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ | 19 | 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
20 | 20 | ||
21 | #include <linux/kernel.h> | ||
21 | #include "spu.h" | 22 | #include "spu.h" |
22 | 23 | ||
23 | /* This file holds the Spu opcode table */ | 24 | /* This file holds the Spu opcode table */ |
@@ -40,5 +41,4 @@ const struct spu_opcode spu_opcodes[] = { | |||
40 | #undef APUOPFB | 41 | #undef APUOPFB |
41 | }; | 42 | }; |
42 | 43 | ||
43 | const int spu_num_opcodes = | 44 | const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes); |
44 | sizeof (spu_opcodes) / sizeof (spu_opcodes[0]); | ||