]> asedeno.scripts.mit.edu Git - linux.git/commit
staging/fbtft: Depend on OF
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 17 Sep 2019 17:18:41 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2019 06:22:44 +0000 (08:22 +0200)
commit63f2b1677fba11c5bd02089f25c13421948905f5
tree095ec9c9d4823a65b6f11ef98c5291c8088a931f
parent7d4dea95f8281fc7f14766a6040e3504d3f658fc
staging/fbtft: Depend on OF

Commit c440eee1a7a1 ("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: c440eee1a7a1 ("Staging: fbtft: Switch to the gpio descriptor interface")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://lore.kernel.org/r/20190917171843.10334-1-noralf@tronnes.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/Kconfig