[PATCH] rio ->Copy() expects the sourse as first argument
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 May 2006 04:15:09 +0000 (00:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 May 2006 06:26:23 +0000 (02:26 -0400)
... so conversion from rio_pcicopy() to rio_copy_to_card() had broken the
damn thing.

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

index 0707af33f0171c02dfc14d1508c92d67fd536425..6b039186856d6a85b1ac28980c0e67dbb475473a 100644 (file)
@@ -140,7 +140,7 @@ int rio_isr_thread(char *);
 struct rio_info *rio_info_store(int cmd, struct rio_info *p);
 #endif
 
-extern void rio_copy_to_card(void __iomem *to, void *from, int len);
+extern void rio_copy_to_card(void *from, void __iomem *to, int len);
 extern int rio_minor(struct tty_struct *tty);
 extern int rio_ismodem(struct tty_struct *tty);
 
index 39277e53d9a8000a10019208283447f5c73afcb6..8f96b20090e8da8d3cd3e60630ef36cdf8bb8318 100644 (file)
@@ -333,7 +333,7 @@ int RIODelay_ni(struct Port *PortP, int njiffies)
        return !RIO_FAIL;
 }
 
-void rio_copy_to_card(void __iomem *to, void *from, int len)
+void rio_copy_to_card(void *from, void __iomem *to, int len)
 {
        rio_memcpy_toio(NULL, to, from, len);
 }