Merge branch 'i2c-next' of git://aeryn.fluff.org.uk/bjdooks/linux
[firefly-linux-kernel-4.4.55.git] / include / linux / hdlc.h
index c59769693bee8876718b0410fdd2f46522fb65b1..fd47a151665e363a5d9cdb63f33810ccd55f9a1d 100644 (file)
@@ -43,7 +43,7 @@ struct hdlc_proto {
 };
 
 
-/* Pointed to by dev->priv */
+/* Pointed to by netdev_priv(dev) */
 typedef struct hdlc_device {
        /* used by HDLC layer to take control over HDLC device from hw driver*/
        int (*attach)(struct net_device *dev,
@@ -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)