From: Wang Chen Date: Thu, 4 Dec 2008 05:14:04 +0000 (-0800) Subject: bond: Kill directly reference of netdev->priv X-Git-Tag: v2.6.29-rc1~581^2~328 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=244ef9b9176c7c7a095f4738d353a3a60b88097d;p=linux.git bond: Kill directly reference of netdev->priv Simply replace netdev->priv with netdev_priv(). Signed-off-by: Wang Chen Signed-off-by: David S. Miller --- 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) 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) destroy_workqueue(bond->wq);