Revert "EDAC/xgene: Do not print a failure message to get an IRQ twice"
Subsystems (2)
PATCH 1/1 Revert "EDAC/xgene: Do not print a failure message to get an IRQ twice"
This reverts commit e26124cd5f7099949109608845bba9e9bf96599c.
Calling platform_get_irq_optional() doesn't make sense if you then bail out on any error it returns. Switch back to calling platform_get_irq(); note that calling dev_err_probe() from there is being discussed currently...
Signed-off-by Sergey Shtylyov <[email protected]>
---
This patch is against the 'edac-for-next' branch of the 'ras.git' repo.
drivers/edac/xgene_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/xgene_edac.c +1 -1
@@ -1916,7 +1916,7 @@ static int xgene_edac_probe(struct platform_device *pdev)int i;for (i =0 ; i <3 ; i++) { - irq =platform_get_irq_optional (pdev, i); + irq =platform_get_irq (pdev, i);if (irq <0 ) {dev_err (&pdev->dev,"No IRQ resource\n" ); rc = -EINVAL ;
Signature · 1 line
2.26.3