Changes in uspace/drv/char/ns8250/ns8250.c [09ab0a9a:4f87a85a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r09ab0a9a r4f87a85a 829 829 bool need_cleanup = false; 830 830 bool need_unreg_intr_handler = false; 831 bool bound = false; 831 832 errno_t rc; 832 833 … … 909 910 } 910 911 912 bound = true; 911 913 ns->fun = fun; 912 914 913 ddf_fun_add_to_category(fun, "serial"); 915 rc = ddf_fun_add_to_category(fun, "serial"); 916 if (rc != EOK) { 917 ddf_msg(LVL_ERROR, "Error adding function to category 'serial'."); 918 goto fail; 919 } 914 920 915 921 ddf_msg(LVL_NOTE, "Device %s successfully initialized.", … … 918 924 return EOK; 919 925 fail: 926 if (bound) 927 ddf_fun_unbind(fun); 920 928 if (fun != NULL) 921 929 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.