Changes in uspace/drv/block/pci-ide/pci-ide.c [832cbe7:221daa5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/pci-ide.c
r832cbe7 r221daa5 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 150 150 ctrl->bmregs_physical = res->bmregs; 151 151 152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x% " PRIxPTR,152 ddf_msg(LVL_NOTE, "Bus master IDE regs I/O address: 0x%lx", 153 153 ctrl->bmregs_physical); 154 154 … … 186 186 bool irq_inited = false; 187 187 ata_params_t params; 188 void *buffer = NULL;188 void *buffer; 189 189 190 190 ddf_msg(LVL_DEBUG, "pci_ide_channel_init()"); 191 192 memset(¶ms, 0, sizeof(params));193 191 194 192 chan->ctrl = ctrl; … … 296 294 return EOK; 297 295 error: 298 if (chan->channel != NULL) {299 (void) ata_channel_destroy(chan->channel);300 chan->channel = NULL;301 }302 if (buffer != NULL)303 dmamem_unmap_anonymous(buffer);304 296 if (irq_inited) 305 297 pci_ide_fini_irq(chan); … … 323 315 } 324 316 325 dmamem_unmap_anonymous(chan->dma_buf);326 317 pci_ide_fini_irq(chan); 327 318 pci_ide_fini_io(chan);
Note:
See TracChangeset
for help on using the changeset viewer.