diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-05-27 07:55:52 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-05-27 08:26:58 +0200 |
commit | 1bf087194f01bce5b2d7b39f27d71d5f346fbf08 (patch) | |
tree | da68ababe29fb526d92bd9bf10084921f747bd0d /drivers/char | |
parent | [PATCH] fix rio_copy_to_card() for OLDPCI case (diff) | |
download | linux-1bf087194f01bce5b2d7b39f27d71d5f346fbf08.tar.xz linux-1bf087194f01bce5b2d7b39f27d71d5f346fbf08.zip |
[PATCH] handling rio MEMDUMP
it copies data _from_ iomem, so it should be rio_memcpy_fromio(), not
->Copy().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/rio/riocmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rio/riocmd.c b/drivers/char/rio/riocmd.c index 595f7a9de70f..1a8d4a7fa448 100644 --- a/drivers/char/rio/riocmd.c +++ b/drivers/char/rio/riocmd.c @@ -696,7 +696,7 @@ void RIOPollHostCommands(struct rio_info *p, struct Host *HostP) FreeMe = RIOCommandRup(p, Rup, HostP, PacketP); if (PacketP->data[5] == MEMDUMP) { rio_dprintk(RIO_DEBUG_CMD, "Memdump from 0x%x complete\n", *(unsigned short *) & (PacketP->data[6])); - HostP->Copy(&(PacketP->data[8]), p->RIOMemDump, 32); + rio_memcpy_fromio(p->RIOMemDump, &(PacketP->data[8]), 32); } rio_spin_lock_irqsave(&UnixRupP->RupLock, flags); break; |