Commit de237eb2 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Use register_netdev instead of explicit reference to rtnl_lock.

parent 687e5f29
...@@ -672,9 +672,7 @@ static int smsc_ircc_setup_netdev(struct smsc_ircc_cb *self) ...@@ -672,9 +672,7 @@ static int smsc_ircc_setup_netdev(struct smsc_ircc_cb *self)
dev->base_addr = self->io.fir_base; dev->base_addr = self->io.fir_base;
dev->irq = self->io.irq; dev->irq = self->io.irq;
rtnl_lock(); err = register_netdev(dev);
err = register_netdevice(dev);
rtnl_unlock();
if (err) { if (err) {
ERROR("%s(), register_netdev() failed!\n", __FUNCTION__); ERROR("%s(), register_netdev() failed!\n", __FUNCTION__);
kfree(self->tx_buff.head); kfree(self->tx_buff.head);
......
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