/* Destroy a bonding device. Must be under rtnl_lock when this function is called.  */
static void bond_uninit(struct net_device *bond_dev)
/* Destroy a bonding device. Must be under rtnl_lock when this function is called.  */
static void bond_uninit(struct net_device *bond_dev)
{
	struct bonding *bond = netdev_priv(bond_dev);
	bond_release_all(bond_dev);
	list_del(&bond->bond_list);
	bond_work_cancel_all(bond);
	bond_remove_proc_entry(bond);
	if (bond->wq)
		destroy_workqueue(bond->wq);
	netif_addr_lock_bh(bond_dev);
	bond_mc_list_destroy(bond);
	netif_addr_unlock_bh(bond_dev);
}