diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-08-29 19:15:47 -0700 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-08-31 07:29:08 -0400 |
commit | 5fbf816fe7d72bfdbf22bfec05b4ec3aa6849f72 (patch) | |
tree | 62f35df3e9078e3f981b9c04176d9a9cb557a53a /drivers/net/cxgb3/adapter.h | |
parent | 54d0f56e63edb1aa3901ea6389bf7ea5d43d0c22 (diff) | |
download | blackbird-op-linux-5fbf816fe7d72bfdbf22bfec05b4ec3aa6849f72.tar.gz blackbird-op-linux-5fbf816fe7d72bfdbf22bfec05b4ec3aa6849f72.zip |
cxgb3 - Fix dev->priv usage
cxgb3 used netdev_priv() and dev->priv for different purposes.
In 2.6.23, netdev_priv() == dev->priv, cxgb3 needs a fix.
This patch is a partial backport of Dave Miller's changes in the
net-2.6.24 git branch.
Without this fix, cxgb3 crashes on 2.6.23.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/adapter.h')
-rw-r--r-- | drivers/net/cxgb3/adapter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h index ab72563b81ee..20e887de2545 100644 --- a/drivers/net/cxgb3/adapter.h +++ b/drivers/net/cxgb3/adapter.h @@ -50,7 +50,9 @@ typedef irqreturn_t(*intr_handler_t) (int, void *); struct vlan_group; +struct adapter; struct port_info { + struct adapter *adapter; struct vlan_group *vlan_grp; const struct port_type_info *port_type; u8 port_id; |