From 9c0b04bcb3abc8e5dc0731b9b9eabd4a217960c0 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Mon, 17 Nov 2014 09:38:09 +0100 Subject: [PATCH] gpio: mcp23s08: request a shared interrupt Request a shared interrupt when requesting a mcp23s08 GPIO interrupt. Signed-off-by: Alexander Stein Signed-off-by: Linus Walleij --- drivers/gpio/gpio-mcp23s08.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index 1ac7de85da8b..6589438dad57 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c @@ -485,7 +485,8 @@ static int mcp23s08_irq_setup(struct mcp23s08 *mcp) return -ENODEV; err = devm_request_threaded_irq(chip->dev, mcp->irq, NULL, mcp23s08_irq, - IRQF_TRIGGER_LOW | IRQF_ONESHOT, + IRQF_TRIGGER_LOW | IRQF_ONESHOT | + IRQF_SHARED, dev_name(chip->dev), mcp); if (err != 0) { dev_err(chip->dev, "unable to request IRQ#%d: %d\n", -- 2.20.1