Index: uspace/lib/usbhost/src/iface.c
===================================================================
--- uspace/lib/usbhost/src/iface.c	(revision 3c4663e8344ef57e1b14b204ec3ea24317e51e60)
+++ uspace/lib/usbhost/src/iface.c	(revision 9e2132ab753037f2efee552bfdbd219511065e77)
@@ -40,4 +40,5 @@
 #include <usb/host/endpoint.h>
 #include <usb/host/hcd.h>
+#include "ddf_helpers.h"
 
 /** Calls ep_add_hook upon endpoint registration.
@@ -97,5 +98,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 	assert(address);
@@ -118,5 +119,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 
@@ -137,5 +138,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 	return usb_device_manager_get_info_by_address(
@@ -152,5 +153,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 	usb_log_debug("Address release %d.\n", address);
@@ -177,5 +178,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 	const size_t size = max_packet_size;
@@ -209,5 +210,5 @@
 {
 	assert(fun);
-	hcd_t *hcd = fun_to_hcd(fun);
+	hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));
 	assert(hcd);
 	usb_log_debug("Unregister endpoint %d:%d %s.\n",
@@ -231,5 +232,5 @@
     void *arg)
 {
-	return hcd_send_batch(fun_to_hcd(fun), target, USB_DIRECTION_IN,
+	return hcd_send_batch(dev_to_hcd(ddf_fun_get_dev(fun)), target, USB_DIRECTION_IN,
 	    data, size, setup_data, callback, NULL, arg, "READ");
 }
@@ -249,6 +250,7 @@
     usbhc_iface_transfer_out_callback_t callback, void *arg)
 {
-	return hcd_send_batch(fun_to_hcd(fun), target, USB_DIRECTION_OUT,
-	    (uint8_t*)data, size, setup_data, NULL, callback, arg, "WRITE");
+	return hcd_send_batch(dev_to_hcd(ddf_fun_get_dev(fun)),
+	    target, USB_DIRECTION_OUT, (uint8_t*)data, size, setup_data, NULL,
+	    callback, arg, "WRITE");
 }
 
