Commit a9bc6d7c authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Wolfgang Denk

net: natsemi: Add initialized eth_device structure

natsemi driver does not have write_hwaddr function.
However, eth stuff executes write_hwaddr function
because eth_device structure has not been initialized.
Signed-off-by: default avatarNobuhiro Iwamatsu <>
CC: Ben Warren <>
parent de0b9576
......@@ -321,6 +321,11 @@ natsemi_initialize(bd_t * bis)
dev = (struct eth_device *) malloc(sizeof *dev);
if (!dev) {
printf("natsemi: Can not allocate memory\n");
memset(dev, 0, sizeof(*dev));
sprintf(dev->name, "dp83815#%d", card_number);
dev->iobase = bus_to_phys(iobase);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment