Index: uspace/app/date/date.c
===================================================================
--- uspace/app/date/date.c	(revision 9673fd36a9940174ed9016c914852db6a26a6e08)
+++ uspace/app/date/date.c	(revision ae827d0b83c7f629b8a30876d2c6e7ccc8581bc8)
@@ -111,6 +111,6 @@
 	rc = loc_category_get_svcs(cat_id, &svc_ids, &svc_cnt);
 	if (rc != EOK) {
-		printf(NAME ": Cannot get the list of services in the clock \
-		    category\n");
+		printf(NAME ": Cannot get the list of services in the clock "
+		    "category\n");
 		goto exit;
 	}
@@ -118,6 +118,6 @@
 	/* Check if there are available services in the clock category */
 	if (svc_cnt == 0) {
-		printf(NAME ": No available service found in \
-		    the clock category\n");
+		printf(NAME ": No available service found in "
+		    "the clock category\n");
 		goto exit;
 	}
Index: uspace/drv/time/cmos-rtc/cmos-rtc.c
===================================================================
--- uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision 9673fd36a9940174ed9016c914852db6a26a6e08)
+++ uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision ae827d0b83c7f629b8a30876d2c6e7ccc8581bc8)
@@ -217,18 +217,22 @@
 		res = &hw_resources.resources[i];
 
-		if (res->type == IO_RANGE) {
-			if (res->res.io_range.size < REG_COUNT) {
-				ddf_msg(LVL_ERROR, "I/O range assigned to \
-				    device %s is too small",
-				    ddf_dev_get_name(rtc->dev));
-				rc = ELIMIT;
-				goto error;
-			}
-			rtc->io_addr = (ioport8_t *) res->res.io_range.address;
-			ioport = true;
-			ddf_msg(LVL_NOTE, "Device %s was assigned I/O address \
-			    0x%x", ddf_dev_get_name(rtc->dev), rtc->io_addr);
+		if (res->res.io_range.size < REG_COUNT) {
+			ddf_msg(LVL_ERROR, "I/O range assigned to \
+			    device %s is too small",
+			    ddf_dev_get_name(rtc->dev));
+			rc = ELIMIT;
+			continue;
 		}
-	}
+
+		rtc->io_addr = (ioport8_t *) res->res.io_range.address;
+		ioport = true;
+		ddf_msg(LVL_NOTE, "Device %s was assigned I/O address "
+		    "0x%x", ddf_dev_get_name(rtc->dev), rtc->io_addr);
+		rc = EOK;
+		break;
+	}
+
+	if (rc != EOK)
+		goto error;
 
 	if (!ioport) {
