fbdev/core: Rework fb init code
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 13 Jun 2023 11:07:12 +0000 (13:07 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 07:58:51 +0000 (09:58 +0200)
commitff8fbcf605f59c5b7b82805c9f7a7dfe6abac784
tree446bfacd5d9ada6b12b78963f8ee3c84ad64e358
parent588b35634a5aabce1aef3297a048e42279f62dec
fbdev/core: Rework fb init code

Init the class "graphics" before the rest of fbdev. Later steps, such
as the sysfs code, depend on the class. Also arrange the module's exit
code in reverse order.

Unexport the global variable fb_class, which is only shared internally
within the fbdev core module.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-38-tzimmermann@suse.de
drivers/video/fbdev/core/fb_internal.h
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbmem.c
include/linux/fb.h