From: Daniel Strnad Date: Thu, 2 Feb 2017 11:11:40 +0000 (+0100) Subject: net: fec_mxc: Fix corruption of device tree blob X-Git-Tag: v2017.03-rc2~10^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ad9204fa9b2eb592f8c9868b23904638987bbd0;p=oweals%2Fu-boot.git 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. Signed-off-by: Daniel Strnad Cc: Stefano Babic Cc: Jagan Teki Acked-by: Joe Hershberger --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 3304fddc69..9e9b8beb92 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -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;