summaryrefslogtreecommitdiffstats
path: root/include/linux/hdlc.h
diff options
context:
space:
mode:
authorWang Chen2008-11-22 01:34:18 +0100
committerDavid S. Miller2008-11-22 01:34:18 +0100
commit2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf (patch)
tree957eb111fad4ce334ff8d49861a08d1fcf14e64a /include/linux/hdlc.h
parentnet: use net_eq() in INET_MATCH and INET_TW_MATCH (diff)
downloadkernel-qcow2-linux-2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf.tar.gz
kernel-qcow2-linux-2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf.tar.xz
kernel-qcow2-linux-2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf.zip
netdevice hdlc: Convert directly reference of netdev->priv
For killing directly reference of netdev->priv, use netdev->ml_priv to replace it. Because the private pvc data comes from add_pvc() and can't be allocated in alloc_netdev(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Acked-by: Krzysztof Halasa <khc@pm.waw.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/hdlc.h')
-rw-r--r--include/linux/hdlc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hdlc.h b/include/linux/hdlc.h
index c59769693bee..e960faac609d 100644
--- a/include/linux/hdlc.h
+++ b/include/linux/hdlc.h
@@ -80,7 +80,7 @@ struct net_device *alloc_hdlcdev(void *priv);
static inline struct hdlc_device* dev_to_hdlc(struct net_device *dev)
{
- return dev->priv;
+ return netdev_priv(dev);
}
static __inline__ void debug_frame(const struct sk_buff *skb)