ramips: use platform_get_irq
authorRosen Penev <rosenp@gmail.com>
Tue, 22 Oct 2024 23:21:46 +0000 (16:21 -0700)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 27 Oct 2024 13:25:24 +0000 (14:25 +0100)
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>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c

index c744c1377346e63ed9b3c68862b5f9327e37da58..cafa28e7a44f5ef74094aa96950f7ec109d3c84e 100644 (file)
@@ -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);