summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/t3cdev.h
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-08-29 19:15:47 -0700
committerJeff Garzik <jeff@garzik.org>2007-08-31 07:29:08 -0400
commit5fbf816fe7d72bfdbf22bfec05b4ec3aa6849f72 (patch)
tree62f35df3e9078e3f981b9c04176d9a9cb557a53a /drivers/net/cxgb3/t3cdev.h
parent54d0f56e63edb1aa3901ea6389bf7ea5d43d0c22 (diff)
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/t3cdev.h')
-rw-r--r--drivers/net/cxgb3/t3cdev.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/t3cdev.h b/drivers/net/cxgb3/t3cdev.h
index fa4099bc041..77fcc1a4984 100644
--- a/drivers/net/cxgb3/t3cdev.h
+++ b/drivers/net/cxgb3/t3cdev.h
@@ -42,9 +42,6 @@
#define T3CNAMSIZ 16
-/* Get the t3cdev associated with a net_device */
-#define T3CDEV(netdev) (struct t3cdev *)(netdev->priv)
-
struct cxgb3_client;
enum t3ctype {