X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fmatrox%2Fmatroxfb_g450.c;h=c122d8743dd2ced2344027cce6c82b3bc651298f;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=4d610b405d45cabf85bd4570f45e9fe7ec4682af;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/video/matrox/matroxfb_g450.c b/drivers/video/matrox/matroxfb_g450.c index 4d610b405..c122d8743 100644 --- a/drivers/video/matrox/matroxfb_g450.c +++ b/drivers/video/matrox/matroxfb_g450.c @@ -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