diff options
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", |