git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cris: ARRAY_SIZE() cleanup
[pandora-kernel.git]
/
arch
/
cris
/
arch-v32
/
kernel
/
io.c
diff --git
a/arch/cris/arch-v32/kernel/io.c
b/arch/cris/arch-v32/kernel/io.c
index
dfbfcb8
..
a22a9e0
100644
(file)
--- a/
arch/cris/arch-v32/kernel/io.c
+++ b/
arch/cris/arch-v32/kernel/io.c
@@
-49,7
+49,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_led1_green;
struct crisv32_iopin crisv32_led1_red;