]> err.no Git - linux-2.6/commitdiff
[PATCH] handling rio MEMDUMP
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 May 2006 05:55:52 +0000 (01:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 May 2006 06:26:58 +0000 (02:26 -0400)
it copies data _from_ iomem, so it should be rio_memcpy_fromio(), not
->Copy().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/rio/riocmd.c

index 595f7a9de70fed83755f7a3303e347975920660c..1a8d4a7fa448e485e3cd8543d0f942fa85438f99 100644 (file)
@@ -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;