HID: cp2112: explicitly require irqchip support in gpiolib
authorJiri Kosina <jkosina@suse.cz>
Wed, 30 Nov 2016 09:04:51 +0000 (10:04 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 30 Nov 2016 09:19:52 +0000 (10:19 +0100)
Since the gpio-as-irq support has been added, the driver now depends
on proper support being available in gpiolib.

Fixes: 13de9cca514e ("HID: cp2112: add IRQ chip handling")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig

index cd4599c0523bf62e2c4ebd886c51763fb6307bb5..a5b3902fb266402aa7833d4550bc5a33b3da4257 100644 (file)
@@ -214,7 +214,7 @@ config HID_CMEDIA
 
 config HID_CP2112
        tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support"
-       depends on USB_HID && I2C && GPIOLIB
+       depends on USB_HID && I2C && GPIOLIB && GPIOLIB_IRQCHIP
        ---help---
        Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge.
        This is a HID device driver which registers as an i2c adapter