summaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32/mach-a3/io.c
diff options
context:
space:
mode:
authorStoyan Gaydarov <sgayda2@uiuc.edu>2009-07-22 05:02:33 +0200
committerJesper Nilsson <jesper.nilsson@axis.com>2009-09-01 17:38:50 +0200
commit62f589c5e391dc2081db42e801382304c652e43a (patch)
tree352e8d8360daf26cd70aa890c05b9090c883bad3 /arch/cris/arch-v32/mach-a3/io.c
parentCRIS: convert to asm-generic/hardirq.h (diff)
downloadlinux-62f589c5e391dc2081db42e801382304c652e43a.tar.xz
linux-62f589c5e391dc2081db42e801382304c652e43a.zip
ARRAY_SIZE changes
These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32/mach-a3/io.c')
-rw-r--r--arch/cris/arch-v32/mach-a3/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/mach-a3/io.c b/arch/cris/arch-v32/mach-a3/io.c
index c22f67ecd9f3..090ceb99ef0b 100644
--- a/arch/cris/arch-v32/mach-a3/io.c
+++ b/arch/cris/arch-v32/mach-a3/io.c
@@ -36,7 +36,7 @@ struct crisv32_ioport crisv32_ioports[] = {
},
};
-#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
+#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
struct crisv32_iopin crisv32_led_net0_green;
struct crisv32_iopin crisv32_led_net0_red;