From 68403d7764b7eb8c250ff735918baae0cd9455ea Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Wed, 22 Jun 2011 17:18:10 +0800 Subject: [PATCH] gpio: add set_wake callback 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 Reviewed-on: http://android.intel.com:8080/23785 Reviewed-by: Gross, Mark Tested-by: Gross, Mark --- drivers/gpio/langwell_gpio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpio/langwell_gpio.c b/drivers/gpio/langwell_gpio.c index 674b1e8..8b84496 100644 --- a/drivers/gpio/langwell_gpio.c +++ b/drivers/gpio/langwell_gpio.c @@ -231,11 +231,17 @@ static void lnw_irq_mask(struct irq_data *d) { } +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 */ -- 2.7.4