|
@@ -1992,7 +1992,7 @@ void bond_destroy(struct bonding *bond)
|
|
|
|
|
|
static void bond_destructor(struct net_device *bond_dev)
|
|
static void bond_destructor(struct net_device *bond_dev)
|
|
{
|
|
{
|
|
- struct bonding *bond = bond_dev->priv;
|
|
|
|
|
|
+ struct bonding *bond = netdev_priv(bond_dev);
|
|
|
|
|
|
if (bond->wq)
|
|
if (bond->wq)
|
|
destroy_workqueue(bond->wq);
|
|
destroy_workqueue(bond->wq);
|