pinctrl: Added IRQF_SHARED flag for amd-pinctrl driver
authorSandeep Singh <sandeep.singh@amd.com>
Thu, 4 Apr 2019 13:16:26 +0000 (13:16 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Apr 2019 12:45:15 +0000 (14:45 +0200)
Some of the AMD reference boards used single GPIO line for
multiple devices. So added IRQF_SHARED flag in amd pinctrl driver.

Signed-off-by: Sandeep Singh <Sandeep.Singh@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
cc: Nehal Shah <Nehal-bakulchandra.Shah@amd.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-amd.c

index 6689995..e18ebb2 100644 (file)
@@ -930,8 +930,8 @@ static int amd_gpio_probe(struct platform_device *pdev)
                goto out2;
        }
 
-       ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler, 0,
-                              KBUILD_MODNAME, gpio_dev);
+       ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler,
+                              IRQF_SHARED, KBUILD_MODNAME, gpio_dev);
        if (ret)
                goto out2;