]> Pileus Git - ~andy/linux/blobdiff - include/linux/netdevice.h
[BLOCK] cfq-iosched: seek and async performance fixes
[~andy/linux] / include / linux / netdevice.h
index b825be201bce0ee3504d0e2ae54e69fad77c005e..950dc55e519280fde2a0339b7ee65578b7d71290 100644 (file)
@@ -712,8 +712,10 @@ static inline void dev_put(struct net_device *dev)
        atomic_dec(&dev->refcnt);
 }
 
-#define __dev_put(dev) atomic_dec(&(dev)->refcnt)
-#define dev_hold(dev) atomic_inc(&(dev)->refcnt)
+static inline void dev_hold(struct net_device *dev)
+{
+       atomic_inc(&dev->refcnt);
+}
 
 /* Carrier loss detection, dial on demand. The functions netif_carrier_on
  * and _off may be called from IRQ context, but it is caller