ralink: unbreak port4 on mt7620

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48746
master
John Crispin 9 years ago
parent d179611006
commit 1e218001b5
  1. 2
      target/linux/ramips/patches-4.3/0503-net-next-mediatek-add-switch-driver-for-mt7620.patch

@ -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)

Loading…
Cancel
Save