diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-05 16:14:10 -0800 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-08 16:08:25 +1100 |
commit | 2366fb16abcd8dea96820d3cb4f1de3a868d268c (patch) | |
tree | 9e1514ad01f3258c29dd6dad1c1ebfe4c35f649a /arch/ppc/syslib | |
parent | 3839a5943977674d224cca541fd0914b942aa466 (diff) | |
download | blackbird-obmc-linux-2366fb16abcd8dea96820d3cb4f1de3a868d268c.tar.gz blackbird-obmc-linux-2366fb16abcd8dea96820d3cb4f1de3a868d268c.zip |
[POWERPC] PPC: 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>
Acked-by: Kumar Gala <galak@gate.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/m8xx_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/syslib/m8xx_setup.c b/arch/ppc/syslib/m8xx_setup.c index d8d299bd1a12..01e48d88f22d 100644 --- a/arch/ppc/syslib/m8xx_setup.c +++ b/arch/ppc/syslib/m8xx_setup.c @@ -77,7 +77,7 @@ static struct mtd_partition mpc8xxads_partitions[] = { } }; -#define mpc8xxads_part_num (sizeof (mpc8xxads_partitions) / sizeof (mpc8xxads_partitions[0])) +#define mpc8xxads_part_num ARRAY_SIZE(mpc8xxads_partitions) #endif |