mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
gpio: altera: Fix build failure caused by undeclared 'irq'
Use 'mapped_irq' instead of the undefined 'irq' variable in
altera_gpio_probe().
The incorrect variable name causes the driver to fail to build with
an 'irq' undeclared error.
Fixes: 6e6e585b60 ("gpio: altera: Handle errors from optional IRQ lookup")
Reported-by: Mark Brown <broonie@kernel.org>
Closes: https://lore.kernel.org/all/apgNYDiSiPmNZspF@sirena.org.uk/
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260903030700.132068-1-phucduc.bui@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
cf176c1154
commit
a2cfc48fee
|
|
@ -221,8 +221,8 @@ static int altera_gpio_probe(struct platform_device *pdev)
|
|||
|
||||
mapped_irq = platform_get_irq_optional(pdev, 0);
|
||||
if (mapped_irq < 0) {
|
||||
if (irq != -ENXIO)
|
||||
return irq;
|
||||
if (mapped_irq != -ENXIO)
|
||||
return mapped_irq;
|
||||
goto skip_irq;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user