Changeset 91b60499 in mainline for uspace/drv/nic/e1k/e1k.c
- Timestamp:
- 2017-09-30T06:29:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 300f4c4
- Parents:
- d076f16 (diff), 6636fb19 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
rd076f16 r91b60499 1253 1253 * @param nic Driver data 1254 1254 * 1255 * @return EOKif the handler was registered1255 * @return IRQ capability handle if the handler was registered 1256 1256 * @return Negative error code otherwise 1257 1257 * … … 1268 1268 e1000_irq_code.cmds[2].addr = e1000->reg_base_phys + E1000_IMC; 1269 1269 1270 int rc = register_interrupt_handler(nic_get_ddf_dev(nic),1271 e1000 ->irq, e1000_interrupt_handler, &e1000_irq_code);1270 int cap = register_interrupt_handler(nic_get_ddf_dev(nic), e1000->irq, 1271 e1000_interrupt_handler, &e1000_irq_code); 1272 1272 1273 1273 fibril_mutex_unlock(&irq_reg_mutex); 1274 return rc;1274 return cap; 1275 1275 } 1276 1276 … … 2152 2152 ddf_fun_set_ops(fun, &e1000_dev_ops); 2153 2153 2154 rc = e1000_register_int_handler(nic); 2155 if (rc != EOK) 2154 int irq_cap = e1000_register_int_handler(nic); 2155 if (irq_cap < 0) { 2156 rc = irq_cap; 2156 2157 goto err_fun_create; 2158 } 2157 2159 2158 2160 rc = e1000_initialize_rx_structure(nic); … … 2189 2191 e1000_uninitialize_rx_structure(nic); 2190 2192 err_irq: 2191 unregister_interrupt_handler(dev, DRIVER_DATA_DEV(dev)->irq);2193 unregister_interrupt_handler(dev, irq_cap); 2192 2194 err_fun_create: 2193 2195 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.