Index: uspace/drv/bus/usb/uhcirh/port.c
===================================================================
--- uspace/drv/bus/usb/uhcirh/port.c	(revision 899f1a95f22eca90d14c5209d80a487c9a0979f0)
+++ uspace/drv/bus/usb/uhcirh/port.c	(revision a0487a2c613742b57dcb941a4dc7c689386a0983)
@@ -313,6 +313,6 @@
 
 	/* Driver stopped, free used address */
-	ret = usb_hc_unregister_device(&port->hc_connection,
-	    port->attached_device.address);
+	ret = usb_hub_unregister_device(&port->hc_connection,
+	    &port->attached_device);
 	if (ret != EOK) {
 		usb_log_error("%s: Failed to unregister address of removed "
Index: uspace/drv/bus/usb/usbhub/port.c
===================================================================
--- uspace/drv/bus/usb/usbhub/port.c	(revision 899f1a95f22eca90d14c5209d80a487c9a0979f0)
+++ uspace/drv/bus/usb/usbhub/port.c	(revision a0487a2c613742b57dcb941a4dc7c689386a0983)
@@ -288,6 +288,6 @@
 	port->attached_device.fun = NULL;
 
-	ret = usb_hc_unregister_device(&hub->usb_device->hc_conn,
-	    port->attached_device.address);
+	ret = usb_hub_unregister_device(&hub->usb_device->hc_conn,
+	    &port->attached_device);
 	if (ret != EOK) {
 		usb_log_warning("Failed to unregister address of the "
