ralink: unbreak port4 on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 48746
This commit is contained in:
parent
d179611006
commit
1e218001b5
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user