Skip to content

Commit 6658f87

Browse files
andy-shevLinus Walleij
authored andcommitted
gpio: merrifield: Restore use of irq_base
During conversion to internal IRQ chip initialization the commit 8f86a5b ("gpio: merrifield: Pass irqchip when adding gpiochip") lost the irq_base assignment. drivers/gpio/gpio-merrifield.c: In function ‘mrfld_gpio_probe’: drivers/gpio/gpio-merrifield.c:405:17: warning: variable ‘irq_base’ set but not used [-Wunused-but-set-variable] Assign the girq->first to it. Fixes: 8f86a5b ("gpio: merrifield: Pass irqchip when adding gpiochip") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 4f5cafb commit 6658f87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpio/gpio-merrifield.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ static int mrfld_gpio_probe(struct pci_dev *pdev, const struct pci_device_id *id
455455
if (!girq->parents)
456456
return -ENOMEM;
457457
girq->parents[0] = pdev->irq;
458+
girq->first = irq_base;
458459
girq->default_type = IRQ_TYPE_NONE;
459460
girq->handler = handle_bad_irq;
460461

0 commit comments

Comments
 (0)