summaryrefslogtreecommitdiff
path: root/src/mainboard/tyan/s2885/resourcemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/tyan/s2885/resourcemap.c')
-rw-r--r--src/mainboard/tyan/s2885/resourcemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/tyan/s2885/resourcemap.c b/src/mainboard/tyan/s2885/resourcemap.c
index bc2a8ba673..4a686020c8 100644
--- a/src/mainboard/tyan/s2885/resourcemap.c
+++ b/src/mainboard/tyan/s2885/resourcemap.c
@@ -259,7 +259,7 @@ static void setup_s2885_resource_map(void)
};
int max;
- max = sizeof(register_values)/sizeof(register_values[0]);
+ max = ARRAY_SIZE(register_values);
setup_resource_map(register_values, max);
}