summaryrefslogtreecommitdiffstats
path: root/include/linux/hdlc.h
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-11-21 16:34:18 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-21 16:34:18 -0800
commit2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf (patch)
tree957eb111fad4ce334ff8d49861a08d1fcf14e64a /include/linux/hdlc.h
parentf757fec4b0d45dfcb52f9a914a12225a6a0a3e05 (diff)
downloadop-kernel-dev-2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf.zip
op-kernel-dev-2baf8a2daab65cdd3f20bfeb4676a2f6aff7c3bf.tar.gz
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 c597696..e960faa 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)
OpenPOWER on IntegriCloud