diff options
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index a339a8052737..e422dbaa25b4 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -1992,7 +1992,7 @@ void bond_destroy(struct bonding *bond) | |||
1992 | 1992 | ||
1993 | static void bond_destructor(struct net_device *bond_dev) | 1993 | static void bond_destructor(struct net_device *bond_dev) |
1994 | { | 1994 | { |
1995 | struct bonding *bond = bond_dev->priv; | 1995 | struct bonding *bond = netdev_priv(bond_dev); |
1996 | 1996 | ||
1997 | if (bond->wq) | 1997 | if (bond->wq) |
1998 | destroy_workqueue(bond->wq); | 1998 | destroy_workqueue(bond->wq); |