summaryrefslogtreecommitdiff
path: root/drivers/usb/emul/sandbox_hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/emul/sandbox_hub.c')
-rw-r--r--drivers/usb/emul/sandbox_hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c
index c3a8e73389..f0939b19f4 100644
--- a/drivers/usb/emul/sandbox_hub.c
+++ b/drivers/usb/emul/sandbox_hub.c
@@ -156,7 +156,7 @@ static int clrset_post_state(struct udevice *hub, int port, int clear, int set)
} else if (clear & USB_PORT_STAT_POWER) {
debug("%s: %s: power off, removed, ret=%d\n",
__func__, dev->name, ret);
- ret = device_remove(dev);
+ ret = device_remove(dev, DM_REMOVE_NORMAL);
clear |= USB_PORT_STAT_CONNECTION;
}
}