summaryrefslogtreecommitdiff
path: root/vlandev.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlandev.c')
-rw-r--r--vlandev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlandev.c b/vlandev.c
index 2f86192..f2440a7 100644
--- a/vlandev.c
+++ b/vlandev.c
@@ -112,7 +112,7 @@ static void vlandev_hotplug_check(struct vlandev_device *mvdev)
struct device *dev = mvdev->parent.dev;
if (!dev || !dev->hotplug_ops || avl_is_empty(&dev->vlans.avl) ||
- dev->type != &vlan8021q_device_type) {
+ mvdev->dev.type != &vlan8021q_device_type) {
mvdev->dev.hotplug_ops = NULL;
return;
}