Skip to content

Commit

Permalink
ramips: use platform_get_irq
Browse files Browse the repository at this point in the history
No need for irq_of_parse_and_map since this is in _probe.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#16771
Signed-off-by: Christian Marangi <[email protected]>
  • Loading branch information
neheb authored and Ansuel committed Oct 27, 2024
1 parent 65560de commit 3cdab2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ static int esw_probe(struct platform_device *pdev)
return -ENOMEM;

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);
if (IS_ERR(esw->base))
return PTR_ERR(esw->base);
Expand Down

0 comments on commit 3cdab2a

Please sign in to comment.