diff options
author | Daniel Strnad <strnadda@gmail.com> | 2017-02-02 14:11:40 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-02-07 19:54:34 +0300 |
commit | 5ad9204fa9b2eb592f8c9868b23904638987bbd0 (patch) | |
tree | aae04c2cb0c261811d2f92d8320ff15ae7bdb2a5 /drivers | |
parent | 655217d968807a17df40fee3795e95bee92e5559 (diff) | |
download | u-boot-5ad9204fa9b2eb592f8c9868b23904638987bbd0.tar.xz |
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 <strnadda@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/fec_mxc.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |