Skip to contentSkip to conversation

net: fec_mxc: Fix corruption of device tree blob.

PATCH In review Daniel Strnad 3 participants 3 messages Feb 2, 2017 – Feb 9, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fec_mxc: Fix corruption of device tree blob.

Modifying content of dev->name leads to the device tree corruption because it points to the node name located there.

Cc Stefano Babic <[email protected]>
Cc Jagan Teki <[email protected]>
---
 drivers/net/fec_mxc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/fec_mxc.c +0 -1
index 3304fddc69..9e9b8beb92 100644
@@ -1240,7 +1240,6 @@ static int fecmxc_probe(struct udevice *dev)
 	}
 
 	fec_reg_setup(priv);
-	fec_set_dev_name((char *)dev->name, dev_id);
 	priv->dev_id = (dev_id == -1) ? 0 : dev_id;
 
 	return 0;
Signature · 1 line
2.11.0