Some random optimization and fixes I came up with while looking at efifb.c. I can't get the efifb driver to probe on my hardware, so this is only compile-tested. If somebody could actually test it, that would be great. Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> --- Thomas Weißschuh (5): fbdev/efifb: Use stack memory for screeninfo structs fbdev/efifb: Register sysfs groups through driver core fbdev: Introduce devm_register_framebuffer() fbdev/efifb: Use devm_register_framebuffer() fbdev/efifb: Use driver-private screen_info for sysfs drivers/video/fbdev/core/fbmem.c | 24 +++++++++++++++ drivers/video/fbdev/efifb.c | 63 +++++++++++++++------------------------- include/linux/fb.h | 1 + 3 files changed, 49 insertions(+), 39 deletions(-) --- base-commit: 3e9bff3bbe1355805de919f688bef4baefbfd436 change-id: 20240827-efifb-sysfs-ea08d70c8c46 Best regards, -- Thomas Weißschuh <linux@xxxxxxxxxxxxxx>