summaryrefslogtreecommitdiff
path: root/drivers/message/fusion/mptlan.h
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-12-04 08:13:37 +0300
committerDavid S. Miller <davem@davemloft.net>2008-12-04 08:13:37 +0300
commit97341249c4c30cf0eea5439ce2f36ee887e640fe (patch)
tree8176bb5bccd687c3bbac23fb0be8203d983cc518 /drivers/message/fusion/mptlan.h
parent0eade1f930fa3ba6461b34baf3ed8fa7c4abc40f (diff)
downloadlinux-97341249c4c30cf0eea5439ce2f36ee887e640fe.tar.xz
mptlan: Kill directly reference of netdev->priv
Simply replace netdev->priv with netdev_priv(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/message/fusion/mptlan.h')
-rw-r--r--drivers/message/fusion/mptlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptlan.h b/drivers/message/fusion/mptlan.h
index 33927ee7dc3b..c171afa93239 100644
--- a/drivers/message/fusion/mptlan.h
+++ b/drivers/message/fusion/mptlan.h
@@ -122,7 +122,7 @@ MODULE_DESCRIPTION(LANAME);
#define dlprintk(x)
#endif
-#define NETDEV_TO_LANPRIV_PTR(d) ((struct mpt_lan_priv *)(d)->priv)
+#define NETDEV_TO_LANPRIV_PTR(d) ((struct mpt_lan_priv *)netdev_priv(d))
#define NETDEV_PTR_TO_IOC_NAME_s(d) (NETDEV_TO_LANPRIV_PTR(d)->mpt_dev->name)
#define IOC_AND_NETDEV_NAMES_s_s(d) NETDEV_PTR_TO_IOC_NAME_s(d), (d)->name