mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f757fec4b0
commit
2baf8a2daa
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue