[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>
diff --git a/drivers/char/rio/riocmd.c b/drivers/char/rio/riocmd.c
index 595f7a9..1a8d4a7 100644
--- a/drivers/char/rio/riocmd.c
+++ b/drivers/char/rio/riocmd.c
@@ -696,7 +696,7 @@
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;