]> err.no Git - linux-2.6/blobdiff - drivers/video/macmodes.c
intelfb driver -- use the regular modedb table instead of the VESA
[linux-2.6] / drivers / video / macmodes.c
index de5a0f383600832ec8f216764827376b0e2f66d9..c0385c6f7db57fdac748e421e590ab10a6e58605 100644 (file)
@@ -380,10 +380,11 @@ int __init mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info,
     if (mode_option && !strncmp(mode_option, "mac", 3)) {
        mode_option += 3;
        db = mac_modedb;
-       dbsize = sizeof(mac_modedb)/sizeof(*mac_modedb);
+       dbsize = ARRAY_SIZE(mac_modedb);
     }
     return fb_find_mode(var, info, mode_option, db, dbsize,
                        &mac_modedb[DEFAULT_MODEDB_INDEX], default_bpp);
 }
 EXPORT_SYMBOL(mac_find_mode);
 
+MODULE_LICENSE("GPL");