swap: and some more mis-users
authorAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 18:40:47 +0000 (18:40 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 18:40:47 +0000 (18:40 +0000)
Kernel/platform-ubee/discard.c
Kernel/platform-z280rc/discard.c

index 1604d9d..0e42dc4 100644 (file)
@@ -161,7 +161,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
   if (n > MAX_SWAPS)
     n = MAX_SWAPS;
   while(n)
-    swapmap_add(n--);
+    swapmap_init(n--);
 }
 
 void device_init(void)
index 0b11a13..cca301b 100644 (file)
@@ -75,7 +75,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
   if (n > MAX_SWAPS)
     n = MAX_SWAPS;
   while(n)
-    swapmap_add(n--);
+    swapmap_init(n--);
 }
 
 /*