]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: fbtft: Fix build failure when CONFIG_FB_DEVICE=n
authorChintan Patel <chintanlike@gmail.com>
Thu, 22 Jan 2026 03:16:34 +0000 (19:16 -0800)
committerHelge Deller <deller@gmx.de>
Sat, 14 Feb 2026 10:09:47 +0000 (11:09 +0100)
commitbe26a07c61af5fe8eafbd3d172d4b6ab726d99d0
tree5a04f8cf9f37205b5ced695c198b6726b531d5db
parentcbfb9c715f33a07a46d577fe8d62869eb6363064
staging: fbtft: Fix build failure when CONFIG_FB_DEVICE=n

When CONFIG_FB_DEVICE is disabled, struct fb_info does
not provide a valid dev pointer. Direct dereferences of
fb_info->dev therefore result in build failures.

Fix this by avoiding direct accesses to fb_info->dev and
switching the affected debug logging to framebuffer helpers
that do not rely on a device pointer.

This fixes the following build failure reported by the
kernel test robot.

Fixes: a06d03f9f238 ("staging: fbtft: Make FB_DEVICE dependency optional")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601110740.Y9XK5HtN-lkp@intel.com
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Chintan Patel <chintanlike@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/staging/fbtft/fbtft-core.c