Skip to content

Commit f8b5d35

Browse files
notroksacilotto
authored andcommitted
staging/fbtft: Depend on OF
BugLink: https://bugs.launchpad.net/bugs/1848750 commit 63f2b16 upstream. Commit c440eee ("Staging: fbtft: Switch to the gpio descriptor interface") removed setting gpios via platform data. This means that fbtft will now only work with Device Tree so set the dependency. This also prevents a NULL pointer deref on non-DT platform because fbtftops.request_gpios is not set in that case anymore. Fixes: c440eee ("Staging: fbtft: Switch to the gpio descriptor interface") Cc: stable <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Connor Kuehl <[email protected]> Signed-off-by: Khalid Elmously <[email protected]>
1 parent de83727 commit f8b5d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/fbtft/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
menuconfig FB_TFT
33
tristate "Support for small TFT LCD display modules"
4-
depends on FB && SPI
4+
depends on FB && SPI && OF
55
depends on GPIOLIB || COMPILE_TEST
66
select FB_SYS_FILLRECT
77
select FB_SYS_COPYAREA

0 commit comments

Comments
 (0)