BZ: 14180
set_irq_wake function will check desc->chip->set_wake callback.
It will be failed to set IRQ as wake without this callback.
Change-Id: Ib0811a87973853fe024ecb91eeacc9985165a8b8
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/23785
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
{
}
+static int lnw_irq_wake(unsigned irq, unsigned on)
+{
+ return 0;
+}
+
static struct irq_chip lnw_irqchip = {
.name = "LNW-GPIO",
.irq_mask = lnw_irq_mask,
.irq_unmask = lnw_irq_unmask,
.irq_set_type = lnw_irq_type,
+ .irq_set_wake = lnw_irq_wake,
};
static DEFINE_PCI_DEVICE_TABLE(lnw_gpio_ids) = { /* pin number */