summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/link/i915io.c2
-rw-r--r--src/mainboard/lenovo/x60/i915io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/link/i915io.c b/src/mainboard/google/link/i915io.c
index f553accbb7..abceb05f1b 100644
--- a/src/mainboard/google/link/i915io.c
+++ b/src/mainboard/google/link/i915io.c
@@ -355,4 +355,4 @@ struct iodef iodefs[] = {
{I,},
};
-int niodefs = sizeof (iodefs) / sizeof (iodefs[0]);
+int niodefs = ARRAY_SIZE(iodefs);
diff --git a/src/mainboard/lenovo/x60/i915io.c b/src/mainboard/lenovo/x60/i915io.c
index 355286786a..b3c47b7b1e 100644
--- a/src/mainboard/lenovo/x60/i915io.c
+++ b/src/mainboard/lenovo/x60/i915io.c
@@ -2270,4 +2270,4 @@ struct iodef iodefs[] = {
{0,},
};
-int niodefs = sizeof(iodefs) / sizeof(iodefs[0]);
+int niodefs = ARRAY_SIZE(iodefs);