]> err.no Git - linux-2.6/blobdiff - drivers/video/modedb.c
intelfb driver -- use the regular modedb table instead of the VESA
[linux-2.6] / drivers / video / modedb.c
index 244a21adc3fe2ea442d63c3eeac24cf7c4915011..26a1c618a20521700ea966cefc5c6d09a930f939 100644 (file)
@@ -500,7 +500,7 @@ int fb_find_mode(struct fb_var_screeninfo *var,
     /* Set up defaults */
     if (!db) {
        db = modedb;
-       dbsize = sizeof(modedb)/sizeof(*modedb);
+       dbsize = ARRAY_SIZE(modedb);
     }
     if (!default_mode)
        default_mode = &modedb[DEFAULT_MODEDB_INDEX];