Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/fbdev-emulation: Remove support for legacy emulation

Remove the internal DRM client from fbdev emulation. This has been
required when some DRM drivers provided their own fbdev emulation.

This is no longer the case with commit b55f3bbab891 ("drm/{i915, xe}:
Implement fbdev emulation as in-kernel client") from 2024. Now there's
only a single DRM client for fbdev-emulation that fills out the client
callback functions as required.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patch.msgid.link/20260205144056.416759-1-tzimmermann@suse.de

-15
-15
drivers/gpu/drm/drm_fb_helper.c
··· 343 343 int drm_fb_helper_init(struct drm_device *dev, 344 344 struct drm_fb_helper *fb_helper) 345 345 { 346 - int ret; 347 - 348 - /* 349 - * If this is not the generic fbdev client, initialize a drm_client 350 - * without callbacks so we can use the modesets. 351 - */ 352 - if (!fb_helper->client.funcs) { 353 - ret = drm_client_init(dev, &fb_helper->client, "drm_fb_helper", NULL); 354 - if (ret) 355 - return ret; 356 - } 357 - 358 346 dev->fb_helper = fb_helper; 359 347 360 348 return 0; ··· 425 437 cancel_work_sync(&fb_helper->damage_work); 426 438 427 439 drm_fb_helper_release_info(fb_helper); 428 - 429 - if (!fb_helper->client.funcs) 430 - drm_client_release(&fb_helper->client); 431 440 } 432 441 EXPORT_SYMBOL(drm_fb_helper_fini); 433 442