ramips: use platform_get_irq

No need for irq_of_parse_and_map since this is in _probe.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16771
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Rosen Penev 2024-10-22 16:21:46 -07:00 committed by Christian Marangi
parent 65560de58d
commit 3cdab2ad44
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -1396,7 +1396,7 @@ static int esw_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
esw->dev = &pdev->dev; esw->dev = &pdev->dev;
esw->irq = irq_of_parse_and_map(np, 0); esw->irq = platform_get_irq(pdev, 0);
esw->base = devm_platform_ioremap_resource(pdev, 0); esw->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(esw->base)) if (IS_ERR(esw->base))
return PTR_ERR(esw->base); return PTR_ERR(esw->base);