Skip to content

Commit 53a6e66

Browse files
committed
fbcon: Use fbcon_info_from_console() in fbcon_modechange_possible()
Use the fbcon_info_from_console() wrapper which was added to kernel v5.19 with commit 409d6c9 ("fbcon: Introduce wrapper for console->fb_info lookup"). Signed-off-by: Helge Deller <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]>
1 parent 6c11df5 commit 53a6e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/core/fbcon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ int fbcon_modechange_possible(struct fb_info *info, struct fb_var_screeninfo *va
27522752
for (i = first_fb_vc; i <= last_fb_vc; i++) {
27532753
vc = vc_cons[i].d;
27542754
if (!vc || vc->vc_mode != KD_TEXT ||
2755-
registered_fb[con2fb_map[i]] != info)
2755+
fbcon_info_from_console(i) != info)
27562756
continue;
27572757

27582758
if (vc->vc_font.width > FBCON_SWAP(var->rotate, var->xres, var->yres) ||

0 commit comments

Comments
 (0)