aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/arm
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:21 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:21 -0400
commit63158d5c217e2e62665ae9b10d203bd7da817108 (patch)
treedc98e5f2b66d26f6aeb8405e8c47ea49ea784f1a /drivers/ide/arm
parentd54452fbf84500eff77a55a2061f4669441d2cc3 (diff)
ide: cleanup ide_setup_dma()
* There is no need to call ide_release_dma_engine(). * Move the code up to (and including) ide_allocate_dma_engine() call to the callers of ide_setup_dma(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/arm')
-rw-r--r--drivers/ide/arm/palm_bk3710.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ide/arm/palm_bk3710.c b/drivers/ide/arm/palm_bk3710.c
index 9e21b8e6099c..7ed79e7f3110 100644
--- a/drivers/ide/arm/palm_bk3710.c
+++ b/drivers/ide/arm/palm_bk3710.c
@@ -392,7 +392,10 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev)
392 hwif->mmio = 1; 392 hwif->mmio = 1;
393 default_hwif_mmiops(hwif); 393 default_hwif_mmiops(hwif);
394 394
395 ide_setup_dma(hwif, mem->start); 395 printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
396
397 if (ide_allocate_dma_engine(hwif) == 0)
398 ide_setup_dma(hwif, mem->start);
396 399
397 idx[0] = i; 400 idx[0] = i;
398 401