Commit 687e5f29 authored by Stephen Hemminger's avatar Stephen Hemminger

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

parent 4d248241
......@@ -1745,11 +1745,8 @@ static int __exit smsc_ircc_close(struct smsc_ircc_cb *self)
pm_unregister(self->pmdev);
/* Remove netdevice */
if (self->netdev) {
rtnl_lock();
unregister_netdevice(self->netdev);
rtnl_unlock();
}
if (self->netdev)
unregister_netdev(self->netdev);
/* Make sure the irq handler is not exectuting */
spin_lock_irqsave(&self->lock, flags);
......
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