net: e1000: Add initialized eth_device & e1000_hw structure
authorKumar Gala <galak@kernel.crashing.org>
Fri, 12 Nov 2010 10:13:06 +0000 (04:13 -0600)
committerWolfgang Denk <wd@denx.de>
Sun, 14 Nov 2010 22:24:37 +0000 (23:24 +0100)
commit4b29bdb0ed08412d225a8be94f61fc6c37a59dd5
treef176d3493045da0dd537420c934b1626339f34e2
parentfe7f1883b704452224af9e8db002a4261a26540d
net: e1000: Add initialized eth_device & e1000_hw structure

nic and hw structures are allocated via malloc i.e. return memory
is not zero initialized. Because of this few structure member like
"function pointers" are initialized with garbage values.

It may cause problem. for eg. during eth_initialize, dev->write_hwaddr
is used.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Fixed typo.
Signed-off-by: Wolfgang Denk <wd@denx.de>
drivers/net/e1000.c