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
apm_power: calculate to_full/to_empty time using energy
[pandora-kernel.git]
/
arch
/
mips
/
arc
/
identify.c
diff --git
a/arch/mips/arc/identify.c
b/arch/mips/arc/identify.c
index
3ba7c47
..
4b90736
100644
(file)
--- a/
arch/mips/arc/identify.c
+++ b/
arch/mips/arc/identify.c
@@
-77,7
+77,7
@@
static struct smatch * __init string_to_mach(const char *s)
{
int i;
- for (i = 0; i <
(sizeof(mach_table) / sizeof (mach_table[0])
); i++) {
+ for (i = 0; i <
ARRAY_SIZE(mach_table
); i++) {
if (!strcmp(s, mach_table[i].arcname))
return &mach_table[i];
}