@@ -1903,14 +1903,6 @@ static void ipw2100_down(struct ipw2100_priv *priv)
1903
1903
netif_stop_queue (priv -> net_dev );
1904
1904
}
1905
1905
1906
- /* Called by register_netdev() */
1907
- static int ipw2100_net_init (struct net_device * dev )
1908
- {
1909
- struct ipw2100_priv * priv = libipw_priv (dev );
1910
-
1911
- return ipw2100_up (priv , 1 );
1912
- }
1913
-
1914
1906
static int ipw2100_wdev_init (struct net_device * dev )
1915
1907
{
1916
1908
struct ipw2100_priv * priv = libipw_priv (dev );
@@ -6087,7 +6079,6 @@ static const struct net_device_ops ipw2100_netdev_ops = {
6087
6079
.ndo_stop = ipw2100_close ,
6088
6080
.ndo_start_xmit = libipw_xmit ,
6089
6081
.ndo_change_mtu = libipw_change_mtu ,
6090
- .ndo_init = ipw2100_net_init ,
6091
6082
.ndo_tx_timeout = ipw2100_tx_timeout ,
6092
6083
.ndo_set_mac_address = ipw2100_set_address ,
6093
6084
.ndo_validate_addr = eth_validate_addr ,
@@ -6329,6 +6320,10 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev,
6329
6320
printk (KERN_INFO DRV_NAME
6330
6321
": Detected Intel PRO/Wireless 2100 Network Connection\n" );
6331
6322
6323
+ err = ipw2100_up (priv , 1 );
6324
+ if (err )
6325
+ goto fail ;
6326
+
6332
6327
err = ipw2100_wdev_init (dev );
6333
6328
if (err )
6334
6329
goto fail ;
@@ -6338,12 +6333,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev,
6338
6333
* network device we would call ipw2100_up. This introduced a race
6339
6334
* condition with newer hotplug configurations (network was coming
6340
6335
* up and making calls before the device was initialized).
6341
- *
6342
- * If we called ipw2100_up before we registered the device, then the
6343
- * device name wasn't registered. So, we instead use the net_dev->init
6344
- * member to call a function that then just turns and calls ipw2100_up.
6345
- * net_dev->init is called after name allocation but before the
6346
- * notifier chain is called */
6336
+ */
6347
6337
err = register_netdev (dev );
6348
6338
if (err ) {
6349
6339
printk (KERN_WARNING DRV_NAME
0 commit comments