From: Dmitry Eremin-Solenikov Date: Tue, 3 Nov 2009 06:04:18 +0000 (-0800) Subject: Input: gpio-keys - use IRQF_SHARED X-Git-Tag: v2.6.32-rc6~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=558a5e296a02266ef43d6e933ee35df9976de987;p=profile%2Fcommon%2Fkernel-common.git Input: gpio-keys - use IRQF_SHARED There is nothing that disallows gpio-keys to share it's IRQ line w/ other drivers. Make it use IRQF_SHARED in request_irq(). An example of other driver with which I'd like to share IRQ line for GPIO buttons is ledtrig-gpio. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index a88aff3..77d1309 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -147,6 +147,7 @@ static int __devinit gpio_keys_probe(struct platform_device *pdev) } error = request_irq(irq, gpio_keys_isr, + IRQF_SHARED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, button->desc ? button->desc : "gpio_keys", bdata);