fbdev: maxine: fix maxinefb_init() return value

A driver should return a negative error code on failure of its
module_init() function so that the system recognizes the failure.
Change the "return 1" to "return -ENODEV".

Suggested-by: sashiko-bot@kernel.org
Link: https://sashiko.dev/#/patchset/20260809234810.982500-1-rdunlap@infradead.org?part=1
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Randy Dunlap
2026-08-13 19:56:40 -07:00
committed by Helge Deller
parent 3adec5c640
commit c761c0400f

View File

@@ -160,7 +160,7 @@ static int __init maxinefb_init(void)
fb_alloc_cmap(&fb_info.cmap, 256, 0);
if (register_framebuffer(&fb_info) < 0)
return 1;
return -ENODEV;
return 0;
}