OSDN Git Service

media: rc: gpio-ir-tx does not work without devicetree or gpiolib
authorSean Young <sean@mess.org>
Thu, 5 Oct 2017 21:30:57 +0000 (17:30 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 11 Oct 2017 16:38:20 +0000 (12:38 -0400)
If the kernel is built without device tree, this driver cannot be
used and without gpiolib it cannot control any gpio pin.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/Kconfig

index 451cba1..946d2ec 100644 (file)
@@ -403,6 +403,7 @@ config IR_GPIO_TX
        tristate "GPIO IR Bit Banging Transmitter"
        depends on RC_CORE
        depends on LIRC
+       depends on (OF && GPIOLIB) || COMPILE_TEST
        ---help---
           Say Y if you want to a GPIO based IR transmitter. This is a
           bit banging driver.