ralink: unbreak port4 on mt7620
authorJohn Crispin <john@openwrt.org>
Fri, 19 Feb 2016 16:37:56 +0000 (16:37 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 19 Feb 2016 16:37:56 +0000 (16:37 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 48746

target/linux/ramips/patches-4.3/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch

index 325321eb12b12f1c87117b3a0788cecfc21da26e..f3905ede44f170a4d324208aa76f5d1fb8aae54b 100644 (file)
@@ -222,7 +222,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +      struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 +      const char *port4 = NULL;
 +      struct mt7620_gsw *gsw;
-+      struct device_node *np;
++      struct device_node *np = pdev->dev.of_node;
 +
 +      gsw = devm_kzalloc(&pdev->dev, sizeof(struct mt7620_gsw), GFP_KERNEL);
 +      if (!gsw)