Need to check the type of the vlan device, not the underlying device Signed-off-by: Felix Fietkau <nbd@nbd.name>
@@ -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;
}