[source] ramips: fix polling switch interrupts

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 14 11:06:25 PST 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/728ab77d3d954951a180d730a2e2eccf635abbaf

commit 728ab77d3d954951a180d730a2e2eccf635abbaf
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Nov 8 18:12:42 2016 +0100

    ramips: fix polling switch interrupts
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../0503-net-next-mediatek-add-switch-driver-for-mt7620.patch           | 2 +-
 .../0504-net-next-mediatek-add-switch-driver-for-mt7621.patch           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/patches-4.4/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch b/target/linux/ramips/patches-4.4/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch
index 88882d7..59972bd 100644
--- a/target/linux/ramips/patches-4.4/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch
+++ b/target/linux/ramips/patches-4.4/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch
@@ -242,7 +242,7 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
 +	else
 +		gsw->port4 = PORT4_EPHY;
 +
-+	gsw->irq = irq_of_parse_and_map(np, 0);
++	gsw->irq = platform_get_irq(pdev, 0);
 +
 +	platform_set_drvdata(pdev, gsw);
 +
diff --git a/target/linux/ramips/patches-4.4/0504-net-next-mediatek-add-switch-driver-for-mt7621.patch b/target/linux/ramips/patches-4.4/0504-net-next-mediatek-add-switch-driver-for-mt7621.patch
index 071f23a..71192c9 100644
--- a/target/linux/ramips/patches-4.4/0504-net-next-mediatek-add-switch-driver-for-mt7621.patch
+++ b/target/linux/ramips/patches-4.4/0504-net-next-mediatek-add-switch-driver-for-mt7621.patch
@@ -269,7 +269,7 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
 +	else
 +		gsw->port4 = PORT4_EPHY;
 +
-+	gsw->irq = irq_of_parse_and_map(np, 0);
++	gsw->irq = platform_get_irq(pdev, 0);
 +
 +	platform_set_drvdata(pdev, gsw);
 +



More information about the lede-commits mailing list