Changes in uspace/drv/block/ahci/ahci.c [d51838f:f9b2cb4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rd51838f rf9b2cb4c 36 36 #include <ddf/interrupt.h> 37 37 #include <ddf/log.h> 38 #include <device/hw_res.h>39 38 #include <device/hw_res_parsed.h> 40 39 #include <pci_dev_iface.h> 40 #include <irc.h> 41 41 #include <ahci_iface.h> 42 42 #include "ahci.h" … … 1140 1140 1141 1141 /* Connect to parent device */ 1142 ahci->parent_sess = ddf_dev_parent_sess_ get(dev);1142 ahci->parent_sess = ddf_dev_parent_sess_create(dev); 1143 1143 if (ahci->parent_sess == NULL) 1144 1144 return NULL; … … 1185 1185 ct.ranges = ahci_ranges; 1186 1186 1187 int irq_cap = register_interrupt_handler(dev,1188 hw_res_parsed.irqs.irqs[0],ahci_interrupt, &ct);1189 if ( irq_cap < 0) {1187 int rc = register_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0], 1188 ahci_interrupt, &ct); 1189 if (rc != EOK) { 1190 1190 ddf_msg(LVL_ERROR, "Failed registering interrupt handler."); 1191 1191 goto error_register_interrupt_handler; 1192 1192 } 1193 1193 1194 int rc = hw_res_enable_interrupt(ahci->parent_sess, 1195 hw_res_parsed.irqs.irqs[0]); 1194 rc = irc_enable_interrupt(hw_res_parsed.irqs.irqs[0]); 1196 1195 if (rc != EOK) { 1197 1196 ddf_msg(LVL_ERROR, "Failed enable interupt."); … … 1203 1202 1204 1203 error_enable_interrupt: 1205 unregister_interrupt_handler(dev, irq_cap);1204 unregister_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0]); 1206 1205 1207 1206 error_register_interrupt_handler:
Note:
See TracChangeset
for help on using the changeset viewer.