Commit 6badba35 authored by David S. Miller's avatar David S. Miller

[NET]: Fix thinkos in PPC 8260_io/fcc_enet.c changes.

parent 77921e9e
......@@ -1339,6 +1339,8 @@ int __init fec_enet_init(void)
fip = fcc_ports;
while (np-- > 0) {
/* Create an Ethernet device instance.
*/
dev = alloc_etherdev(sizeof(*cep));
if (!dev)
return -ENOMEM;
......@@ -1347,11 +1349,6 @@ int __init fec_enet_init(void)
spin_lock_init(&cep->lock);
cep->fip = fip;
/* Create an Ethernet device instance.
*/
dev = init_etherdev(0, 0);
dev->priv = cep;
init_fcc_shutdown(fip, cep, immap);
init_fcc_ioports(fip, io, immap);
init_fcc_param(fip, dev, immap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment