Changes in uspace/drv/time/cmos-rtc/cmos-rtc.c [4f87a85a:4122410] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
r4f87a85a r4122410 588 588 errno_t rc; 589 589 bool need_cleanup = false; 590 bool bound = false;591 590 592 591 ddf_msg(LVL_DEBUG, "rtc_dev_add %s (handle = %d)", … … 625 624 } 626 625 627 bound = true;628 626 rtc->fun = fun; 629 627 630 rc = ddf_fun_add_to_category(fun, "clock"); 631 if (rc != EOK) { 632 ddf_msg(LVL_ERROR, "Failed adding service to clock category."); 633 goto error; 634 } 628 ddf_fun_add_to_category(fun, "clock"); 635 629 636 630 ddf_msg(LVL_NOTE, "Device %s successfully initialized", … … 640 634 641 635 error: 642 if (bound)643 ddf_fun_unbind(fun);644 636 if (fun) 645 637 ddf_fun_destroy(fun); … … 762 754 763 755 rc = ddf_fun_online(fun); 764 if (rc == EOK) { 765 // XXX This should be probably handled by the framework 766 rc = ddf_fun_add_to_category(fun, "clock"); 767 } 756 if (rc == EOK) 757 ddf_fun_add_to_category(fun, "clock"); 768 758 769 759 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.