提交 63f2b167 编写于 作者: N Noralf Trønnes 提交者: Greg Kroah-Hartman

staging/fbtft: Depend on OF

Commit c440eee1 ("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: c440eee1 ("Staging: fbtft: Switch to the gpio descriptor interface")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NNoralf Trønnes <noralf@tronnes.org>
Link: https://lore.kernel.org/r/20190917171843.10334-1-noralf@tronnes.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7d4dea95
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
menuconfig FB_TFT menuconfig FB_TFT
tristate "Support for small TFT LCD display modules" tristate "Support for small TFT LCD display modules"
depends on FB && SPI depends on FB && SPI && OF
depends on GPIOLIB || COMPILE_TEST depends on GPIOLIB || COMPILE_TEST
select FB_SYS_FILLRECT select FB_SYS_FILLRECT
select FB_SYS_COPYAREA select FB_SYS_COPYAREA
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册