aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/stifb.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-06-02 13:50:44 +0200
committerHelge Deller <deller@gmx.de>2022-06-04 15:47:03 +0200
commitcf936af790a3ef5f41ff687ec91bfbffee141278 (patch)
tree68e2577f3687ecdaf51f39b79f4405e4cd4cfb4c /drivers/video/fbdev/stifb.c
parentparisc: fix a crash with multicore scheduler (diff)
downloadlinux-dev-cf936af790a3ef5f41ff687ec91bfbffee141278.tar.xz
linux-dev-cf936af790a3ef5f41ff687ec91bfbffee141278.zip
parisc/stifb: Implement fb_is_primary_device()
Implement fb_is_primary_device() function, so that fbcon detects if this framebuffer belongs to the default graphics card which was used to start the system. Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # v5.10+
Diffstat (limited to '')
-rw-r--r--drivers/video/fbdev/stifb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c
index bebb2eea6448..38a861e22c33 100644
--- a/drivers/video/fbdev/stifb.c
+++ b/drivers/video/fbdev/stifb.c
@@ -1358,11 +1358,11 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
goto out_err3;
}
+ /* save for primary gfx device detection & unregister_framebuffer() */
+ sti->info = info;
if (register_framebuffer(&fb->info) < 0)
goto out_err4;
- sti->info = info; /* save for unregister_framebuffer() */
-
fb_info(&fb->info, "%s %dx%d-%d frame buffer device, %s, id: %04x, mmio: 0x%04lx\n",
fix->id,
var->xres,