mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-29 13:34:31 -05:00
pinctrl: pistachio: Remove dead code in pistachio_gpio_register()
fwnode_irq_get() was changed to not return 0, so this check is dead code now. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/20250118031145.243104-1-yuehaibing@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
c98868e816
commit
75b456278e
@@ -1393,12 +1393,6 @@ static int pistachio_gpio_register(struct pistachio_pinctrl *pctl)
|
||||
dev_err(pctl->dev, "Failed to retrieve IRQ for bank %u\n", i);
|
||||
goto err;
|
||||
}
|
||||
if (!ret) {
|
||||
fwnode_handle_put(child);
|
||||
dev_err(pctl->dev, "No IRQ for bank %u\n", i);
|
||||
ret = -EINVAL;
|
||||
goto err;
|
||||
}
|
||||
irq = ret;
|
||||
|
||||
bank = &pctl->gpio_banks[i];
|
||||
|
||||
Reference in New Issue
Block a user