]>
Commit | Line | Data |
---|---|---|
95e83f51 JR |
1 | --- linux/drivers/net/pcnet32.c.org Wed Apr 18 12:47:35 2001 |
2 | +++ linux/drivers/net/pcnet32.c Wed Apr 18 12:53:33 2001 | |
3 | @@ -626,7 +626,7 @@ | |
4 | ltint = 1; | |
5 | } | |
6 | ||
7 | - dev = init_etherdev(NULL, 0); | |
8 | + dev = alloc_etherdev(0); | |
9 | if(dev==NULL) | |
10 | return -ENOMEM; | |
11 | ||
12 | @@ -788,8 +788,8 @@ | |
13 | lp->next = pcnet32_dev; | |
14 | pcnet32_dev = dev; | |
15 | ||
16 | - /* Fill in the generic fields of the device structure. */ | |
17 | - ether_setup(dev); | |
18 | + /* Register the device structure. */ | |
19 | + register_netdev(dev); | |
20 | return 0; | |
21 | } | |
22 |