summaryrefslogtreecommitdiff
path: root/drivers/usb/emul/sandbox_hub.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-04-05 12:28:33 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-05 12:28:33 (GMT)
commit433647a7ef9241b963b4636e7f8c3a2159d156f0 (patch)
tree15008cb530f46b5f9711efa2d9fc550b11ce2905 /drivers/usb/emul/sandbox_hub.c
parent7da8680b260b4598d841d9a8432d95d56cb86d9f (diff)
parent239ae4a9129b8b9f24a216e127042b255b07ae59 (diff)
downloadu-boot-433647a7ef9241b963b4636e7f8c3a2159d156f0.tar.xz
Merge git://git.denx.de/u-boot-dm
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 c3a8e73..f0939b1 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;
}
}