From: Bin Yang Date: Wed, 22 Jun 2011 09:18:10 +0000 (+0800) Subject: gpio: add set_wake callback X-Git-Tag: 2.1b_release~1899 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68403d7764b7eb8c250ff735918baae0cd9455ea;p=kernel%2Fkernel-mfld-blackbay.git 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 --- 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 */