[PATCH] memcpy_fromio() missing in istallion
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 23 Sep 2006 00:20:31 +0000 (01:20 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 23 Sep 2006 00:48:56 +0000 (17:48 -0700)
memcpy() from iomem is a bad thing...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/istallion.c

index 84dfc4278139eaf809b666d47bd7de8623aa9898..8c09997cc3d63b9108c7c4f948a9eb611a580bff 100644 (file)
@@ -3488,7 +3488,7 @@ static int stli_initecp(stlibrd_t *brdp)
  */
        EBRDENABLE(brdp);
        sigsp = (cdkecpsig_t __iomem *) EBRDGETMEMPTR(brdp, CDK_SIGADDR);
-       memcpy(&sig, sigsp, sizeof(cdkecpsig_t));
+       memcpy_fromio(&sig, sigsp, sizeof(cdkecpsig_t));
        EBRDDISABLE(brdp);
 
        if (sig.magic != cpu_to_le32(ECP_MAGIC))