diff options
author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | 2018-05-07 06:36:54 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-05-23 03:55:53 -0400 |
commit | 5e3a8ecd7614d5432b2db4f59fd6b119439aa226 (patch) | |
tree | 16e1acd9088a91f63a5f2ada1d27ccdc08b1eb82 | |
parent | 4b21f94a3001ba5326425d6b6d93bc63ddebdc97 (diff) |
gpio: zynq: Remove call to platform_get_irq
Remove the call to platform_get_irq use the cached
one instead.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-zynq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 75ee877e5cd5..e20f9cfcdb88 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c | |||
@@ -666,9 +666,8 @@ static void zynq_gpio_restore_context(struct zynq_gpio *gpio) | |||
666 | static int __maybe_unused zynq_gpio_suspend(struct device *dev) | 666 | static int __maybe_unused zynq_gpio_suspend(struct device *dev) |
667 | { | 667 | { |
668 | struct platform_device *pdev = to_platform_device(dev); | 668 | struct platform_device *pdev = to_platform_device(dev); |
669 | int irq = platform_get_irq(pdev, 0); | ||
670 | struct irq_data *data = irq_get_irq_data(irq); | ||
671 | struct zynq_gpio *gpio = platform_get_drvdata(pdev); | 669 | struct zynq_gpio *gpio = platform_get_drvdata(pdev); |
670 | struct irq_data *data = irq_get_irq_data(gpio->irq); | ||
672 | 671 | ||
673 | if (!irqd_is_wakeup_set(data)) { | 672 | if (!irqd_is_wakeup_set(data)) { |
674 | zynq_gpio_save_context(gpio); | 673 | zynq_gpio_save_context(gpio); |
@@ -681,9 +680,8 @@ static int __maybe_unused zynq_gpio_suspend(struct device *dev) | |||
681 | static int __maybe_unused zynq_gpio_resume(struct device *dev) | 680 | static int __maybe_unused zynq_gpio_resume(struct device *dev) |
682 | { | 681 | { |
683 | struct platform_device *pdev = to_platform_device(dev); | 682 | struct platform_device *pdev = to_platform_device(dev); |
684 | int irq = platform_get_irq(pdev, 0); | ||
685 | struct irq_data *data = irq_get_irq_data(irq); | ||
686 | struct zynq_gpio *gpio = platform_get_drvdata(pdev); | 683 | struct zynq_gpio *gpio = platform_get_drvdata(pdev); |
684 | struct irq_data *data = irq_get_irq_data(gpio->irq); | ||
687 | int ret; | 685 | int ret; |
688 | 686 | ||
689 | if (!irqd_is_wakeup_set(data)) { | 687 | if (!irqd_is_wakeup_set(data)) { |