Changes in uspace/drv/block/pci-ide/main.c [832cbe7:645d3832] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/main.c
r832cbe7 r645d3832 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 133 133 pci_ide_ctrl_t *ctrl; 134 134 pci_ide_hwres_t res; 135 async_sess_t *parent_sess;136 135 errno_t rc; 137 136 … … 165 164 if (rc != EOK) { 166 165 ddf_msg(LVL_ERROR, "Failed initializing ATA controller."); 167 rc = EIO;168 goto error;169 }170 171 parent_sess = ddf_dev_parent_sess_get(dev);172 if (parent_sess == NULL) {173 rc = ENOMEM;174 goto error;175 }176 177 /* Claim legacy I/O range to prevent ISA IDE from attaching there. */178 rc = hw_res_claim_legacy_io(parent_sess, hwc_isa_ide);179 if (rc != EOK) {180 ddf_msg(LVL_ERROR, "Failed claiming legacy I/O range.");181 166 rc = EIO; 182 167 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.