Index: uspace/drv/time/cmos-rtc/cmos-rtc.c
===================================================================
--- uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision cde999aca79219e8751af76502001a86d411d176)
+++ uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision e211ea04fccf33d4cb2092f630a29e893e096a02)
@@ -80,13 +80,13 @@
 static rtc_t *dev_rtc(ddf_dev_t *dev);
 static rtc_t *fun_rtc(ddf_fun_t *fun);
-static int
+static errno_t
 rtc_battery_status_get(ddf_fun_t *fun, battery_status_t *status);
-static int  rtc_time_get(ddf_fun_t *fun, struct tm *t);
-static int  rtc_time_set(ddf_fun_t *fun, struct tm *t);
-static int  rtc_dev_add(ddf_dev_t *dev);
-static int  rtc_dev_initialize(rtc_t *rtc);
+static errno_t  rtc_time_get(ddf_fun_t *fun, struct tm *t);
+static errno_t  rtc_time_set(ddf_fun_t *fun, struct tm *t);
+static errno_t  rtc_dev_add(ddf_dev_t *dev);
+static errno_t  rtc_dev_initialize(rtc_t *rtc);
 static bool rtc_pio_enable(rtc_t *rtc);
 static void rtc_dev_cleanup(rtc_t *rtc);
-static int  rtc_open(ddf_fun_t *fun);
+static errno_t  rtc_open(ddf_fun_t *fun);
 static void rtc_close(ddf_fun_t *fun);
 static bool rtc_update_in_progress(rtc_t *rtc);
@@ -94,9 +94,9 @@
 static unsigned bcd2bin(unsigned bcd);
 static unsigned bin2bcd(unsigned binary);
-static int rtc_dev_remove(ddf_dev_t *dev);
+static errno_t rtc_dev_remove(ddf_dev_t *dev);
 static void rtc_register_write(rtc_t *rtc, int reg, int data);
 static bool is_battery_ok(rtc_t *rtc);
-static int  rtc_fun_online(ddf_fun_t *fun);
-static int  rtc_fun_offline(ddf_fun_t *fun);
+static errno_t  rtc_fun_online(ddf_fun_t *fun);
+static errno_t  rtc_fun_offline(ddf_fun_t *fun);
 
 static ddf_dev_ops_t rtc_dev_ops;
@@ -192,8 +192,8 @@
  * @return  EOK on success or an error code
  */ 
-static int
+static errno_t
 rtc_dev_initialize(rtc_t *rtc)
 {
-	int rc;
+	errno_t rc;
 	size_t i;
 	hw_resource_t *res;
@@ -316,5 +316,5 @@
  * @return  EOK on success or an error code
  */
-static int
+static errno_t
 rtc_time_get(ddf_fun_t *fun, struct tm *t)
 {
@@ -412,5 +412,5 @@
 	/* Try to normalize the content of the tm structure */
 	time_t r = mktime(t);
-	int result;
+	errno_t result;
 
 	if (r < 0)
@@ -438,5 +438,5 @@
  * @return  EOK or an error code
  */
-static int
+static errno_t
 rtc_time_set(ddf_fun_t *fun, struct tm *t)
 {
@@ -546,5 +546,5 @@
  * @return       EOK on success or an error code
  */
-static int
+static errno_t
 rtc_battery_status_get(ddf_fun_t *fun, battery_status_t *status)
 {
@@ -579,10 +579,10 @@
  * @return  EOK on success or an error code
  */
-static int
+static errno_t
 rtc_dev_add(ddf_dev_t *dev)
 {
 	rtc_t *rtc;
 	ddf_fun_t *fun = NULL;
-	int rc;
+	errno_t rc;
 	bool need_cleanup = false;
 
@@ -645,9 +645,9 @@
  * @return      EOK on success or an error code
  */
-static int
+static errno_t
 rtc_dev_remove(ddf_dev_t *dev)
 {
 	rtc_t *rtc = dev_rtc(dev);
-	int rc;
+	errno_t rc;
 
 	fibril_mutex_lock(&rtc->mutex);
@@ -684,8 +684,8 @@
  * @return  EOK on success or an error code
  */
-static int
+static errno_t
 rtc_open(ddf_fun_t *fun)
 {
-	int rc;
+	errno_t rc;
 	rtc_t *rtc = fun_rtc(fun);
 
@@ -744,8 +744,8 @@
 }
 
-static int
+static errno_t
 rtc_fun_online(ddf_fun_t *fun)
 {
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_DEBUG, "rtc_fun_online()");
@@ -758,5 +758,5 @@
 }
 
-static int
+static errno_t
 rtc_fun_offline(ddf_fun_t *fun)
 {
