diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-07-31 21:40:31 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-02 17:32:29 -0400 |
commit | ae61bac9c470cf546558ea525e7cf6b636f04046 (patch) | |
tree | 7dccafc77c2ba6b281caca68b0c1740b0f46a791 /drivers/gpio/gpio-pxa.c | |
parent | 4e133828e2ca6de5b7563842817a65836a45f63f (diff) |
gpio: pxa: remove set but not used variable 'gpio_offset'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpio/gpio-pxa.c: In function "pxa_gpio_probe":
drivers/gpio/gpio-pxa.c:629:35: warning:
variable "gpio_offset" set but not used [-Wunused-but-set-variable]
int irq0 = 0, irq1 = 0, irq_mux, gpio_offset = 0;
^
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-pxa.c')
-rw-r--r-- | drivers/gpio/gpio-pxa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 99070e2ac3cd..c18712dabf93 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c | |||
@@ -626,7 +626,7 @@ static int pxa_gpio_probe(struct platform_device *pdev) | |||
626 | struct pxa_gpio_platform_data *info; | 626 | struct pxa_gpio_platform_data *info; |
627 | void __iomem *gpio_reg_base; | 627 | void __iomem *gpio_reg_base; |
628 | int gpio, ret; | 628 | int gpio, ret; |
629 | int irq0 = 0, irq1 = 0, irq_mux, gpio_offset = 0; | 629 | int irq0 = 0, irq1 = 0, irq_mux; |
630 | 630 | ||
631 | pchip = devm_kzalloc(&pdev->dev, sizeof(*pchip), GFP_KERNEL); | 631 | pchip = devm_kzalloc(&pdev->dev, sizeof(*pchip), GFP_KERNEL); |
632 | if (!pchip) | 632 | if (!pchip) |
@@ -672,9 +672,6 @@ static int pxa_gpio_probe(struct platform_device *pdev) | |||
672 | if (!gpio_reg_base) | 672 | if (!gpio_reg_base) |
673 | return -EINVAL; | 673 | return -EINVAL; |
674 | 674 | ||
675 | if (irq0 > 0) | ||
676 | gpio_offset = 2; | ||
677 | |||
678 | clk = clk_get(&pdev->dev, NULL); | 675 | clk = clk_get(&pdev->dev, NULL); |
679 | if (IS_ERR(clk)) { | 676 | if (IS_ERR(clk)) { |
680 | dev_err(&pdev->dev, "Error %ld to get gpio clock\n", | 677 | dev_err(&pdev->dev, "Error %ld to get gpio clock\n", |