aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/modedb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/modedb.c')
-rw-r--r--drivers/video/modedb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 244a21adc3fe..26a1c618a205 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -500,7 +500,7 @@ int fb_find_mode(struct fb_var_screeninfo *var,
500 /* Set up defaults */ 500 /* Set up defaults */
501 if (!db) { 501 if (!db) {
502 db = modedb; 502 db = modedb;
503 dbsize = sizeof(modedb)/sizeof(*modedb); 503 dbsize = ARRAY_SIZE(modedb);
504 } 504 }
505 if (!default_mode) 505 if (!default_mode)
506 default_mode = &modedb[DEFAULT_MODEDB_INDEX]; 506 default_mode = &modedb[DEFAULT_MODEDB_INDEX];