]> git.baikalelectronics.ru Git - kernel.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)
commite7cff48e335e8e72ffee1fc7fa7f21c00bd34bfc
tree095ec9c9d4823a65b6f11ef98c5291c8088a931f
parent0ca1e0d7aa41fc7824c764783cdaffe5f565fd03
staging/fbtft: Depend on OF

Commit 1db5cffab6bd ("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: 1db5cffab6bd ("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