ralink: unbreak port4 on mt7620

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

SVN-Revision: 48746
This commit is contained in:
John Crispin 2016-02-19 16:37:56 +00:00
parent d179611006
commit 1e218001b5

View File

@ -222,7 +222,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ const char *port4 = NULL; + const char *port4 = NULL;
+ struct mt7620_gsw *gsw; + 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); + gsw = devm_kzalloc(&pdev->dev, sizeof(struct mt7620_gsw), GFP_KERNEL);
+ if (!gsw) + if (!gsw)