linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / video / matrox / matroxfb_g450.c
index 4d610b4..c122d87 100644 (file)
@@ -59,7 +59,7 @@ static const struct mctl g450_controls[] =
        }, offsetof(struct matrox_fb_info, altout.tvo_params.testout) },
 };
 
-#define G450CTRLS ARRAY_SIZE(g450_controls)
+#define G450CTRLS (sizeof(g450_controls)/sizeof(g450_controls[0]))
 
 /* Return: positive number: id found
            -EINVAL:         id not found, return failure