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 <s...@mess.org>
---
 drivers/media/rc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index 451cba1fe9bf..946d2ec419db 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -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.
-- 
2.13.6

Reply via email to