Skip to content

Commit d5d6b73

Browse files
committed
Merge: drm/fbdev-generic: Fix framebuffer on big endian devices
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4645 JIRA: https://issues.redhat.com/browse/RHEL-45158 Fix framebuffer text console on big endian hosts (s390x) Signed-off-by: Thomas Huth <thuth@redhat.com> Approved-by: Javier Martinez Canillas <javierm@redhat.com> Approved-by: Cédric Le Goater <clg@redhat.com> Approved-by: Jocelyn Falempe <jfalempe@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents ec5164c + d0533bf commit d5d6b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/drm_fbdev_generic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ static int drm_fbdev_generic_helper_fb_probe(struct drm_fb_helper *fb_helper,
8484
sizes->surface_width, sizes->surface_height,
8585
sizes->surface_bpp);
8686

87-
format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth);
87+
format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp,
88+
sizes->surface_depth);
8889
buffer = drm_client_framebuffer_create(client, sizes->surface_width,
8990
sizes->surface_height, format);
9091
if (IS_ERR(buffer))

0 commit comments

Comments
 (0)