| Submitter | Wang Chen |
|---|---|
| Date | Dec. 2, 2008, 1:32 p.m. |
| Message ID | <493538FC.3060609@cn.fujitsu.com> |
| Download | mbox | patch |
| Permalink | /patch/11775/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Wang Chen <wangchen@cn.fujitsu.com> Date: Tue, 02 Dec 2008 21:32:44 +0800 > Simply replace netdev->priv with netdev_priv(). > > Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index a339a80..e422dba 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);
Simply replace netdev->priv with netdev_priv(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> --- drivers/net/bonding/bond_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)