[openwrt/openwrt] ramips: use platform_get_irq
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 27 06:25:30 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3cdab2ad447415c4d69c7e7e67c04eb5046915a6
commit 3cdab2ad447415c4d69c7e7e67c04eb5046915a6
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Oct 22 16:21:46 2024 -0700
ramips: use platform_get_irq
No need for irq_of_parse_and_map since this is in _probe.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16771
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
index c744c13773..cafa28e7a4 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
@@ -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);
More information about the lede-commits
mailing list