diff options
-rw-r--r-- | bridge.c | 2 | ||||
-rw-r--r-- | device.c | 2 | ||||
-rw-r--r-- | device.h | 2 | ||||
-rw-r--r-- | interface.c | 2 | ||||
-rw-r--r-- | vlan.c | 4 |
5 files changed, 6 insertions, 6 deletions
@@ -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; } @@ -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); @@ -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); diff --git a/interface.c b/interface.c index 1f73130..a1e3004 100644 --- a/interface.c +++ b/interface.c @@ -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; } @@ -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; } |