Changes in uspace/drv/char/ns8250/ns8250.c [956d4281:4510e06] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r956d4281 r4510e06 236 236 * 237 237 * @param fun The serial port function 238 * @param buf The ou tput buffer for read data.238 * @param buf The ouput buffer for read data. 239 239 * @param count The number of bytes to be read. 240 240 * … … 420 420 ns->irq = res->res.interrupt.irq; 421 421 irq = true; 422 ddf_msg(LVL_NOTE, "Device %s was as signed irq = 0x%x.",422 ddf_msg(LVL_NOTE, "Device %s was asigned irq = 0x%x.", 423 423 ddf_dev_get_name(ns->dev), ns->irq); 424 424 break; … … 433 433 } 434 434 ioport = true; 435 ddf_msg(LVL_NOTE, "Device %s was as signed I/O address = "435 ddf_msg(LVL_NOTE, "Device %s was asigned I/O address = " 436 436 "0x%x.", ddf_dev_get_name(ns->dev), ns->io_addr); 437 437 break; … … 827 827 ddf_fun_t *fun = NULL; 828 828 bool need_cleanup = false; 829 bool need_unreg_intr_handler = false;830 829 int rc; 831 830 … … 870 869 goto fail; 871 870 } 872 need_unreg_intr_handler = true;873 871 874 872 /* Enable interrupt. */ … … 905 903 if (fun != NULL) 906 904 ddf_fun_destroy(fun); 907 if (need_unreg_intr_handler)908 ns8250_unregister_interrupt_handler(ns);909 905 if (need_cleanup) 910 906 ns8250_dev_cleanup(ns); … … 918 914 919 915 fibril_mutex_lock(&ns->mutex); 920 if (ns->client_connections > 0) {916 if (ns->client_connections > 0) { 921 917 fibril_mutex_unlock(&ns->mutex); 922 918 return EBUSY;
Note:
See TracChangeset
for help on using the changeset viewer.