fbdev: mb862xxfb: Fix defined but not used error
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Feb 2024 11:50:10 +0000 (22:50 +1100)
committerHelge Deller <deller@gmx.de>
Fri, 15 Mar 2024 09:01:27 +0000 (10:01 +0100)
commit974191720ae76ba3613c4aa2301c297b4de27e46
treebc0438f56093ed06259d65c9eed9d83195becbb5
parent748c7ebac8dbcf54c2840a9a74fc9efeb4d76b7f
fbdev: mb862xxfb: Fix defined but not used error

socrates_gc_mode is defined at the top-level but then only used inside
an #ifdef CONFIG_FB_MB862XX_LIME, leading to an error with some configs:

  drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:36:31: error: ‘socrates_gc_mode’ defined but not used
     36 | static struct mb862xx_gc_mode socrates_gc_mode = {

Fix it by moving socrates_gc_mode inside that ifdef, immediately prior
to the only function where it's used.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c