ramips: fix polling switch interrupts
[openwrt/staging/lynxis.git] / target / linux / ramips / patches-4.4 / 0503-net-next-mediatek-add-switch-driver-for-mt7620.patch
index 88882d7fa4c4fa2ae60889517e860fe8bfdfa34c..59972bd42e20380e727ca0d8bb09b86699b5f646 100644 (file)
@@ -242,7 +242,7 @@ Signed-off-by: John Crispin <blogic@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);
 +