Changes in uspace/drv/block/isa-ide/main.c [07039850:2a5d4649] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/main.c
r07039850 r2a5d4649 169 169 isa_ide_ctrl_t *ctrl; 170 170 isa_ide_hwres_t res; 171 unsigned chans; 171 172 errno_t rc; 172 173 … … 187 188 ctrl->dev = dev; 188 189 190 chans = 0; 191 189 192 rc = isa_ide_channel_init(ctrl, &ctrl->channel[0], 0, &res); 190 if (rc == ENOENT) 193 if (rc == EOK) 194 ++chans; 195 else if (rc != ENOENT) 191 196 goto error; 192 197 193 198 rc = isa_ide_channel_init(ctrl, &ctrl->channel[1], 1, &res); 194 if (rc == ENOENT) 195 goto error; 196 197 if (rc != EOK) { 198 ddf_msg(LVL_ERROR, "Failed initializing ATA controller."); 199 if (rc == EOK) 200 ++chans; 201 else if (rc != ENOENT) 202 goto error; 203 204 if (chans == 0) { 205 ddf_msg(LVL_ERROR, "No ISA IDE devices found."); 199 206 rc = EIO; 200 207 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.