s/free_device/device_free/g
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:22:35 +0000 (19:22 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:22:35 +0000 (19:22 +0200)
device.c
device.h

index 120b1f0..239b547 100644 (file)
--- a/device.c
+++ b/device.c
@@ -268,7 +268,7 @@ void remove_device_user(struct device_user *dep)
 
        if (list_empty(&dev->users)) {
                /* all references have gone away, remove this device */
 
        if (list_empty(&dev->users)) {
                /* all references have gone away, remove this device */
-               free_device(dev);
+               device_free(dev);
        }
 
        dep->dev = NULL;
        }
 
        dep->dev = NULL;
@@ -283,6 +283,6 @@ device_free_all(void)
                if (!list_empty(&dev->users))
                        continue;
 
                if (!list_empty(&dev->users))
                        continue;
 
-               free_device(dev);
+               device_free(dev);
        }
 }
        }
 }
index 0406dcf..913f3a9 100644 (file)
--- a/device.h
+++ b/device.h
@@ -120,7 +120,7 @@ struct device_hotplug_ops {
 };
 
 static inline void
 };
 
 static inline void
-free_device(struct device *dev)
+device_free(struct device *dev)
 {
        dev->type->free(dev);
 }
 {
        dev->type->free(dev);
 }