s/release_device/device_release/
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:26:07 +0000 (19:26 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:26:07 +0000 (19:26 +0200)
bridge.c
device.c
device.h
interface.c
vlan.c

index d11f10268ee2d6f55ed555db4a9854e4cdd513ec..24f8069aaebfbac29ba62ec55724b7f52a04e919 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -35,7 +35,7 @@ bridge_disable_member(struct bridge_member *bm)
                return 0;
 
        system_bridge_delif(&bst->dev, bm->dev.dev);
-       release_device(bm->dev.dev);
+       device_release(bm->dev.dev);
 
        return 0;
 }
index e1be5f4d89284a9b3f0475b83a0874351bd963bc..eeb39a5d11e8c826de002ae932651a6eb8febd2f 100644 (file)
--- a/device.c
+++ b/device.c
@@ -142,7 +142,7 @@ int device_claim(struct device *dev)
        return ret;
 }
 
-void release_device(struct device *dev)
+void device_release(struct device *dev)
 {
        dev->active--;
        DPRINTF("release device %s, new refcount: %d\n", dev->ifname, dev->active);
index decbc74addbb0471f232f489474763ddffd93ead..7fc4975671d8272999ea83c9eda03e1ad798e039 100644 (file)
--- a/device.h
+++ b/device.h
@@ -138,7 +138,7 @@ void device_remove_user(struct device_user *dep);
 
 void device_set_present(struct device *dev, bool state);
 int device_claim(struct device *dev);
-void release_device(struct device *dev);
+void device_release(struct device *dev);
 int check_device_state(struct device *dev);
 
 void device_free_all(void);
index 1f73130db4f8b764fc4eb86769eaf85223ab35c9..a1e30046d203b25589966be32f62c95d31ce9bf6 100644 (file)
@@ -91,7 +91,7 @@ static void
 mark_interface_down(struct interface *iface)
 {
        interface_del_ctx_addr(iface, NULL);
-       release_device(iface->main_dev.dev);
+       device_release(iface->main_dev.dev);
        iface->state = IFS_DOWN;
 }
 
diff --git a/vlan.c b/vlan.c
index 85fe078eb118f11bf0f6007d2819bbc801105663..18cb939d1d7cb32e568e0742420973b4e809d5c6 100644 (file)
--- a/vlan.c
+++ b/vlan.c
@@ -32,7 +32,7 @@ static int vlan_set_device_state(struct device *dev, bool up)
        if (!up) {
                vldev->set_state(dev, false);
                system_vlan_del(dev);
-               release_device(vldev->dep.dev);
+               device_release(vldev->dep.dev);
                return 0;
        }
 
@@ -43,7 +43,7 @@ static int vlan_set_device_state(struct device *dev, bool up)
        system_vlan_add(vldev->dep.dev, vldev->id);
        ret = vldev->set_state(dev, true);
        if (ret)
-               release_device(vldev->dep.dev);
+               device_release(vldev->dep.dev);
 
        return ret;
 }