summaryrefslogtreecommitdiffstats
path: root/drivers/block/ataflop.c
diff options
context:
space:
mode:
authorMichael Schmitz <schmitzmic@gmail.com>2014-03-31 21:06:07 +1300
committerGeert Uytterhoeven <geert@linux-m68k.org>2014-05-26 22:41:24 +0200
commita4de73fbcf10c1d64bf4f66ca1c4bcb08e4fac87 (patch)
tree9794db2d50173bb3508b940ec1e26305d2b3976e /drivers/block/ataflop.c
parentcf8c8781d97e514cceb520252c2c78f853e951cd (diff)
downloadop-kernel-dev-a4de73fbcf10c1d64bf4f66ca1c4bcb08e4fac87.zip
op-kernel-dev-a4de73fbcf10c1d64bf4f66ca1c4bcb08e4fac87.tar.gz
m68k/atari - ataflop: use correct virt/phys translation for DMA buffer
With the kernel running from FastRAM instead of ST-RAM, none of ST-RAM is mapped by mem_init, and DMA-addressable buffer must be mapped by ioremap. Use platform specific virt/phys translation helpers for this case. Signed-off-by: Michael Schmitz <schmitz@debian.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/block/ataflop.c')
-rw-r--r--drivers/block/ataflop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c
index 96b629e..cfa64bd 100644
--- a/drivers/block/ataflop.c
+++ b/drivers/block/ataflop.c
@@ -1952,7 +1952,7 @@ static int __init atari_floppy_init (void)
goto Enomem;
}
TrackBuffer = DMABuffer + 512;
- PhysDMABuffer = virt_to_phys(DMABuffer);
+ PhysDMABuffer = atari_stram_to_phys(DMABuffer);
PhysTrackBuffer = virt_to_phys(TrackBuffer);
BufferDrive = BufferSide = BufferTrack = -1;
OpenPOWER on IntegriCloud