Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38025
b: refs/heads/master
c: dc844e0
h: refs/heads/master
i:
  38023: 1527686
v: v3
  • Loading branch information
Sergei Shtylylov authored and Linus Torvalds committed Oct 3, 2006
1 parent 759b5ea commit e286a5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 020e322de3ff75d32daa58e431aad07071da27c6
refs/heads/master: dc844e05913b84d09e86d88c0f861ef0afbee2fd
16 changes: 7 additions & 9 deletions trunk/drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,15 +809,14 @@ static int ide_release_iomio_dma(ide_hwif_t *hwif)
/*
* Needed for allowing full modular support of ide-driver
*/
int ide_release_dma (ide_hwif_t *hwif)
int ide_release_dma(ide_hwif_t *hwif)
{
ide_release_dma_engine(hwif);

if (hwif->mmio == 2)
return 1;
if (hwif->chipset == ide_etrax100)
return 1;

ide_release_dma_engine(hwif);
return ide_release_iomio_dma(hwif);
else
return ide_release_iomio_dma(hwif);
}

static int ide_allocate_dma_engine(ide_hwif_t *hwif)
Expand All @@ -829,10 +828,9 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)
if (hwif->dmatable_cpu)
return 0;

printk(KERN_ERR "%s: -- Error, unable to allocate%s DMA table(s).\n",
hwif->cds->name, !hwif->dmatable_cpu ? " CPU" : "");
printk(KERN_ERR "%s: -- Error, unable to allocate DMA table.\n",
hwif->cds->name);

ide_release_dma_engine(hwif);
return 1;
}

Expand Down

0 comments on commit e286a5c

Please sign in to comment.