This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / arm / kernel / io.c
index 9e8868b..34d6a86 100644 (file)
@@ -7,13 +7,12 @@
  * Copy data from IO memory space to "real" memory space.
  * This needs to be optimized.
  */
-void _memcpy_fromio(void *to, unsigned long from, size_t count)
+void _memcpy_fromio(void * to, unsigned long from, size_t count)
 {
-       unsigned char *t = to;
        while (count) {
                count--;
-               *t = readb(from);
-               t++;
+               *(char *) to = readb(from);
+               ((char *) to)++;
                from++;
        }
 }
@@ -22,13 +21,12 @@ void _memcpy_fromio(void *to, unsigned long from, size_t count)
  * Copy data from "real" memory space to IO memory space.
  * This needs to be optimized.
  */
-void _memcpy_toio(unsigned long to, const void *from, size_t count)
+void _memcpy_toio(unsigned long to, const void * from, size_t count)
 {
-       const unsigned char *f = from;
        while (count) {
                count--;
-               writeb(*f, to);
-               f++;
+               writeb(*(char *) from, to);
+               ((char *) from)++;
                to++;
        }
 }