Changeset b801f2d in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c
- Timestamp:
- 2012-10-18T22:04:12Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c90e3e
- Parents:
- 0a586f4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
r0a586f4c rb801f2d 100 100 static time_t uptime_get(void); 101 101 static bool is_battery_ok(rtc_t *rtc); 102 static int rtc_fun_online(ddf_fun_t *fun); 103 static int rtc_fun_offline(ddf_fun_t *fun); 102 104 103 105 static ddf_dev_ops_t rtc_dev_ops; … … 107 109 .dev_add = rtc_dev_add, 108 110 .dev_remove = rtc_dev_remove, 111 .fun_online = rtc_fun_online, 112 .fun_offline = rtc_fun_offline, 109 113 }; 110 114 … … 638 642 fibril_mutex_unlock(&rtc->mutex); 639 643 644 rc = rtc_fun_offline(rtc->fun); 645 if (rc != EOK) { 646 ddf_msg(LVL_ERROR, "Failed to offline function"); 647 return rc; 648 } 649 640 650 rc = ddf_fun_unbind(rtc->fun); 641 651 if (rc != EOK) { … … 726 736 } 727 737 738 static int 739 rtc_fun_online(ddf_fun_t *fun) 740 { 741 ddf_msg(LVL_DEBUG, "rtc_fun_online()"); 742 return ddf_fun_online(fun); 743 } 744 745 static int 746 rtc_fun_offline(ddf_fun_t *fun) 747 { 748 ddf_msg(LVL_DEBUG, "rtc_fun_offline()"); 749 return ddf_fun_offline(fun); 750 } 751 728 752 int 729 753 main(int argc, char **argv)
Note:
See TracChangeset
for help on using the changeset viewer.