Index: uspace/drv/platform/amdm37x/main.c
===================================================================
--- uspace/drv/platform/amdm37x/main.c	(revision cde999aca79219e8751af76502001a86d411d176)
+++ uspace/drv/platform/amdm37x/main.c	(revision a0a9cc249adce31c755defdb6b74a991ebbf55ea)
@@ -150,5 +150,5 @@
 
 static hw_resource_list_t *amdm37x_get_resources(ddf_fun_t *fnode);
-static int amdm37x_enable_interrupt(ddf_fun_t *fun, int);
+static errno_t amdm37x_enable_interrupt(ddf_fun_t *fun, int);
 
 static hw_res_ops_t fun_hw_res_ops = {
@@ -161,5 +161,5 @@
 };
 
-static int amdm37x_add_fun(ddf_dev_t *dev, const amdm37x_fun_t *fun)
+static errno_t amdm37x_add_fun(ddf_dev_t *dev, const amdm37x_fun_t *fun)
 {
 	assert(dev);
@@ -174,5 +174,5 @@
 	
 	/* Add match id */
-	int ret = ddf_fun_add_match_id(fnode,
+	errno_t ret = ddf_fun_add_match_id(fnode,
 	    fun->match_id.id, fun->match_id.score);
 	if (ret != EOK) {
@@ -212,5 +212,5 @@
  *
  */
-static int amdm37x_dev_add(ddf_dev_t *dev)
+static errno_t amdm37x_dev_add(ddf_dev_t *dev)
 {
 	assert(dev);
@@ -218,5 +218,5 @@
 	if (!device)
 		return ENOMEM;
-	int ret = amdm37x_init(device, DEBUG_CM);
+	errno_t ret = amdm37x_init(device, DEBUG_CM);
 	if (ret != EOK) {
 		ddf_msg(LVL_FATAL, "Failed to setup hw access!.\n");
@@ -265,5 +265,5 @@
 }
 
-static int amdm37x_enable_interrupt(ddf_fun_t *fun, int irq)
+static errno_t amdm37x_enable_interrupt(ddf_fun_t *fun, int irq)
 {
 	//TODO: Implement
