Commit 8d26a9f2 authored by Stephen Hemminger's avatar Stephen Hemminger

[LAPBETHER]: Remove pre-existing device discovery loop

Remove duplicate/conflicting code
now that netdev_register_notifier replays the device registration events.
parent 67870f0e
...@@ -448,22 +448,12 @@ static char banner[] __initdata = KERN_INFO "LAPB Ethernet driver version 0.02\n ...@@ -448,22 +448,12 @@ static char banner[] __initdata = KERN_INFO "LAPB Ethernet driver version 0.02\n
static int __init lapbeth_init_driver(void) static int __init lapbeth_init_driver(void)
{ {
struct net_device *dev;
dev_add_pack(&lapbeth_packet_type); dev_add_pack(&lapbeth_packet_type);
register_netdevice_notifier(&lapbeth_dev_notifier); register_netdevice_notifier(&lapbeth_dev_notifier);
printk(banner); printk(banner);
rtnl_lock();
for (dev = dev_base; dev; dev = dev->next) {
if (dev_is_ethdev(dev)) {
lapbeth_new_device(dev);
}
}
rtnl_unlock();
return 0; return 0;
} }
module_init(lapbeth_init_driver); module_init(lapbeth_init_driver);
......
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