summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vlan.c b/vlan.c
index 85fe078..18cb939 100644
--- 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;
}